示例#1
0
 /**
  * Returns TRUE when connection was established.
  *
  * @return bool
  */
 public static function isConnected()
 {
     return self::$connection !== NULL && self::$connection->isConnected();
 }
示例#2
0
 private function handleConnection()
 {
     if (!$this->dibiConnection->isConnected()) {
         $this->dibiConnection->connect();
     }
 }
 /**
  * Funkce pro kontrolu, jestli jsme připojeni k databázi
  * @return bool
  */
 public function isConnected()
 {
     return $this->connection->isConnected();
 }