Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

(no description)

File Size: 201 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Support_Array:: (18 methods):
  __construct()
  get()
  getOrSet()
  pop()
  update()
  getKeys()
  getValues()
  clear()
  __get()
  __set()
  __isset()
  __unset()
  count()
  getIterator()
  offsetGet()
  offsetSet()
  offsetExists()
  offsetUnset()


Class: Horde_Support_Array  - X-Ref

Copyright 2007-2017 Horde LLC (http://www.horde.org/)

__construct($vars = array()   X-Ref
No description

get($key, $default = null)   X-Ref
No description

getOrSet($offset, $default = null)   X-Ref
Gets the value at $offset. If no value exists at that offset, or the
value $offset is NULL, then $default is set as the value of $offset.

param: string $offset   Offset to retrieve and set if unset
param: string $default  Default value if $offset does not exist
return: mixed Value at $offset or $default

pop($offset, $default = null)   X-Ref
Gets the value at $offset and deletes it from the array. If no value
exists at $offset, or the value at $offset is null, then $default
will be returned.

param: string $offset   Offset to pop
param: string $default  Default value
return: mixed Value at $offset or $default

update($array)   X-Ref
Update the array with the key/value pairs from $array

param: array $array Key/value pairs to set/change in the array.

getKeys()   X-Ref
Get the keys in the array

return: array

getValues()   X-Ref
Get the values in the array

return: array

clear()   X-Ref
Clear out the array


__get($key)   X-Ref
No description

__set($key, $value)   X-Ref
No description

__isset($key)   X-Ref
Checks the existance of $key in this array


__unset($key)   X-Ref
Removes $key from this array


count()   X-Ref
Count the number of elements

return: integer

getIterator()   X-Ref
No description

offsetGet($offset)   X-Ref
Gets the value of $offset in this array


offsetSet($offset, $value)   X-Ref
Sets the value of $offset to $value


offsetExists($offset)   X-Ref
Checks the existence of $offset in this array


offsetUnset($offset)   X-Ref
Removes $offset from this array