b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (CVS HEAD) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Class: SkinCache

Source Location: /blogs/inc/skins/model/_skincache.class.php

Class SkinCache

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::$ID_array
DataObjectCache::$load_all
DataObjectCache::$name_field
DataObjectCache::$none_option_text
DataObjectCache::$none_option_value
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_list()
Get list of objects, referenced by list of IDs.
DataObjectCache::get_next()
This provides a simple interface for looping over the contents of the Cache.
DataObjectCache::get_option_array()
Returns option array with cache contents
DataObjectCache::get_option_list()
Returns form option list with cache contents
DataObjectCache::get_SQL_object()
Get base SQL object for queries.
DataObjectCache::instantiate()
Instantiate a DataObject from a table row and then cache it.
DataObjectCache::instantiate_list()
DataObjectCache::load_all()
Load the cache **extensively**
DataObjectCache::load_by_sql()
Load a set of objects into the cache.
DataObjectCache::load_list()
Load a list of objects into the cache.
DataObjectCache::load_where()
Load a set 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
DataObjectCache::rewind()
Rewind internal index to first position.

[ Top ]
Property Summary
array   $cache_by_folder   Cache by folder
mixed   $loaded_types  

[ Top ]
Method Summary
SkinCache   SkinCache()   Constructor
boolean   add()   Add object to cache, handling our own indices.
Skin   &get_by_folder()   Get an object from cache by its folder name.
void   load_by_type()   Load the cache by type
void   &new_obj()   Instanciate a new object within this cache

[ Top ]
Properties
array   $cache_by_folder = array() [line 47]

Cache by folder


[ Top ]
mixed   $loaded_types = array() [line 49]

[ Top ]
Methods
Constructor SkinCache  [line 55]

  SkinCache SkinCache( )

Constructor



[ Top ]
add  [line 68]

  boolean add( Skin &$Skin  )

Add object to cache, handling our own indices.

Parameters:
Skin   &$Skin: 

API Tags:
Return:  True on add, false if already existing.


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

[ Top ]
get_by_folder  [line 87]

  Skin &get_by_folder( string $req_folder, [boolean $halt_on_error = true]  )

Get an object from cache by its folder name.

Load the object into cache, if necessary.

This is used to get a skin for an RSS/Aom type; also to check if a skin is installed.

Parameters:
string   $req_folder:  folder name of object to load
boolean   $halt_on_error:  false if you want to return false on error

API Tags:
Return:  A Skin object on success, false on failure (may also halt!)


[ Top ]
load_by_type  [line 123]

  void load_by_type( string $type  )

Load the cache by type

Parameters:
string   $type: 


[ Top ]
new_obj  [line 157]

  void &new_obj( [ $row = NULL], [ $skin_folder = NULL]  )

Instanciate a new object within this cache

Parameters:
   $row: 
   $skin_folder: 


Redefinition of:
DataObjectCache::new_obj()
Instanciate a new object within this cache

[ Top ]

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