메소드 |
설명 |
|
__construct ( array $documents, integer $total ) |
Constructor |
|
count ( ) : integer |
Returns the number of documents in this result |
|
first ( ) : mixed |
Gets the first document from the result. |
|
getIterator ( ) |
|
|
hash ( string $keyField, string $valueField ) : array |
Returns an assoiative array (a hash), where for each document the
value of one property is the key, and another property is the value. |
|
last ( ) : mixed |
Gets the last document from the results. |
|
offsetExists ( $offset ) |
|
|
offsetGet ( $offset ) |
|
|
offsetSet ( $offset, $value ) |
|
|
offsetUnset ( $offset ) |
|
|
pick ( string $field ) : array |
Returns an array where each value is a single property from each
document. If the property doesnt exist on the document then it won't
be in the returned array. |
|
total ( ) : integer |
Returns the total number of documents (if using limit in a query). |
|
value ( $key ) : mixed |
Get the value specified by $key of the first object in the result. |
|