Class vB_Datastore_XCache

Description

Class for fetching and initializing the vBulletin datastore from XCache

  • version: $Revision: 32878 $
  • date: $Date: 2009-10-28 13:38:49 -0500 (Wed, 28 Oct 2009) $

Located in /includes/class_datastore.php (line 475)

vB_Datastore
   |
   --vB_Datastore_XCache
Variable Summary
 boolean $store_result
Method Summary
 void build (string $title, mixed $data)
 boolean do_fetch (string $title, array &$unfetched_items)
 void fetch (array $items)
 void register (string $title, mixed $data, [ $unserialize_detect = 2])
Variables
boolean $store_result = false (line 482)

Indicates if the result of a call to the register function should store the value in memory

Inherited Variables

Inherited from vB_Datastore

vB_Datastore::$checked_options
vB_Datastore::$dbobject
vB_Datastore::$defaultitems
vB_Datastore::$prefix
vB_Datastore::$registered
vB_Datastore::$registry
Methods
build (line 577)

Updates the appropriate cache file

void build (string $title, mixed $data)
  • string $title: title of the datastore item
  • mixed $data: The data associated with the title
do_fetch (line 537)

Fetches the data from shared memory and detects errors

boolean do_fetch (string $title, array &$unfetched_items)
  • string $title: title of the datastore item
  • array &$unfetched_items: A reference to an array of items that failed and need to fetched from the database
fetch (line 491)

Fetches the contents of the datastore from XCache

void fetch (array $items)
  • array $items: Array of items to fetch from the datastore

Redefinition of:
vB_Datastore::fetch()
Fetches the contents of the datastore from the database
register (line 560)

Sorts the data returned from the cache and places it into appropriate places

void register (string $title, mixed $data, [ $unserialize_detect = 2])
  • string $title: The name of the data item to be processed
  • mixed $data: The data associated with the title
  • $unserialize_detect

Redefinition of:
vB_Datastore::register()
Sorts the data returned from the cache and places it into appropriate places

Inherited Methods

Inherited From vB_Datastore

 vB_Datastore::vB_Datastore()
 vB_Datastore::check_options()
 vB_Datastore::do_db_fetch()
 vB_Datastore::fetch()
 vB_Datastore::prepare_itemarray()
 vB_Datastore::prepare_itemlist()
 vB_Datastore::register()

Documentation generated on Tue, 26 Jan 2010 15:15:07 -0600 by phpDocumentor 1.4.3