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