/** * Returns TRUE when connection was established. * * @return bool */ public static function isConnected() { return self::$connection !== NULL && self::$connection->isConnected(); }
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(); }