[ 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/_core/model/dataobjects/ -> _dataobjectcache.class.php (sommaire)

This file implements the DataObjectCache class. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

Author: blueyed: Daniel HAHLER.
Author: fplanque: Francois PLANQUE
Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
Version: $Id: _dataobjectcache.class.php,v 1.1 2007/06/25 10:58:56 fplanque Exp $
Poids: 629 lignes (16 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

DataObjectCache:: (9 méthodes):
  DataObjectCache()
  load_all()
  load_list()
  get_ID_array()
  add()
  clear()
  remove_by_ID()
  dbdelete_by_ID()
  get_option_list()


Classe: DataObjectCache  - X-Ref

Data Object Cache Class

DataObjectCache( $objtype, $load_all, $tablename, $prefix = '', $dbIDname, $name_field = NULL, $order_by = '', $allow_none_text = NULL )   X-Ref
Constructor

param: string Name of DataObject class we are cacheing
param: boolean true if it's OK to just load all items!
param: string Name of table in database
param: string Prefix of fields in the table
param: string Name of the ID field (including prefix)
param: string Name of the name field (including prefix)
param: string field names or NULL to use name field
param: string The text that gets used for the "None" option in the objects options list (Default: T_('None')).

load_all()   X-Ref
Pas de description

load_list( $req_list )   X-Ref
Load a list of objects into the cache

param: string list of IDs of objects to load

get_ID_array()   X-Ref
Get an array of all (loaded) IDs.

return: array

add( & $Obj )   X-Ref
Add a dataobject to the cache


clear( $keep_shadow = false )   X-Ref
Pas de description

remove_by_ID( $req_ID )   X-Ref
Pas de description

dbdelete_by_ID( $req_ID )   X-Ref
Delete an object from DB by ID.

param: integer ID of object to delete
return: boolean

get_option_list( $default = 0, $allow_none = false, $method = 'get_name' )   X-Ref
Returns form option list with cache contents

Load the cache if necessary

param: integer selected ID
param: boolean provide a choice for "none" with ID ''
param: string Callback method name
return: string



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