DboSource::isConnected PHP 메소드

isConnected() 공개 메소드

Checks if the source is connected to the database.
public isConnected ( ) : boolean
리턴 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