isConnected() public method

Checks whether the connection is initialized and connected.
public isConnected ( ) : boolean
return boolean
 /**
  * Return whether this datasource is connected or not to the persistent storage server
  *
  * @return boolean
  */
 public function isConnected()
 {
     return $this->connection->isConnected();
 }