Method |
Description |
|
__get ( string $name ) : Collection |
Magic getter-method. Proxy for getCollection |
|
addServer ( string $url, integer $weight = null, mixed $mock = null ) : void |
Adds mongo server |
|
aggregate ( array $p, callable $cb ) : void |
Aggregate function |
|
auth ( array $p, callable $cb ) : void |
Sends authenciation packet |
|
distinct ( array $p, callable $cb ) : void |
Returns distinct values of the property |
|
ensureIndex ( string $ns, array $keys, array $options = [], callable $cb = null ) : void |
Ensure index |
|
evaluate ( string $code, callable $cb ) : void |
Evaluates a code on the server side |
|
find ( array $p, callable $cb ) : void |
Finds objects in collection |
|
findAll ( array $p, callable $cb ) : void |
Finds objects in collection and fires callback when got all objects |
|
findAndModify ( array $p, callable $cb ) : void |
Find and modify |
|
findCount ( array $p, callable $cb ) : void |
Counts objects in collection |
|
findOne ( array $p, callable $cb ) : void |
Finds one object in collection |
|
getAuthKey ( string $username, string $password, string $nonce ) : string |
Generates auth. key |
|
getCollection ( string $col ) : Collection |
Returns an object of collection |
|
getIndexName ( array $keys ) : string |
|
|
getMore ( string $col, string $id, integer $number, Connection $conn ) : void |
Asks for more objects |
|
getNonce ( array $p, callable $cb ) : void |
Sends request of nonce |
|
group ( array $p, callable $cb ) : void |
Groupping function |
|
insert ( string $col, array $doc = [], callable $cb = null, array $params = [] ) : MongoId |
Inserts an object |
|
insertMulti ( string $col, array $docs = [], callable $cb = null, array $params = [] ) : array |
Inserts several documents |
|
killCursors ( array $cursors, Connection $conn ) : void |
Sends a request to kill certain cursors on the server side |
|
lastError ( string $db, callable $cb, array $params = [], Connection $conn = null ) : void |
Gets last error |
|
range ( array $p, callable $cb ) : void |
Find objects in collection using min/max specifiers |
|
remove ( string $col, array $cond = [], callable $cb = null, array $params = [] ) : void |
Remove objects from collection |
|
request ( integer $opcode, string $data, boolean $reply = false, Connection $conn = null, callable $sentcb = null ) : void |
Gets the key |
|
safeModeEnc ( array &$o ) : void |
|
|
saslScrumSHA1Auth ( $p, $cb ) |
|
|
saslScrumSHA1Conversation ( $dbname, $query, $cb, $conn = null ) |
|
|
saslScrumSHA1ExtractPayload ( $payload ) |
|
|
saslScrumSHA1Step ( $session, $input = null ) |
|
|
selectDB ( string $name ) : boolean |
Sets default database name |
|
update ( string $col, array $cond, array $data, integer $flags, callable $cb = null, array $params = [] ) : void |
Updates one object in collection |
|
updateMulti ( string $col, array $cond, array $data, callable $cb = null, array $params = [] ) : void |
Updates several objects in collection |
|
updateOne ( string $col, array $cond, array $data, callable $cb = null, array $params = [] ) : void |
Updates one object in collection |
|
upsert ( string $col, array $cond, array $data, boolean $multi = false, callable $cb = null, array $params = [] ) : void |
Upserts an object (updates if exists, insert if not exists) |
|
upsertMulti ( string $col, array $cond, array $data, callable $cb = null, array $params = [] ) : void |
Upserts an object (updates if exists, insert if not exists) |
|
upsertOne ( string $col, array $cond, array $data, callable $cb = null, array $params = [] ) : void |
Upserts an object (updates if exists, insert if not exists) |
|