ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
StringHash.php
Go to the documentation of this file.
1
<?
php
2
11
class
HTMLPurifier_StringHash
extends
ArrayObject
12
{
16
protected
$accessed
= array();
17
23
public
function
offsetGet
(
$index
)
24
{
25
$this->accessed[
$index
] =
true
;
26
return
parent::offsetGet(
$index
);
27
}
28
33
public
function
getAccessed
()
34
{
35
return
$this->accessed
;
36
}
37
41
public
function
resetAccessed
()
42
{
43
$this->accessed = array();
44
}
45
}
46
47
// vim: et sw=4 sts=4
ArrayObject
$index
$index
Definition:
metadata.php:60
HTMLPurifier_StringHash\$accessed
$accessed
array
Definition:
StringHash.php:16
HTMLPurifier_StringHash\resetAccessed
resetAccessed()
Resets the access array.
Definition:
StringHash.php:41
HTMLPurifier_StringHash\offsetGet
offsetGet($index)
Retrieves a value, and logs the access.
Definition:
StringHash.php:23
HTMLPurifier_StringHash
This is in almost every respect equivalent to an array except that it keeps track of which keys were ...
Definition:
StringHash.php:11
php
HTMLPurifier_StringHash\getAccessed
getAccessed()
Returns a lookup array of all array indexes that have been accessed.
Definition:
StringHash.php:33
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
StringHash.php
Generated on Thu Jan 16 2025 19:01:39 for ILIAS by
1.8.13 (using
Doxyfile
)