MediaWiki  REL1_24
HashBagOStuff Class Reference

This is a test of the interface, mainly. More...

Inheritance diagram for HashBagOStuff:
Collaboration diagram for HashBagOStuff:

List of all members.

Public Member Functions

 __construct ()
 cas ($casToken, $key, $value, $exptime=0)
 delete ($key, $time=0)
 get ($key, &$casToken=null)
 set ($key, $value, $exptime=0)

Protected Member Functions

 expire ($key)

Protected Attributes

array $bag
 *

Detailed Description

This is a test of the interface, mainly.

It stores things in an associative array, which is not going to persist between program runs.

Definition at line 30 of file HashBagOStuff.php.


Constructor & Destructor Documentation

Definition at line 33 of file HashBagOStuff.php.

References array().


Member Function Documentation

HashBagOStuff::cas ( casToken,
key,
value,
exptime = 0 
)
Parameters:
mixed$casToken
string$key
mixed$value
int$exptime
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 90 of file HashBagOStuff.php.

HashBagOStuff::delete ( key,
time = 0 
)
Parameters:
string$key
int$time
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 103 of file HashBagOStuff.php.

HashBagOStuff::expire ( key) [protected]
Parameters:
string$key
Returns:
bool

Definition at line 41 of file HashBagOStuff.php.

HashBagOStuff::get ( key,
&$  casToken = null 
)
Parameters:
string$key
mixed$casToken[optional]
Returns:
bool|mixed

Reimplemented from BagOStuff.

Definition at line 58 of file HashBagOStuff.php.

HashBagOStuff::set ( key,
value,
exptime = 0 
)
Parameters:
string$key
mixed$value
int$exptime
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 78 of file HashBagOStuff.php.


Member Data Documentation

array HashBagOStuff::$bag [protected]

*

Definition at line 31 of file HashBagOStuff.php.


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