source: trunk/phpgwapi/inc/class.service_notes.inc.php @ 2

Revision 2, 2.5 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 API - Services Abstraction Class                              *
4  * This file written by Miles Lott <milosch@groupwhere.org>                 *
5  * Copyright (C) 2001 Miles Lott                                            *
6  * -------------------------------------------------------------------------*
7  * This library is part of the eGroupWare API                               *
8  * http://www.egroupware.org/api                                            *
9  * ------------------------------------------------------------------------ *
10  * This library is free software; you can redistribute it and/or modify it  *
11  * under the terms of the GNU Lesser General Public License as published by *
12  * the Free Software Foundation; either version 2.1 of the License,         *
13  * or any later version.                                                    *
14  * This library is distributed in the hope that it will be useful, but      *
15  * WITHOUT ANY WARRANTY; without even the implied warranty of               *
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     *
17  * See the GNU Lesser General Public License for more details.              *
18  * You should have received a copy of the GNU Lesser General Public License *
19  * along with this library; if not, write to the Free Software Foundation,  *
20  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            *
21  \**************************************************************************/
22
23
24        class service_contacts extends service
25        {
26                function service_contacts()
27                {
28                        $this->provider = $GLOBALS['phpgw_info']['notes_service'] ? $GLOBALS['phpgw_info']['notes_service'] : 'notes';
29                        $this->svc = $this->provider . '.bo' . $this->provider;
30                        $type = $this->type ? $this->type : 'xmlrpc';
31                        $this->function_map = ExecMethod($this->svc . '.list_methods',$type);
32                }
33
34                function read($data)
35                {
36                        return ExecMethod($this->svc . '.' . $this->function_map['read']['function'],$data);
37                }
38
39                function read_list($data)
40                {
41                        return ExecMethod($this->svc . '.' . $this->function_map['read_list']['function'],$data);
42                }
43
44                function save($data)
45                {
46                        return ExecMethod($this->svc . '.' . $this->function_map['save']['function'],$data);
47                }
48
49                function add($data)
50                {
51                        return ExecMethod($this->svc . '.' . $this->function_map['save']['function'],$data);
52                }
53
54                function delete($data)
55                {
56                        return ExecMethod($this->svc . '.' . $this->function_map['delete']['function'],$data);
57                }
58        }
59?>
Note: See TracBrowser for help on using the repository browser.