Revision 4502,
812 bytes
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 responsavel pelas conexoes. |
---|
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 | class bo_connection |
---|
10 | { |
---|
11 | /*! |
---|
12 | @function get_connection_type_by_conn_id |
---|
13 | @abstract This function returns the type of a connection. |
---|
14 | @author Luiz Carlos Viana Melo |
---|
15 | |
---|
16 | */ |
---|
17 | function get_connection_type_by_conn_id($id_connection) |
---|
18 | { |
---|
19 | $so_conns = CreateObject('contactcenter.so_contact_conns', $id_connection); |
---|
20 | $types = $so_conns->get_field('id_typeof_contact_connection'); |
---|
21 | return $types[0]; |
---|
22 | } |
---|
23 | |
---|
24 | function get_contact_id_by_connection($id_connection) |
---|
25 | { |
---|
26 | $so_conns = CreateObject('contactcenter.so_contact_conns', $id_connection); |
---|
27 | $id_contact = $so_conns->get_field('id_contact'); |
---|
28 | return $id_contact; |
---|
29 | } |
---|
30 | } |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.