HTMLPurifier 4.4.0
HTMLPurifier_StringHash Class Reference

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

List of all members.

Public Member Functions

 offsetGet ($index)
 Retrieves a value, and logs the access.
 getAccessed ()
 Returns a lookup array of all array indexes that have been accessed.
 resetAccessed ()
 Resets the access array.
 offsetGet ($index)
 Retrieves a value, and logs the access.
 getAccessed ()
 Returns a lookup array of all array indexes that have been accessed.
 resetAccessed ()
 Resets the access array.

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.

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 6793 of file HTMLPurifier.standalone.php.

HTMLPurifier_StringHash::offsetGet ( index)

Retrieves a value, and logs the access.

Definition at line 18 of file StringHash.php.

Referenced by offsetGet().

HTMLPurifier_StringHash::offsetGet ( index)

Retrieves a value, and logs the access.

Definition at line 6784 of file HTMLPurifier.standalone.php.

References offsetGet().

HTMLPurifier_StringHash::resetAccessed ( )

Resets the access array.

Definition at line 34 of file StringHash.php.

HTMLPurifier_StringHash::resetAccessed ( )

Resets the access array.

Definition at line 6800 of file HTMLPurifier.standalone.php.


Member Data Documentation

HTMLPurifier_StringHash::$accessed = array() [protected]

Definition at line 13 of file StringHash.php.


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