Mongo
PHP Manual

The MongoCollection class

소개

Representations a database collection.

Collection names cannot have a "$" in them, but other than that they can use any character in the ASCII set. Some valid collection names are "", "...", "my collection", and "*&#@".

클래스 개요

MongoCollection
MongoCollection {
/* Methods */
public boolean batchInsert ( array $a )
public __construct ( MongoDB $db , string $name )
public int count ([ array $query= array() [, array $fields= array() ]] )
public array createDBRef ( array $a )
public array deleteIndex ( string|array $keys )
public array deleteIndexes ( void )
public array drop ( void )
public boolean ensureIndex ( string|array $keys )
public MongoCursor find ([ array $query= array() [, array $fields= array() ]] )
public array findOne ([ array $query= array() [, array $fields= array() ]] )
public array getDBRef ( array $ref )
public array getIndexInfo ( void )
public string getName ( void )
public array group ( array $keys , array $initial , string $reduce [, array $condition= array() ] )
public boolean insert ( array $a )
public boolean remove ( array $criteria [, boolean $justOne= FALSE ] )
public boolean save ( array $a )
public string __toString ( void )
public boolean update ( array $criteria , array $newobj [, boolean $upsert= FALSE ] )
public array validate ([ bool $scan_data= FALSE ] )
}

Table of Contents


Mongo
PHP Manual