b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (CVS HEAD) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Source for file _genericcache.class.php

Documentation is available at _genericcache.class.php

  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-2010 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.7 2010/02/26 18:36:04 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' ,'DataObjectCache' );
  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.7  2010/02/26 18:36:04  fplanque
  72.  * this seemed wrong
  73.  *
  74.  * Revision 1.6  2010/02/08 17:53:02  efy-yury
  75.  * copyright 2009 -> 2010
  76.  *
  77.  * Revision 1.5  2010/01/30 18:55:27  blueyed
  78.  * Fix "Assigning the return value of new by reference is deprecated" (PHP 5.3)
  79.  *
  80.  * Revision 1.4  2009/09/14 12:25:47  efy-arrin
  81.  * Included the ClassName in load_class() call with proper UpperCase
  82.  *
  83.  * Revision 1.3  2009/03/08 23:57:43  fplanque
  84.  * 2009
  85.  *
  86.  * Revision 1.2  2008/01/21 09:35:30  fplanque
  87.  * (c) 2008
  88.  *
  89.  * Revision 1.1  2007/06/25 11:00:14  fplanque
  90.  * MODULES (refactored MVC)
  91.  *
  92.  * Revision 1.9  2007/06/11 22:01:53  blueyed
  93.  * doc fixes
  94.  *
  95.  * Revision 1.8  2007/04/26 00:11:11  fplanque
  96.  * (c) 2007
  97.  *
  98.  * Revision 1.7  2006/12/05 01:35:27  blueyed
  99.  * Hooray for less complexity and the 8th param for DataObjectCache()
  100.  *
  101.  * Revision 1.6  2006/11/24 18:27:24  blueyed
  102.  * Fixed link to b2evo CVS browsing interface in file docblocks
  103.  */
  104. ?>

Documentation generated on Sat, 06 Mar 2010 04:11:33 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).