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

This class models the database information returned by the listDatabases command. It provides methods to access common database properties.
См. также: MongoDB\Client::listDatabases()
См. также: http://docs.mongodb.org/manual/reference/command/listDatabases/
Показать файл Открыть проект

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

Метод Описание
__construct ( array $info ) Constructor.
__debugInfo ( ) : array Return the collection info as an array.
getName ( ) : string Return the database name.
getSizeOnDisk ( ) : integer Return the databases size on disk (in bytes).
isEmpty ( ) : boolean Return whether the database is empty.

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

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

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

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

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

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

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

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

Return the databases size on disk (in bytes).
public getSizeOnDisk ( ) : integer
Результат integer

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

Return whether the database is empty.
public isEmpty ( ) : boolean
Результат boolean