PHP Portal » PHP Handbuch » The MongoCollection class

Werbung

The MongoCollection class


Einführung

Representations a database collection.

Collection names can use any character in the ASCII set. Some valid collection names are "", "...", "my collection", and "*&#@".

Klassenbeschreibung

MongoCollection
MongoCollection {
/* Fields */
public MongoDB $db = NULL ;
/* Methods */
public boolean batchInsert ( array $a )
public __construct ( MongoDB $db , string $name )
public int count ([ mixed $query = array() ] )
public array createDBRef ( array $a )
public array deleteIndex ( string|array $keys )
public array deleteIndexes ( void )
public array drop ( void )
public boolean ensureIndex ( array $keys , array $options )
public MongoCursor find ([ array $query = array() [, array $fields = array() ]] )
public array findOne ([ array $query = array() [, array $fields = array() ]] )
public MongoCollection __get ( string $name )
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 mixed insert ( array $a [, boolean $safe = false ] )
public boolean remove ( array $criteria [, boolean $justOne = FALSE ] )
public boolean save ( array $a )
public string __toString ( void )
public boolean update ( array $criteria , array $newobj [, array $options = NULL ] )
public array validate ([ bool $scan_data = FALSE ] )
}

Inhaltsverzeichnis