host ) { return false; } if ( null === $this->port ) { return false; } $this->client = new SphinxClient(); $this->client->SetServer( $this->host, $this->port ); $this->client->SetConnectTimeout( $timeout ); return true; } /** * * @param unknown $value */ protected function setHost($value) { $this->host = $value; } /** * * @param unknown $value */ protected function setPort($value) { $this->port = $value; } /** * * @param unknown $value */ protected function setOffset($value) { $this->offset = $value; } /** * * @param unknown $value */ protected function setLimit($value) { $this->limit = $value; } /** * * @param unknown $value */ protected function setMaxMatches($value) { $this->max_matches = $value; } /** * */ protected function constructQuery($p) { $this->query = $p; } }