Ejemplo n.º 1
0
 /**
  * Ping the SphinxQL server
  * @return  boolean  True if connected, false otherwise
  */
 public function ping()
 {
     $result = $this->_driver->ping();
     return $result;
 }
Ejemplo n.º 2
0
 public function ping()
 {
     if (!parent::ping()) {
         $this->connect();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 4
0
 /**
  * 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();
 }