source: sandbox/2.2.0.2/contactcenter/inc/class.so_contact_conns.inc.php @ 4502

Revision 4502, 1.2 KB checked in by airton, 13 years ago (diff)

Ticket #1928 - Falhas na associação de um contato com um grupo de contato

Line 
1<?php
2/*
3 * Classe Storage Object - phpgw_cc_contact_conns
4 * Baseado na classe so_main de Raphael Derosso Pereira
5 * Autor: Luiz Carlos Viana Melo - Prognus
6 * luiz@prognus.com.br
7 */
8
9        include_once("class.so_main.inc.php");
10       
11        class so_contact_conns extends so_main
12        {
13               
14                function so_contact_conns ( $id = false)
15                {
16                        $this->init();
17                       
18                        $this->main_fields = array(
19                                'id_connection' => array(
20                                        'name'  => 'id_connection',
21                                        'type'  => 'primary',
22                                        'state' => 'empty',
23                                        'value' => &$this->id
24                                ),
25                                'id_contact' => array(
26                                        'name'  => 'id_contact',
27                                        'type'  => false,
28                                        'state' => 'empty',
29                                        'value' => false
30                                ),
31                                'id_typeof_contact_connection' => array(
32                                        'name'  => 'id_typeof_contact_connection',
33                                        'type'  => false,
34                                        'state' => 'empty',
35                                        'value' => false
36                                )
37                        );
38
39                        $this->db_tables = array(
40                                'phpgw_cc_contact_conns' => array(
41                                        'type'   => 'main',
42                                        'keys'   => array(
43                                                'primary' => array(&$this->main_fields['id_connection']),
44                                                'foreign' => false
45                                        ),
46                                        'fields' => & $this->main_fields
47                                )
48                        );
49                       
50                        if ($id)
51                        {
52                                if (!$this->checkout($id))
53                                {
54                                        $this->reset_values();
55                                        $this->state = 'new';
56                                }
57                        }
58                        else
59                        {
60                                $this->state = 'new';
61                        }
62                }
63        }
64
65?>
Note: See TracBrowser for help on using the repository browser.