Method |
Description |
|
__construct ( string $name, object $database ) |
Constructor |
|
count ( mixed $criteria = null ) : integer |
Count documents in collections |
|
drop ( ) |
Drop collection |
|
find ( mixed $criteria = null, $projection = null ) : object |
Find documents |
|
findOne ( mixed $criteria = null, $projection = null ) : array |
Find one document |
|
insert ( array &$document ) : mixed |
Insert document |
|
remove ( mixed $criteria ) : mixed |
Remove documents |
|
renameCollection ( string $newname ) : boolean |
Rename Collection |
|
save ( array &$document ) : mixed |
Save document |
|
update ( mixed $criteria, array $data ) : integer |
Update documents |
|