PHP Class 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.
See also: MongoDB\Client::listDatabases()
See also: http://docs.mongodb.org/manual/reference/command/listDatabases/
Afficher le fichier Open project: phalcon/incubator

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

__debugInfo() public méthode

Return the collection info as an array.
See also: http://php.net/oop5.magic#language.oop5.magic.debuginfo
public __debugInfo ( ) : array
Résultat array

getName() public méthode

Return the database name.
public getName ( ) : string
Résultat string

getSizeOnDisk() public méthode

Return the databases size on disk (in bytes).
public getSizeOnDisk ( ) : integer
Résultat integer

isEmpty() public méthode

Return whether the database is empty.
public isEmpty ( ) : boolean
Résultat boolean