public function __get($name)Inherited
$name |
wild |
public function __set($name, $value)Inherited
$name | ||
$value |
wild |
public function current()Inherited
wild |
public function key()Inherited
wild |
public function next()Inherited
wild |
public function rewind()Inherited
wild |
public function valid()Inherited
wild |
private function throwOnAttemptedIteration()Inherited
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
string | Value of the constant. |
public function __construct($data)
Construct a new array object.
array | $initial_value |
this | //Implicit.// |
public function toArray()Inherited
wild |
public function count()Inherited
wild |
public function offsetExists($key)
$key |
wild |
public function offsetGet($key)
$key |
wild |
public function offsetSet($key, $value)
$key | ||
$value |
wild |
public function offsetUnset($key)
$key |
wild |
public function getKeys()
wild |
private function transformKey($key)
Transform an array key.
This method transforms an array key to be case-invariant. We could just call [[http://php.net/manual/en/function.strtolower.php | strtolower]] directly, but this method allows us to contain the key transformation logic within a single method, should it ever change.
Theoretically, we should be able to use any of the following functions for the purpose of key transformations:
- [[http://php.net/manual/en/function.strtolower.php | strtolower]]
- [[http://php.net/manual/en/function.strtoupper.php | strtoupper]]
- Some creative use of other string transformation functions.
string | $key | The input key. |
string | The transformed key. |