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/
파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
__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