| [ 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.inc.php 20295 2006-02-15 12:31:25Z $ */ 24 25 class service 26 { 27 var $provider = ''; 28 var $svc = ''; 29 var $type = ''; 30 var $function_map = array(); 31 32 function exec($service) 33 { 34 if(is_array($service)) 35 { 36 $data = $service[2]; 37 $function = $service[1]; 38 $service = $service[0]; 39 } 40 switch($service) 41 { 42 case 'schedule': 43 case 'contacts': 44 case 'notes': 45 case 'todo': 46 $this = CreateObject('phpgwapi.service_' . $service); 47 break; 48 default: 49 $this = CreateObject($service); 50 break; 51 } 52 if($function) 53 { 54 return $this->$function($data); 55 } 56 } 57 58 function list_methods() 59 { 60 return $this->function_map; 61 } 62 } 63 ?>
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 |