Zend Framework
1.12
|
Public Member Functions | |
__construct ($fields, $id=null) | |
Construct an instance of Zend_Cloud_DocumentService_Document. | |
setId ($id) | |
Set document identifier. | |
getId () | |
Get ID name. | |
getFields () | |
Get fields as array. | |
getField ($name) | |
Get field by name. | |
setField ($name, $value) | |
Set field by name. | |
__get ($name) | |
Overloading: get value. | |
__set ($name, $value) | |
Overloading: set field. | |
offsetExists ($name) | |
ArrayAccess: does field exist? | |
offsetGet ($name) | |
ArrayAccess: get field by name. | |
offsetSet ($name, $value) | |
ArrayAccess: set field to value. | |
offsetUnset ($name) | |
ArrayAccess: remove field from document. | |
__call ($name, $args) | |
Overloading: retrieve and set fields by name. | |
count () | |
Countable: return count of fields in document. | |
getIterator () | |
IteratorAggregate: return iterator for iterating over fields. | |
Public Attributes | |
const | KEY_FIELD = '_id' |
key in document denoting identifier | |
Protected Attributes | |
$_id | |
$_fields | |
__construct | ( | $fields, | |
$id = null |
|||
) |
Construct an instance of Zend_Cloud_DocumentService_Document.
If no identifier is provided, but a field matching KEY_FIELD is present, then that field's value will be used as the document identifier.
array | $fields | |
mixed | $id | Document identifier |
__call | ( | $name, | |
$args | |||
) |
Overloading: retrieve and set fields by name.
string | $name | |
mixed | $args |
__get | ( | $name | ) |
Overloading: get value.
string | $name |
__set | ( | $name, | |
$value | |||
) |
Overloading: set field.
string | $name | |
mixed | $value |
count | ( | ) |
Countable: return count of fields in document.
getField | ( | $name | ) |
Get field by name.
string | $name |
getFields | ( | ) |
Get fields as array.
getId | ( | ) |
Get ID name.
getIterator | ( | ) |
IteratorAggregate: return iterator for iterating over fields.
offsetExists | ( | $name | ) |
ArrayAccess: does field exist?
string | $name |
offsetGet | ( | $name | ) |
ArrayAccess: get field by name.
string | $name |
offsetSet | ( | $name, | |
$value | |||
) |
ArrayAccess: set field to value.
string | $name | |
mixed | $value |
offsetUnset | ( | $name | ) |
ArrayAccess: remove field from document.
string | $name |
setField | ( | $name, | |
$value | |||
) |
setId | ( | $id | ) |
|
protected |
|
protected |
const KEY_FIELD = '_id' |
key in document denoting identifier