コード例 #1
0
ファイル: QueryParser.php プロジェクト: kobmaki/icingaweb2
 /**
  * End subquery
  */
 public function subqueryEnd()
 {
     if (count($this->_contextStack) == 0) {
         throw new Zend_Search_Lucene_Search_QueryParserException('Syntax Error: mismatched parentheses, every opening must have closing. Char position ' . $this->_currentToken->position . '.');
     }
     $query = $this->_context->getQuery();
     $this->_context = array_pop($this->_contextStack);
     $this->_context->addEntry(new Zend_Search_Lucene_Search_QueryEntry_Subquery($query));
 }
コード例 #2
0
ファイル: QueryParser.php プロジェクト: kotow/work
 /**
  * End subquery
  */
 public function subqueryEnd()
 {
     if (count($this->_contextStack) == 0) {
         require_once sfConfig::get('sf_lib_dir') . '/modules/search/lib/Lucene/Search/QueryParserException.php';
         throw new Zend_Search_Lucene_Search_QueryParserException('Syntax Error: mismatched parentheses, every opening must have closing. Char position ' . $this->_currentToken->position . '.');
     }
     $query = $this->_context->getQuery();
     $this->_context = array_pop($this->_contextStack);
     require_once sfConfig::get('sf_lib_dir') . '/modules/search/lib/Lucene/Search/QueryEntry/Subquery.php';
     $this->_context->addEntry(new Zend_Search_Lucene_Search_QueryEntry_Subquery($query));
 }