Imbo\Storage\GridFS::getStatus PHP Method

getStatus() public method

public getStatus ( )
    public function getStatus()
    {
        try {
            return $this->getMongoClient()->connect();
        } catch (StorageException $e) {
            return false;
        }
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @covers Imbo\Storage\GridFS::getStatus
  */
 public function testReturnsFalseWhenFetchingStatusAndTheHostnameIsNotCorrect()
 {
     $storage = new GridFS(array('server' => 'foobar'));
     $this->assertFalse($storage->getStatus());
 }
All Usage Examples Of Imbo\Storage\GridFS::getStatus