source: branches/1.2/contactcenter/inc/class.so_company_connection_type.inc.php @ 2

Revision 2, 2.2 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2  /***************************************************************************\
3  * eGroupWare - Contacts Center                                              *
4  * http://www.egroupware.org                                                 *
5  *                                                                           *
6  * Storage Object Classes                                                    *
7  * Written by:                                                               *
8  *  - Raphael Derosso Pereira <raphaelpereira@users.sourceforge.net>         *
9  *  sponsored by Thyamad - http://www.thyamad.com                            *
10  * ------------------------------------------------------------------------- *
11  *  This program is free software; you can redistribute it and/or modify it  *
12  *  under the terms of the GNU General Public License as published by the    *
13  *  Free Software Foundation; either version 2 of the License, or (at your   *
14  *  option) any later version.                                               *
15  \***************************************************************************/
16
17
18        include_once( "class.so_type.inc.php" );
19       
20        class so_company_connection_type extends so_type {
21
22                function so_company_connection_type ( $id = false )
23                {
24                        $this->init();
25                       
26                        $this->main_fields = array(
27                                'id_typeof_company_connection' => array(
28                                        'name'  => 'id_typeof_company_connection',
29                                        'type'  => 'primary',
30                                        'state' => 'empty',
31                                        'value' => &$this->id
32                                ),
33                                'company_connection_type_name' => array(
34                                        'name'  => 'company_connection_type_name',
35                                        'type'  => false,
36                                        'state' => 'empty',
37                                        'value' => false
38                                )
39                        );
40
41                        $this->type_name = & $this->main_fields['company_connection_type_name'];
42
43                        $this->db_tables = array(
44                                'phpgw_cc_typeof_co_conns' => array(
45                                        'type'   => 'main',
46                                        'keys'   => array(
47                                                'primary' => array(&$this->main_fields['id_typeof_company_connection']),
48                                                'foreign' => false
49                                        ),
50                                        'fields' => & $this->main_fields
51                                )
52                        );
53
54                        if ($id)
55                        {
56                                if (!$this->checkout($id))
57                                {
58                                        $this->reset_values();
59                                        $this->state = 'new';
60                                }
61                        }
62                        else
63                        {
64                                $this->state = 'new';
65                        }
66                }
67       
68        }
69
70
71
72?>
Note: See TracBrowser for help on using the repository browser.