XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_StringHash Class Reference
Inheritance diagram for HTMLPurifier_StringHash:
Inheritance graph

Public Member Functions

 getAccessed ()
 
 offsetGet ($index)
 
 resetAccessed ()
 

Protected Attributes

 $accessed = array()
 

Detailed Description

This is in almost every respect equivalent to an array except that it keeps track of which keys were accessed.

Warning
For the sake of backwards compatibility with early versions of PHP 5, you must not use the $hash[$key] syntax; if you do our version of offsetGet is never called.

Definition at line 11 of file StringHash.php.

Member Function Documentation

HTMLPurifier_StringHash::getAccessed ( )

Returns a lookup array of all array indexes that have been accessed.

Returns
Array in form array($index => true).

Definition at line 27 of file StringHash.php.

References $accessed.

HTMLPurifier_StringHash::offsetGet (   $index)

Retrieves a value, and logs the access.

Definition at line 18 of file StringHash.php.

References $index.

HTMLPurifier_StringHash::resetAccessed ( )

Resets the access array.

Definition at line 34 of file StringHash.php.

Member Data Documentation

HTMLPurifier_StringHash::$accessed = array()
protected

Definition at line 13 of file StringHash.php.

Referenced by getAccessed().


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