Class HTMLPurifier_StringHash

InheritanceHTMLPurifier_StringHash » ArrayObject

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

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$accessed HTMLPurifier_StringHash

Public Methods

Hide inherited methods

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

Property Details

$accessed protected property
protected $accessed = []

Method Details

getAccessed() public method

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

public array getAccessed ( )
return array

In form array($index => true).

offsetGet() public method

Retrieves a value, and logs the access.

public mixed offsetGet ( $index )
$index mixed
resetAccessed() public method

Resets the access array.

public void resetAccessed ( )