PHP Класс Phalcon\Db\Adapter\MongoDB\Model\IndexInput

This class is used to validate user input for index creation.
См. также: MongoDB\Collection::createIndexes()
См. также: https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst
См. также: http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/
Наследование: implements MongoDB\BSON\Serializable
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( array $index ) Constructor.
__toString ( ) Return the index name.
bsonSerialize ( ) : array Serialize the index information to BSON for index creation.

Описание методов

__construct() публичный метод

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

__toString() публичный метод

Return the index name.
public __toString ( )

bsonSerialize() публичный метод

Serialize the index information to BSON for index creation.
См. также: MongoDB\Collection::createIndexes()
См. также: http://php.net/mongodb-bson-serializable.bsonserialize
public bsonSerialize ( ) : array
Результат array