Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Deja_Vu Class Reference
Inheritance diagram for Deja_Vu:
MySource_Object

Public Member Functions

 __construct ()
 
 enabled ()
 
 recall ($type, $assetid=NULL, $contextid=NULL)
 
 remember ($type, $assetid, $object, $contextid=NULL)
 
 forget ($type, $assetid=NULL, $contextid=NULL)
 
 forgetAll ()
 
 onAssetStatusUpdate (&$broadcaster, $vars)
 
 onAssetDeleted (&$broadcaster, $vars)
 
 onAssetUpdate (&$broadcaster, $vars=Array())
 
 onContentsUpdated (&$broadcaster, $vars)
 
 onAttributeChange (&$broadcaster, $vars)
 
 onAssetTypeUpdate (&$broadcaster, $vars=Array())
 
 enable ()
 
 disable ()
 
 failureCallback ($hostname, $port)
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Additional Inherited Members

- Data Fields inherited from MySource_Object
 $_tmp
 

Detailed Description

Definition at line 40 of file deja_vu.inc.

Constructor & Destructor Documentation

__construct ( )

Constructor

Runs a bunch of assertions for the config, which will throw fatals.

Returns
Deja_Vu public

Definition at line 66 of file deja_vu.inc.

Member Function Documentation

disable ( )

Disable DeJa Vu

Returns
bool Success|Failure public

Definition at line 394 of file deja_vu.inc.

enable ( )

Enable DeJa Vu

Returns
bool Success|Failure public

Definition at line 375 of file deja_vu.inc.

enabled ( )

Flag to control enabled/disabled state.

Returns
bool public

Definition at line 120 of file deja_vu.inc.

failureCallback (   $hostname,
  $port 
)

Failure Callback function for Memcache::addServer

Parameters
$hostname
$port
Returns
void public

Definition at line 417 of file deja_vu.inc.

forget (   $type,
  $assetid = NULL,
  $contextid = NULL 
)

Remove an item from memcached

Parameters
string$itemidid of the item to remove
Returns
boolean false if the item is not in the cache or failure public

Definition at line 220 of file deja_vu.inc.

forgetAll ( )

Forget everything.

Returns
bool Success|Failure public

Definition at line 232 of file deja_vu.inc.

onAssetDeleted ( $broadcaster,
  $vars 
)

Event handler for when asset is deleted.

Parameters
Objectbroadcaster
Arrayvars
Returns
void public

Definition at line 293 of file deja_vu.inc.

onAssetStatusUpdate ( $broadcaster,
  $vars 
)

Event handler for when asset status changes.

Parameters
Objectbroadcaster
Arrayvars
Returns
void public

Definition at line 275 of file deja_vu.inc.

onAssetTypeUpdate ( $broadcaster,
  $vars = Array() 
)

Event handler for when asset type changes (morphing).

Parameters
Objectbroadcaster
Arrayvars
Returns
void public

Definition at line 356 of file deja_vu.inc.

onAssetUpdate ( $broadcaster,
  $vars = Array() 
)

Event handler for when asset is updated.

Parameters
Objectbroadcaster
Arrayvars
Returns
void public

Definition at line 311 of file deja_vu.inc.

onAttributeChange ( $broadcaster,
  $vars 
)

Event handler for when asset attributes change.

Parameters
Objectbroadcaster
Arrayvars
Returns
void public

Definition at line 341 of file deja_vu.inc.

onContentsUpdated ( $broadcaster,
  $vars 
)

Event handler for when asset's contents are updated.

Parameters
Objectbroadcaster
Arrayvars
Returns
void public

Definition at line 326 of file deja_vu.inc.

recall (   $type,
  $assetid = NULL,
  $contextid = NULL 
)

Fetch an item from memcached, or null if not found.

Parameters
String$typeThe type of data sort, asset or metadata currently.
String$assetid
Returns
mixed (Object or Array) public

Definition at line 136 of file deja_vu.inc.

remember (   $type,
  $assetid,
  $object,
  $contextid = NULL 
)

Store an item in memcached.

Parameters
String$typeThe type of data sort, asset or metadata currently.
String$assetid
Mixed$objectThe object to store. Which might not be an Object.
Returns
boolean public

Definition at line 201 of file deja_vu.inc.


The documentation for this class was generated from the following file: