[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/generic/model/ -> _genericcache.class.php (source)

   1  <?php
   2  /**

   3   * This file implements the Generic Cache class.

   4   *

   5   * This file is part of the evoCore framework - {@link http://evocore.net/}

   6   * See also {@link http://sourceforge.net/projects/evocms/}.

   7   *

   8   * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}

   9   * Parts of this file are copyright (c)2005-2006 by PROGIDISTRI - {@link http://progidistri.com/}.

  10   *

  11   * {@internal License choice

  12   * - If you have received this file as part of a package, please find the license.txt file in

  13   *   the same folder or the closest folder above for complete license terms.

  14   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)

  15   *   then you must choose one of the following licenses before using the file:

  16   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php

  17   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php

  18   * }}

  19   *

  20   * {@internal Open Source relicensing agreement:

  21   * PROGIDISTRI S.A.S. grants Francois PLANQUE the right to license

  22   * PROGIDISTRI S.A.S.'s contributions to this file and the b2evolution project

  23   * under any OSI approved OSS license (http://www.opensource.org/licenses/).

  24   * }}

  25   *

  26   * @package evocore

  27   *

  28   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}

  29   * @author fplanque: Francois PLANQUE.

  30   * @author mbruneau: Marc BRUNEAU / PROGIDISTRI

  31   *

  32   * @version $Id: _genericcache.class.php,v 1.1 2007/06/25 11:00:14 fplanque Exp $

  33   */
  34  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  35  
  36  load_class('_core/model/dataobjects/_dataobjectcache.class.php');
  37  
  38  /**

  39   * GenericCache Class

  40   * @package evocore

  41   */
  42  class GenericCache extends DataObjectCache
  43  {
  44      /**

  45       * Constructor

  46       */
  47  	function GenericCache( $objtype, $load_all, $tablename, $prefix = '', $dbIDname = 'ID', $name_field = NULL, $order_by = '', $allow_none_text = NULL )
  48      {
  49          parent::DataObjectCache( $objtype, $load_all, $tablename, $prefix, $dbIDname, $name_field, $order_by, $allow_none_text );
  50      }
  51  
  52  
  53      /**

  54       * Instanciate a new object within this cache

  55       *

  56       * @param object|NULL

  57       */
  58      function & new_obj( $row = NULL )
  59      {
  60          $objtype = $this->objtype;
  61  
  62          // Instantiate a custom object

  63          $obj = new $objtype( $this->dbtablename, $this->dbprefix, $this->dbIDname, $row ); // Copy

  64  
  65          return $obj;
  66      }
  67  }
  68  
  69  /*

  70   * $Log: _genericcache.class.php,v $

  71   * Revision 1.1  2007/06/25 11:00:14  fplanque

  72   * MODULES (refactored MVC)

  73   *

  74   * Revision 1.9  2007/06/11 22:01:53  blueyed

  75   * doc fixes

  76   *

  77   * Revision 1.8  2007/04/26 00:11:11  fplanque

  78   * (c) 2007

  79   *

  80   * Revision 1.7  2006/12/05 01:35:27  blueyed

  81   * Hooray for less complexity and the 8th param for DataObjectCache()

  82   *

  83   * Revision 1.6  2006/11/24 18:27:24  blueyed

  84   * Fixed link to b2evo CVS browsing interface in file docblocks

  85   */
  86  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics