コード例 #1
0
ファイル: Connection.class.php プロジェクト: theratg/miaox
 /**
  * Ping the SphinxQL server
  * @return  boolean  True if connected, false otherwise
  */
 public function ping()
 {
     $result = $this->_driver->ping();
     return $result;
 }
コード例 #2
0
ファイル: mysqli.php プロジェクト: cbsistem/nexos
 public function ping()
 {
     if (!parent::ping()) {
         $this->connect();
     }
 }
コード例 #3
0
 /**
  * I've overridden the ping method so that it reconnects using our
  * connection details and stores the instance in the right property.
  */
 public function ping()
 {
     if (!parent::ping()) {
         self::$s_pInstance = new self();
     }
 }
コード例 #4
0
ファイル: Database.php プロジェクト: kleitz/bzion
 /**
  * Tests whether or not the connection to the database is still active
  * @return bool True if the connection is active
  */
 public function isConnected()
 {
     return $this->dbc->ping();
 }