Property | Type | Description | |
---|---|---|---|
$collection | object | ||
$criteria | string | null | ||
$data | array | ||
$limit | null | integer | ||
$position | boolean | integer | ||
$projection | array | null | ||
$skip | null | integer | ||
$sort | null | array |
Method | Description | |
---|---|---|
__construct ( object $collection, mixed $criteria, $projection = null ) | Constructor | |
count ( ) : integer | Documents count | |
current ( ) | ||
each ( mixed $callable ) : object | Loop through result set | |
key ( ) | ||
limit ( mixed $limit ) : object | Set limit | |
next ( ) | ||
rewind ( ) | Iterator implementation | |
skip ( mixed $skip ) : object | Set skip | |
sort ( mixed $sorts ) : object | Set sort | |
toArray ( ) : array | Get documents matching criteria | |
valid ( ) |
Method | Description | |
---|---|---|
getData ( ) : array | Get documents matching criteria |
public __construct ( object $collection, mixed $criteria, $projection = null ) | ||
$collection | object | |
$criteria | mixed |