PHP Class Phalcon\Db\Adapter\MongoDB\Model\IndexInput

This class is used to validate user input for index creation.
See also: MongoDB\Collection::createIndexes()
See also: https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst
See also: http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/
Inheritance: implements MongoDB\BSON\Serializable
Datei anzeigen Open project: phalcon/incubator

Public Methods

Method Description
__construct ( array $index ) Constructor.
__toString ( ) Return the index name.
bsonSerialize ( ) : array Serialize the index information to BSON for index creation.

Method Details

__construct() public method

Constructor.
public __construct ( array $index )
$index array Index specification

__toString() public method

Return the index name.
public __toString ( )

bsonSerialize() public method

Serialize the index information to BSON for index creation.
See also: MongoDB\Collection::createIndexes()
See also: http://php.net/mongodb-bson-serializable.bsonserialize
public bsonSerialize ( ) : array
return array