b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.8) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Class: ItemCache

Source Location: /blogs/inc/MODEL/items/_itemcache.class.php

Class ItemCache

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From DataObjectCache

DataObjectCache::$all_loaded
DataObjectCache::$cache
DataObjectCache::$dbIDname
DataObjectCache::$dbprefix
DataObjectCache::$dbtablename
DataObjectCache::$load_add
DataObjectCache::$name_field
DataObjectCache::$objtype
DataObjectCache::$order_by
DataObjectCache::$shadow_cache

Inherited From DataObjectCache

DataObjectCache::DataObjectCache()
Constructor
DataObjectCache::add()
Add a dataobject to the cache
DataObjectCache::clear()
Clear the cache **extensively**
DataObjectCache::dbdelete_by_ID()
Delete an object from DB by ID.
DataObjectCache::get_by_ID()
Get an object from cache by ID
DataObjectCache::get_by_name()
Get an object from cache by name
DataObjectCache::get_ID_array()
Get an array of all (loaded) IDs.
DataObjectCache::instantiate()
Instantiate a DataObject from a table row and then cache it.
DataObjectCache::load_all()
Load the cache **extensively**
DataObjectCache::load_list()
Load a list of objects into the cache
DataObjectCache::new_obj()
TODO
DataObjectCache::option_list()
Display form option list with cache contents
DataObjectCache::option_list_return()
Returns form option list with cache contents
DataObjectCache::remove_by_ID()
Remove an object from cache by ID

[ Top ]
Method Summary
ItemCache   ItemCache()   Constructor
void   &get_by_urltitle()   Get an object from cache by its urltitle
void   load_urltitle_array()   Load a list of item referenced by their urltitle into the cache

[ Top ]
Properties
mixed   $urltitle_index = array() [line 48]

[ Top ]
Methods
Constructor ItemCache  [line 58]

  ItemCache ItemCache( [string $objType = 'Item'], [string $dbtablename = 'T_posts'], [string $dbprefix = 'post_'], [string $dbIDname = 'post_ID']  )

Constructor

Parameters:
string   $objType:  object type of elements in Cache
string   $dbtablename:  Name of the DB table
string   $dbprefix:  Prefix of fields in the table
string   $dbIDname:  Name of the ID field (including prefix)


[ Top ]
get_by_urltitle  [line 71]

  void &get_by_urltitle( string $req_urltitle, [boolean $halt_on_error = true]  )

Get an object from cache by its urltitle

Load into cache if necessary

Parameters:
string   $req_urltitle:  stub of object to load
boolean   $halt_on_error:  false if you want to return false on error


[ Top ]
load_urltitle_array  [line 113]

  void load_urltitle_array( array $req_array  )

Load a list of item referenced by their urltitle into the cache

Parameters:
array   $req_array:  of urltitles of Items to load


[ Top ]

Documentation generated on Tue, 18 Dec 2007 23:17:08 +0100 by phpDocumentor 1.4.0