DboSource::isConnected PHP Method

isConnected() public method

Checks if the source is connected to the database.
public isConnected ( ) : boolean
return boolean True if the database is connected, else false
    public function isConnected()
    {
        return $this->connected;
    }

Usage Example

示例#1
0
 /**
  * Test isConnected
  *
  * @return void
  */
 public function testIsConnected()
 {
     $this->Dbo->disconnect();
     $this->assertFalse($this->Dbo->isConnected(), 'Not connected now.');
     $this->Dbo->connect();
     $this->assertTrue($this->Dbo->isConnected(), 'Should be connected.');
 }
All Usage Examples Of DboSource::isConnected
DboSource