MediaWiki  REL1_20
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)
 get ($key)
 keys ()
 set ($key, $value, $exptime=0)

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


Constructor & Destructor Documentation

Definition at line 33 of file HashBagOStuff.php.


Member Function Documentation

HashBagOStuff::delete ( key,
time = 0 
)
Parameters:
$keystring
$timeint
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 85 of file HashBagOStuff.php.

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

Definition at line 41 of file HashBagOStuff.php.

Referenced by get().

HashBagOStuff::get ( key)
Parameters:
$keystring
Returns:
bool|mixed

Reimplemented from BagOStuff.

Definition at line 57 of file HashBagOStuff.php.

References expire().

Returns:
array

Reimplemented from BagOStuff.

Definition at line 98 of file HashBagOStuff.php.

HashBagOStuff::set ( key,
value,
exptime = 0 
)
Parameters:
$keystring
$valuemixed
$exptimeint
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 75 of file HashBagOStuff.php.

References $value, and BagOStuff\convertExpiry().


Member Data Documentation

HashBagOStuff::$bag

Definition at line 31 of file HashBagOStuff.php.


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