Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_StringHash Class Reference

Public Member Functions

 offsetGet ($index)
 getAccessed ()
 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

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.

offsetGet ( index)

Retrieves a value, and logs the access.

Definition at line 18 of file StringHash.php.

Resets the access array.

Definition at line 34 of file StringHash.php.


Field Documentation

$accessed = array() [protected]

Definition at line 13 of file StringHash.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations