메소드 |
설명 |
|
__construct ( integer | string $id = '', array | string $data = [], Type | string $type = '', Index | string $index = '' ) |
Creates a new document. |
|
__get ( string $key ) : mixed |
|
|
__isset ( string $key ) : boolean |
|
|
__set ( string $key, mixed $value ) |
|
|
__unset ( string $key ) |
|
|
addFile ( string $key, string $filepath, string $mimeType = '' ) |
Adds a file to the index. |
|
addFileContent ( string $key, string $content ) |
Add file content. |
|
addGeoPoint ( string $key, float $latitude, float $longitude ) |
Adds a geopoint to the document. |
|
create ( array | Document $data ) : self |
|
|
get ( string $key ) : mixed |
|
|
getData ( ) : array | string |
Returns the document data. |
|
getDocAsUpsert ( ) : boolean |
|
|
has ( string $key ) : boolean |
|
|
isAutoPopulate ( ) : boolean |
|
|
remove ( string $key ) |
|
|
set ( string $key, mixed $value ) |
|
|
setAutoPopulate ( boolean $autoPopulate = true ) |
|
|
setData ( array | string $data ) |
Overwrites the current document data with the given data. |
|
setDocAsUpsert ( boolean $value ) |
|
|
toArray ( ) : array |
Returns the document as an array. |
|