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

This class models the collection information returned by the listCollections command or, for legacy servers, queries on the "system.namespaces" collection. It provides methods to access options for the collection.
См. также: MongoDB\Database::listCollections()
См. также: https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
Показать файл Открыть проект

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

Метод Описание
__construct ( array $info ) Constructor.
__debugInfo ( ) : array Return the collection info as an array.
getCappedMax ( ) : integer | null Return the maximum number of documents to keep in the capped collection.
getCappedSize ( ) : integer | null Return the maximum size (in bytes) of the capped collection.
getName ( ) : string Return the collection name.
getOptions ( ) : array Return the collection options.
isCapped ( ) : boolean Return whether the collection is a capped collection.

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

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

Constructor.
public __construct ( array $info )
$info array Collection info

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

Return the collection info as an array.
См. также: http://php.net/oop5.magic#language.oop5.magic.debuginfo
public __debugInfo ( ) : array
Результат array

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

Return the maximum number of documents to keep in the capped collection.
public getCappedMax ( ) : integer | null
Результат integer | null

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

Return the maximum size (in bytes) of the capped collection.
public getCappedSize ( ) : integer | null
Результат integer | null

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

Return the collection name.
public getName ( ) : string
Результат string

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

Return the collection options.
public getOptions ( ) : array
Результат array

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

Return whether the collection is a capped collection.
public isCapped ( ) : boolean
Результат boolean