b2evolution

Multilingual multiuser multiblog engine

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

Class: FiletypeCache

Source Location: /blogs/inc/MODEL/files/_filetypecache.class.php

Class FiletypeCache

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
FiletypeCache   FiletypeCache()   Constructor
void   add()   Add a dataobject to the cache
reference   &get_by_extension()   Get an object from cache by extensions ID

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

[ Top ]
Methods
Constructor FiletypeCache  [line 55]

  FiletypeCache FiletypeCache( [table $db_row = NULL]  )

Constructor

Parameters:
table   $db_row:  Database row


[ Top ]
add  [line 65]

  void add( &$Obj  )

Add a dataobject to the cache

Parameters:
   &$Obj: 


Redefinition of:
DataObjectCache::add()
Add a dataobject to the cache

[ Top ]
get_by_extension  [line 106]

  reference &get_by_extension( string $req_ID, [boolean $halt_on_error = true], [boolean $halt_on_empty = true]  )

Get an object from cache by extensions ID

Load the cache if necessary (all at once if allowed).

Parameters:
string   $req_ID:  Extension string of object to load
boolean   $halt_on_error:  true if function should die on error
boolean   $halt_on_empty:  true if function should die on empty/null

API Tags:
Return:  on cached object


[ Top ]

Documentation generated on Tue, 18 Dec 2007 19:15:36 +0100 by phpDocumentor 1.4.0