HTMLPurifier_StringHash::getAccessed PHP Method

getAccessed() public method

Returns a lookup array of all array indexes that have been accessed.
public getAccessed ( ) : array
return array in form array($index => true).
    public function getAccessed()
    {
        return $this->accessed;
    }

Usage Example

Exemplo n.º 1
0
 function testUsed()
 {
     $hash = new HTMLPurifier_StringHash(array('key' => 'value', 'key2' => 'value2'));
     $this->assertIdentical($hash->getAccessed(), array());
     $t = $hash->offsetGet('key');
     $this->assertIdentical($hash->getAccessed(), array('key' => true));
     $hash->resetAccessed();
     $this->assertIdentical($hash->getAccessed(), array());
 }
All Usage Examples Of HTMLPurifier_StringHash::getAccessed