Property | Type | Description | |
---|---|---|---|
$content | array | The resource content |
Method | Description | |
---|---|---|
arrayKeyExists ( mixed $key ) : boolean | Port of array_key_exists to \ArrayAccess | |
get ( mixed $key ) : array | boolean | null | Object oriented get access for the array | |
getContent ( ) : array | Returns the content of the resource | |
offsetExists ( mixed $key ) : boolean | Checks whether the key exists | |
offsetGet ( mixed $key ) : array | boolean | null | Normal $example[$key] access for the array | |
offsetSet ( mixed $key, mixed $value ) | Normal $example[$key] = 'hello' access for the array | |
offsetUnset ( mixed $key ) | Unsets the key | |
set ( string $key, string $value ) | Object oriented set access for the array | |
setContent ( array $content ) | Sets the resource contents |
Method | Description | |
---|---|---|
internalUnset ( array &$array, mixed $key ) | Internal unset for the key |
Method | Description | |
---|---|---|
internalGet ( array $array, mixed $key, boolean $exists = false ) : array | boolean | null | The internal get function for getting values by their key | |
internalSet ( array &$array, mixed $key, mixed $value ) : array | Object oriented set access for the array |
public arrayKeyExists ( mixed $key ) : boolean | ||
$key | mixed | The key to check if exists |
return | boolean | Does the key exist |
public getContent ( ) : array | ||
return | array | The content |
protected internalUnset ( array &$array, mixed $key ) | ||
$array | array | The array to use -- will always be based on $this->content but can be used recursively |
$key | mixed | The key to unset |
public offsetExists ( mixed $key ) : boolean | ||
$key | mixed | The key to check |
return | boolean | Does the key exist |
public offsetUnset ( mixed $key ) | ||
$key | mixed | The key to unset |
public setContent ( array $content ) | ||
$content | array |