[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare API - Services Abstraction Class * 4 * This file written by Miles Lott <milos@groupwhere.org> * 5 * Copyright (C) 2001-2004 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 /* $Id: class.service_schedule.inc.php 20295 2006-02-15 12:31:25Z $ */ 24 25 class service_schedule extends service 26 { 27 function service_schedule() 28 { 29 $this->provider = $GLOBALS['egw_info']['schedule_service'] ? $GLOBALS['egw_info']['schedule_service'] : 'calendar'; 30 $this->svc = $this->provider . '.bo' . $this->provider; 31 $type = $this->type ? $this->type : 'xmlrpc'; 32 $this->function_map = ExecMethod($this->svc . '.list_methods',$type); 33 } 34 35 function read($data) 36 { 37 return ExecMethod($this->svc . '.' . $this->function_map['read_entry']['function'],$data); 38 } 39 40 function read_list($data) 41 { 42 return ExecMethod($this->svc . '.' . $this->function_map['search']['function'],$data); 43 } 44 45 function save($data) 46 { 47 return ExecMethod($this->svc . '.' . $this->function_map['update']['function'],$data); 48 } 49 50 function add($data) 51 { 52 return ExecMethod($this->svc . '.' . $this->function_map['update']['function'],$data); 53 } 54 55 function delete($data) 56 { 57 return ExecMethod($this->svc . '.' . $this->function_map['delete_entry']['function'],$data); 58 } 59 60 function export($data) 61 { 62 return ExecMethod($this->svc . '.' . $this->function_map['export_event']['function'],$data); 63 } 64 } 65 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |