Class encapsulating documents. Fields are stored in a name/value array. Data are represented as strings.
TODO Can fields be large enough to warrant support for streams?
category | Zend |
---|---|
package | Zend_Cloud |
subpackage | DocumentService |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__call(string $name, mixed $args) : mixed
string
mixed
mixed
__construct(array $fields, mixed $id = null
) : void
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
mixed
Document identifier
__get(string $name) : mixed
string
mixed
__set(string $name, mixed $value) : void
string
mixed
count() : integer
integer
getField(string $name) : mixed
string
mixed
getFields() : array
array
getId() : string
string
getIterator() : \Iterator
\Iterator
offsetExists(string $name) : boolean
string
boolean
offsetGet(string $name) : mixed
string
mixed
offsetSet(string $name, mixed $value) : void
string
mixed
offsetUnset(string $name) : void
string
setField(string $name, mixed $value) : \Zend_Cloud_DocumentService_Document
string
mixed
\Zend_Cloud_DocumentService_Document
setId(mixed $id) : \Zend_Cloud_DocumentService_Document
mixed
\Zend_Cloud_DocumentService_Document
$_fields : array
$_id : mixed
KEY_FIELD = '_id'