[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/admin/inc/ -> class.soserver.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare - Admin - Peer Servers                                        *
   4      * http://www.egroupware.org                                                *
   5      * Written by Joseph Engo <jengo@mail.com>                                  *
   6      * --------------------------------------------                             *
   7      *  This program is free software; you can redistribute it and/or modify it *
   8      *  under the terms of the GNU General Public License as published by the   *
   9      *  Free Software Foundation; either version 2 of the License, or (at your  *
  10      *  option) any later version.                                              *
  11      \**************************************************************************/
  12  
  13      /* $Id: class.soserver.inc.php 20295 2006-02-15 12:31:25Z  $ */
  14  
  15      class soserver
  16      {
  17          var $is = '';
  18          var $debug = False;
  19  
  20  		function soserver()
  21          {
  22              $this->is =& CreateObject('phpgwapi.interserver');
  23          }
  24  
  25  		function list_servers($data='',&$total)
  26          {
  27              if(@is_array($data))
  28              {
  29                  if($this->debug) { _debug_array($data); }
  30                  list($start,$sort,$order,$query,$limit) = $data;
  31              }
  32              return $this->is->get_list($start,$sort,$order,$query,$limit,$total);
  33          }
  34  
  35  		function read($id)
  36          {
  37              return $this->is->read_repository($id);
  38          }
  39  
  40  		function add($server_info)
  41          {
  42              return $this->is->create($server_info);
  43          }
  44  
  45  		function update($server_info)
  46          {
  47              $this->is->server = $server_info;
  48              $this->is->save_repository($server_info['server_id']);
  49              return $this->is->read_repository($server_info['server_id']);
  50          }
  51  
  52  		function delete($id)
  53          {
  54              return $this->is->delete($id);
  55          }
  56      }
  57  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7