[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/filemanager/inc/ -> class.sofilemanager.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare - Filemanager                                                 *
   4      * http://www.egroupware.org                                                *
   5      * ------------------------------------------------------------------------ *
   6      *  This program is free software; you can redistribute it and/or modify it *
   7      *  under the terms of the GNU General Public License as published by the   *
   8      *  Free Software Foundation; either version 2 of the License, or (at your  *
   9      *  option) any later version.                                              *
  10      \**************************************************************************/
  11  
  12      /* $Id: class.sofilemanager.inc.php 19410 2005-10-14 10:41:15Z ralfbecker $ */
  13  
  14      class sofilemanager
  15      {
  16          var $db;
  17  
  18  		function sofilemanager()
  19          {
  20              $this->db = clone($GLOBALS['egw']->db);
  21          }
  22  
  23          /* Any initializations that need to be done */
  24  		function db_init()
  25          {
  26              $this->db->Auto_Free = 0;
  27          }
  28  
  29          /* General SQL query */
  30  		function db_query($query)
  31          {
  32  
  33              return $this->db->query($query);
  34          }
  35  
  36          /* Fetch next array for $query_id */
  37  		function db_fetch_array($query_id)
  38          {
  39              //    $egw->db->Query_ID = $query_id;
  40              $this->db->next_record();
  41              return $this->db->Record;
  42          }
  43  
  44          /*
  45          General wrapper for all other db calls
  46          Calls in here are simply returned, so not all will work
  47          */
  48  		function db_call($function, $query_id)
  49          {
  50              //    $egw->db->Query_ID = $query_id;
  51              return $this->db->$function();
  52          }
  53      }
  54  ?>


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