Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
dojo.data support for Zend Framework
string|int $_identifier = ''Identifier field of item
Detailsarray $_items = 'array'Collected items
Detailsstring $_label = ''Label field of item
Detailsarray $_metadata = 'array'Data container metadata
Details__construct(
string|null $identifier
=
null, array|Traversable|null $items
=
null, string|null $label
=
null
)
:
voidConstructor
Details__toString(
)
:
stringSerialize to string (proxy to {@link toJson()})
Details_normalizeItem(
array|object $item, string|int|null $id
)
:
arrayNormalize an item to attach to the collection
DetailsaddItem(
array|object $item, string|null $id
=
null
)
:
Zend_Dojo_DataAdd an individual item, optionally by identifier
DetailsaddItems(
array|Traversable $items
)
:
Zend_Dojo_DataAdd multiple items at once
DetailsclearItems(
)
:
Zend_Dojo_DataRemove all items at once
DetailsclearMetadata(
null|string $key
=
null
)
:
Zend_Dojo_DataClear individual or all metadata item(s)
Detailscount(
)
:
intCountable: how many items are present
Detailscurrent(
)
:
arrayIterator: get current value
DetailsfromArray(
array $data
)
:
Zend_Dojo_DataLoad object from array
DetailsfromJson(
string $json
)
:
Zend_Dojo_DataLoad object from JSON
DetailsgetIdentifier(
)
:
string|int|nullRetrieve current item identifier
DetailsgetItem(
string $id
)
:
arrayRetrieve an item by identifier
Item retrieved will be flattened to an array.
DetailsgetItems(
)
:
arrayGet all items as an array
Serializes items to arrays.
DetailsgetLabel(
)
:
string|nullRetrieve item association label
DetailsgetMetadata(
null|string $key
=
null
)
:
mixedGet metadata item or all metadata
DetailshasItem(
string|int $id
)
:
boolDoes an item with the given identifier exist?
Detailskey(
)
:
string|intIterator: get current key
Detailsnext(
)
:
voidIterator: get next item
DetailsoffsetExists(
string|int $offset
)
:
boolArrayAccess: does offset exist?
DetailsoffsetGet(
string|int $offset
)
:
arrayArrayAccess: retrieve by offset
DetailsoffsetSet(
string $offset, array|object|null $value
)
:
voidArrayAccess: set value by offset
DetailsoffsetUnset(
string $offset
)
:
voidArrayAccess: unset value by offset
DetailsremoveItem(
string $id
)
:
Zend_Dojo_DataRemove item by identifier
Detailsrewind(
)
:
voidIterator: rewind to first value in collection
DetailssetIdentifier(
string|int|null $identifier
)
:
Zend_Dojo_DataSet identifier for item lookups
DetailssetItem(
array|object $item, $id
=
null
)
:
Zend_Dojo_DataSet an individual item, optionally by identifier (overwrites)
DetailssetItems(
array|Traversable $items
)
:
Zend_Dojo_DataSet the items to collect
DetailssetLabel(
string|null $label
)
:
Zend_Dojo_DataSet label to use for displaying item associations
DetailssetMetadata(
string|array $spec, mixed $value
=
null
)
:
Zend_Dojo_DataSet metadata by key or en masse
DetailstoArray(
)
:
arraySeralize entire data structure, including identifier and label, to array
DetailstoJson(
)
:
stringSerialize to JSON (dojo.data format)
Detailsvalid(
)
:
boolIterator: is item valid?
Details