yii\mongodb\Connection::getIsActive PHP 메소드

getIsActive() 공개 메소드

Returns a value indicating whether the Mongo connection is established.
public getIsActive ( ) : boolean
리턴 boolean whether the Mongo connection is established
    public function getIsActive()
    {
        return is_object($this->manager) && $this->manager->getServers() !== [];
    }