HumHub Documentation (unofficial)

HTMLPurifier_StringHash extends ArrayObject
in package

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

Tags
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.

Table of Contents

Properties

$accessed  : mixed

Methods

getAccessed()  : array<string|int, mixed>
Returns a lookup array of all array indexes that have been accessed.
offsetGet()  : mixed
Retrieves a value, and logs the access.
resetAccessed()  : mixed
Resets the access array.

Properties

$accessed

protected mixed $accessed = array()
Tags
type

array

Methods

getAccessed()

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

public getAccessed() : array<string|int, mixed>
Return values
array<string|int, mixed>

in form array($index => true).

offsetGet()

Retrieves a value, and logs the access.

public offsetGet(mixed $index) : mixed
Parameters
$index : mixed
Attributes
#[ReturnTypeWillChange]

resetAccessed()

Resets the access array.

public resetAccessed() : mixed

        
On this page

Search results