b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.9) [ class tree: gsbcore ] [ index: gsbcore ] [ all elements ]

Class: ItemTypeCache

Source Location: /blogs/inc/MODEL/items/_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::$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 ]
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
void   load_col()   Load a list of item types for a given collection and store them into the collection cache
void   option_list_by_col_ID()   Returns form option list with cache contents restricted to a collection

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

Item type cache for each collection


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

Default item type for each collection


[ Top ]
Methods
Constructor ItemTypeCache  [line 64]

  ItemTypeCache ItemTypeCache( table 0  )

Constructor

Parameters:
table   0:  Database row


[ Top ]
get_col_default_type_ID  [line 106]

  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 ]
load_col  [line 76]

  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 ]
option_list_by_col_ID  [line 127]

  void 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 ]

Documentation generated on Tue, 18 Dec 2007 22:47:37 +0100 by phpDocumentor 1.4.0