Class ArrayObject

Summary

Fully Qualified Name: Zend\Stdlib\ArrayObject
Implements: IteratorAggregate, ArrayAccess, Serializable, Countable

Description

Custom framework ArrayObject implementation

Extends version-specific "abstract" implementation.

Methods

Name Description Defined By
__construct() Constructor ArrayObject
__get() Returns the value at the specified key by reference ArrayObject
__isset() Returns whether the requested key exists ArrayObject
__set() Sets the value at the specified key to value ArrayObject
__unset() Unsets the value at the specified key ArrayObject
append() Appends the value ArrayObject
asort() Sort the entries by value ArrayObject
count() Get the number of public properties in the ArrayObject ArrayObject
exchangeArray() Exchange the array for another one. ArrayObject
getArrayCopy() Creates a copy of the ArrayObject. ArrayObject
getFlags() Gets the behavior flags. ArrayObject
getIterator() Create a new iterator from an ArrayObject instance ArrayObject
getIteratorClass() Gets the iterator classname for the ArrayObject. ArrayObject
ksort() Sort the entries by key ArrayObject
natcasesort() Sort an array using a case insensitive "natural order" algorithm ArrayObject
natsort() Sort entries using a "natural order" algorithm ArrayObject
offsetExists() Returns whether the requested key exists ArrayObject
offsetGet() Returns the value at the specified key ArrayObject
offsetSet() Sets the value at the specified key to value ArrayObject
offsetUnset() Unsets the value at the specified key ArrayObject
serialize() Serialize an ArrayObject ArrayObject
setFlags() Sets the behavior flags ArrayObject
setIteratorClass() Sets the iterator classname for the ArrayObject ArrayObject
uasort() Sort the entries with a user-defined comparison function and maintain key association ArrayObject
uksort() Sort the entries by keys using a user-defined comparison function ArrayObject
unserialize() Unserialize an ArrayObject ArrayObject

Method Details

__construct()

Constructor

Parameter Name Type Description
$input array
$flags int
$iteratorClass string

Returns:

__get()

Returns the value at the specified key by reference

Parameter Name Type Description
$key mixed

Returns: mixed

__isset()

Returns whether the requested key exists

Parameter Name Type Description
$key mixed

Returns: bool

__set()

Sets the value at the specified key to value

Parameter Name Type Description
$key mixed
$value mixed

Returns: void

__unset()

Unsets the value at the specified key

Parameter Name Type Description
$key mixed

Returns: void

append()

Appends the value

Parameter Name Type Description
$value mixed

Returns: void

asort()

Sort the entries by value

Returns: void

count()

Get the number of public properties in the ArrayObject

Returns: int

exchangeArray()

Exchange the array for another one.

Parameter Name Type Description
$data array|\ArrayObject

Returns: array

getArrayCopy()

Creates a copy of the ArrayObject.

Returns: array

getFlags()

Gets the behavior flags.

Returns: int

getIterator()

Create a new iterator from an ArrayObject instance

Returns: \Iterator

getIteratorClass()

Gets the iterator classname for the ArrayObject.

Returns: string

ksort()

Sort the entries by key

Returns: void

natcasesort()

Sort an array using a case insensitive "natural order" algorithm

Returns: void

natsort()

Sort entries using a "natural order" algorithm

Returns: void

offsetExists()

Returns whether the requested key exists

Parameter Name Type Description
$key mixed

Returns: bool

offsetGet()

Returns the value at the specified key

Parameter Name Type Description
$key mixed

Returns: mixed

offsetSet()

Sets the value at the specified key to value

Parameter Name Type Description
$key mixed
$value mixed

Returns: void

offsetUnset()

Unsets the value at the specified key

Parameter Name Type Description
$key mixed

Returns: void

serialize()

Serialize an ArrayObject

Returns: string

setFlags()

Sets the behavior flags

Parameter Name Type Description
$flags int

Returns: void

setIteratorClass()

Sets the iterator classname for the ArrayObject

Parameter Name Type Description
$class string

Returns: void

uasort()

Sort the entries with a user-defined comparison function and maintain key association

Parameter Name Type Description
$function callable

Returns: void

uksort()

Sort the entries by keys using a user-defined comparison function

Parameter Name Type Description
$function callable

Returns: void

unserialize()

Unserialize an ArrayObject

Parameter Name Type Description
$data string

Returns: void

Top