ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
StringHash.php
Go to the documentation of this file.
1 <?php
2 
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
resetAccessed()
Resets the access array.
Definition: StringHash.php:41
Create styles array
The data for the language used.
offsetGet($index)
Retrieves a value, and logs the access.
Definition: StringHash.php:23
This is in almost every respect equivalent to an array except that it keeps track of which keys were ...
Definition: StringHash.php:11
getAccessed()
Returns a lookup array of all array indexes that have been accessed.
Definition: StringHash.php:33