b2evolution

Multilingual multiuser multiblog engine

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

Class: ItemTypeCache

Source Location: /blogs/inc/items/model/_itemtypecache.class.php

Class ItemTypeCache

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

Inherited From DataObjectCache

DataObjectCache::$all_loaded
DataObjectCache::$cache
DataObjectCache::$current_idx
DataObjectCache::$DataObject_array
DataObjectCache::$dbIDname
DataObjectCache::$dbprefix
DataObjectCache::$dbtablename
DataObjectCache::$load_all
DataObjectCache::$name_field
DataObjectCache::$none_option_text
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_first()
This provides a simple interface for looping over the contents of the Cache.
DataObjectCache::get_ID_array()
Get an array of all (loaded) IDs.
DataObjectCache::get_next()
This provides a simple interface for looping over the contents of the Cache.
DataObjectCache::get_option_list()
Returns form option list with cache contents
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()
Instanciate a new object within this cache
DataObjectCache::remove_by_ID()
Remove an object from cache by ID

[ Top ]
Property Summary
mixed   $col_cache   Item type cache for each collection
mixed   $col_default   Default item type for each collection

[ Top ]
Method Summary
ItemTypeCache   ItemTypeCache()   Constructor
void   get_col_default_type_ID()   Return the default item type ID for a given collection
string   get_option_list_by_col_ID()   Returns form option list with cache contents restricted to a collection
void   load_col()   Load a list of item types for a given collection and store them into the collection cache

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

Item type cache for each collection


[ Top ]
mixed   $col_default = array() [line 53]

Default item type for each collection


[ Top ]
Methods
Constructor ItemTypeCache  [line 61]

  ItemTypeCache ItemTypeCache( table 0  )

Constructor

Parameters:
table   0:  Database row


[ Top ]
get_col_default_type_ID  [line 103]

  void get_col_default_type_ID( integer $col_ID  )

Return the default item type ID for a given collection

fp> will be used in b2evo 2.0

Parameters:
integer   $col_ID:  collection ID


[ Top ]
get_option_list_by_col_ID  [line 125]

  string get_option_list_by_col_ID( integer $default, integer $col_ID  )

Returns form option list with cache contents restricted to a collection

Load the item types collection cache if necessary

fp> will be used in b2evo 2.0

Parameters:
integer   $default:  selected ID
integer   $col_ID:  collection ID


[ Top ]
load_col  [line 73]

  void load_col( $col_ID  )

Load a list of item types for a given collection and store them into the collection cache

Note: object will also get stored into the global cache.

Parameters:
   $col_ID: 


[ Top ]

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