Close() public method

public Close ( )
 /**
  * Close Sphinx persistent connection.
  *
  * @throws ESphinxException if client is not connected.
  * @link http://sphinxsearch.com/docs/current.html#api-func-close
  */
 public function closeConnection()
 {
     if (!$this->isConnected) {
         throw new ESphinxException("Sphinx client is already closed");
     }
     $this->sphinxClient->Close();
     $this->isConnected = false;
 }
示例#2
0
 public function close()
 {
     $this->_sphinx->Close();
 }