MediaWiki  REL1_19
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 ()
 delete ($key, $time=0)
 Delete an item.
 get ($key)
 Get an item with the given key.
 keys ()
 set ($key, $value, $exptime=0)
 Set an item.

Public Attributes

 $bag

Protected Member Functions

 expire ($key)

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 9 of file HashBagOStuff.php.


Constructor & Destructor Documentation

Definition at line 12 of file HashBagOStuff.php.


Member Function Documentation

HashBagOStuff::delete ( key,
time = 0 
)

Delete an item.

Parameters:
$keystring
$timeint Amount of time to delay the operation (mostly memcached-specific)

Reimplemented from BagOStuff.

Definition at line 44 of file HashBagOStuff.php.

HashBagOStuff::expire ( key) [protected]

Definition at line 16 of file HashBagOStuff.php.

Referenced by get().

Here is the caller graph for this function:

HashBagOStuff::get ( key)

Get an item with the given key.

Returns false if it does not exist.

Parameters:
$keystring
Returns:
bool|Object

Reimplemented from BagOStuff.

Definition at line 28 of file HashBagOStuff.php.

References expire().

Here is the call graph for this function:

Reimplemented from BagOStuff.

Definition at line 54 of file HashBagOStuff.php.

HashBagOStuff::set ( key,
value,
exptime = 0 
)

Set an item.

Parameters:
$keystring
$valuemixed
$exptimeint Either an interval in seconds or a unix timestamp for expiry

Reimplemented from BagOStuff.

Definition at line 40 of file HashBagOStuff.php.

References BagOStuff\convertExpiry().

Here is the call graph for this function:


Member Data Documentation

HashBagOStuff::$bag

Definition at line 10 of file HashBagOStuff.php.


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