class vB_FastDS_APC extends vB_FastDS

Traits

Constants

TYPE_DATASTORE

TYPE_PHRASES

TYPE_TEMPLATES

Properties

static protected $enabled from vB_FastDS
static protected $fastInstance from vB_FastDS
protected $phrasesCached from vB_FastDS
protected $phRebuilt from vB_FastDS
protected $dsCached from vB_FastDS
protected $dsRebuilt from vB_FastDS
protected $templatesCached from vB_FastDS
protected $tmRebuilt from vB_FastDS
protected $prefix from vB_FastDS
protected $rebuilt from vB_FastDS
protected $language from vB_FastDS
protected $styleid from vB_FastDS
static protected $building from vB_FastDS
protected $skipDSCache from vB_FastDS

Methods

__sleep()

No description

__wakeup()

No description

static mixed
instance()

Returns a reference to the current fastDS object, or false

from vB_FastDS
a
__construct($config)

standard constructor

from vB_FastDS
restoreSettings($settings)

Restores the settings from APC

from vB_FastDS
saveSettings()

No description

from vB_FastDS
buildFastDS()

reBuilds the fastDS data. This is called if the cached value is lost, or after upgrade.

from vB_FastDS
integer
buildPhrases(integer $maxSize)

reBuilds the fastDS data. This is called if the cached value is lost, or after upgrade.

from vB_FastDS
integer
buildDatastore(integer $maxSize)

reBuilds the fastDS data. This is called if the cached value is lost, or after upgrade.

from vB_FastDS
integer
buildTemplates(integer $maxSize)

reBuilds the fastDS data. This is called if the cached value is lost, or after upgrade.

from vB_FastDS
mixed
getValue($prefix, $keys)

gets a value

bool
setValue($key, $value)

sets a value

bool
clearValue(mixed $key)

clears a value

mixed
getDS($dsKeys)

gets a datastore value

from vB_FastDS
bool
setDS($dsKey, $value)

sets a datastore value

from vB_FastDS
string
getPhrases($varnames, $languageid)

gets a phrase, or set of phrases, from the default language

from vB_FastDS
bool
setPhrase($varname, $value)

sets a default language phrase

from vB_FastDS
string-
getTemplates($templateNames, $styleid)

gets a template from the default style

from vB_FastDS
bool
setTemplate($title, $value)

sets a template value

from vB_FastDS
setDsChanged($title)

No description

from vB_FastDS

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

in vB_FastDS at line 62
static mixed instance()

Returns a reference to the current fastDS object, or false

Return Value

mixed either a fastDS instance or false

in vB_FastDS at line 114
protected a __construct($config)

standard constructor

@param mixed The config object from vB::getConfig()

Parameters

$config

Return Value

a fastDS object

in vB_FastDS at line 155
protected restoreSettings($settings)

Restores the settings from APC

@param mixed the cached summary read from APC

Parameters

$settings

in vB_FastDS at line 218
protected saveSettings()

in vB_FastDS at line 232
buildFastDS()

reBuilds the fastDS data. This is called if the cached value is lost, or after upgrade.

in vB_FastDS at line 279
protected integer buildPhrases(integer $maxSize)

reBuilds the fastDS data. This is called if the cached value is lost, or after upgrade.

Parameters

integer $maxSize the maximum space allowed for caching this data.

Return Value

integer estimate of the space used. Note that we can't be exact.

in vB_FastDS at line 361
protected integer buildDatastore(integer $maxSize)

reBuilds the fastDS data. This is called if the cached value is lost, or after upgrade.

Parameters

integer $maxSize the maximum space allowed for caching this data.

Return Value

integer estimate of the space used. Note that we can't be exact.

in vB_FastDS at line 421
protected integer buildTemplates(integer $maxSize)

reBuilds the fastDS data. This is called if the cached value is lost, or after upgrade.

Parameters

integer $maxSize the maximum space allowed for caching this data.

Return Value

integer estimate of the space used. Note that we can't be exact.

at line 44
protected mixed getValue($prefix, $keys)

gets a value

@param string

Parameters

$prefix
$keys

Return Value

mixed the value from fastDS

at line 91
protected bool setValue($key, $value)

sets a value

@param string key

Parameters

$key
$value

Return Value

bool true if it succeeded, otherwise false

at line 100
protected bool clearValue(mixed $key)

clears a value

@param string key

Parameters

mixed $key value to be stored

Return Value

bool true if it succeeded, otherwise false

in vB_FastDS at line 507
mixed getDS($dsKeys)

gets a datastore value

@param mixed string or array of string

Parameters

$dsKeys

Return Value

mixed the datastore value

in vB_FastDS at line 558
bool setDS($dsKey, $value)

sets a datastore value

@param string key

Parameters

$dsKey
$value

Return Value

bool true if it succeeded, otherwise false

in vB_FastDS at line 574
string getPhrases($varnames, $languageid)

gets a phrase, or set of phrases, from the default language

@param mixed string or array of strings

Parameters

$varnames
$languageid

Return Value

string

in vB_FastDS at line 603
protected bool setPhrase($varname, $value)

sets a default language phrase

@param string key

Parameters

$varname
$value

Return Value

bool true if it succeeded, otherwise false

in vB_FastDS at line 619
string- getTemplates($templateNames, $styleid)

gets a template from the default style

@param mixed string or array of string

Parameters

$templateNames
$styleid

Return Value

string- the template contents

in vB_FastDS at line 650
protected bool setTemplate($title, $value)

sets a template value

@param string key

Parameters

$title
$value

Return Value

bool true if it succeeded, otherwise false

in vB_FastDS at line 662
setDsChanged($title)

Parameters

$title