SphinxClient::IsConnectError PHP Méthode

IsConnectError() public méthode

get last error flag (to tell network connection errors from searchd errors or broken responses)
public IsConnectError ( )
    function IsConnectError()
    {
        return $this->_connerror;
    }

Usage Example

 /**
  * Open Sphinx persistent connection.
  *
  * @throws ESphinxException if client is already connected.
  * @throws ESphinxException if client has connection error.
  * @link http://sphinxsearch.com/docs/current.html#api-func-open
  */
 public function openConnection()
 {
     if ($this->isConnected) {
         throw new ESphinxException("Sphinx client is already opened");
     }
     $this->sphinxClient->Open();
     if ($this->sphinxClient->IsConnectError()) {
         throw new ESphinxException("Sphinx exception: " . $this->sphinxClient->GetLastError());
     }
     $this->isConnected = true;
 }
All Usage Examples Of SphinxClient::IsConnectError