ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLuceneAdvancedQueryParser Class Reference
+ Inheritance diagram for ilLuceneAdvancedQueryParser:
+ Collaboration diagram for ilLuceneAdvancedQueryParser:

Public Member Functions

 __construct ($a_query_data)
 Constructor.
 getFieldDefinition ()
 Get field definition settings.
 getQueryData ()
 parse ()
 parse query string
- Public Member Functions inherited from ilLuceneQueryParser
 getQuery ()
 get query

Protected Attributes

 $field_definition = null
 $query_data = array()
- Protected Attributes inherited from ilLuceneQueryParser
 $parsed_query

Additional Inherited Members

- Static Public Member Functions inherited from ilLuceneQueryParser
static validateQuery ($a_query)
- Protected Member Functions inherited from ilLuceneQueryParser
 replaceOwnerCallback ($matches)
 Replace owner callback (preg_replace_callback)
- Static Protected Member Functions inherited from ilLuceneQueryParser
static checkAllowedCharacters ($query)
 Check allowed characters.
static checkAsterisk ($query)
 Check asterisk.
static checkAmpersands ($query)
 Check ampersands.
static checkCaret ($query)
 Check carets.
static checkSquiggle ($query)
 Check squiggles.
static checkExclamationMark ($query)
 Check exclamation marks (replacement for NOT)
static checkQuestionMark ($query)
 Check question mark (wild card single character)
static checkParenthesis ($a_query)
 Check parenthesis.
static checkPlusMinus ($a_query)
 Check plus minus.
static checkANDORNOT ($a_query)
 Check AND OR NOT.
static checkQuotes ($a_query)
 Check quotes.
static checkColon ($a_query)
 Check colon.

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 36 of file class.ilLuceneAdvancedQueryParser.php.

Constructor & Destructor Documentation

ilLuceneAdvancedQueryParser::__construct (   $a_query_data)

Constructor.

Reimplemented from ilLuceneQueryParser.

Definition at line 44 of file class.ilLuceneAdvancedQueryParser.php.

References ilLuceneAdvancedSearchFields\getInstance().

{
$this->field_definition = ilLuceneAdvancedSearchFields::getInstance();
$this->query_data = $a_query_data;
}

+ Here is the call graph for this function:

Member Function Documentation

ilLuceneAdvancedQueryParser::getFieldDefinition ( )

Get field definition settings.

Definition at line 55 of file class.ilLuceneAdvancedQueryParser.php.

References $field_definition.

Referenced by parse().

+ Here is the caller graph for this function:

ilLuceneAdvancedQueryParser::getQueryData ( )

Definition at line 60 of file class.ilLuceneAdvancedQueryParser.php.

Referenced by parse().

{
return $this->query_data ? $this->query_data : array();
}

+ Here is the caller graph for this function:

ilLuceneAdvancedQueryParser::parse ( )

parse query string

Returns

Reimplemented from ilLuceneQueryParser.

Definition at line 65 of file class.ilLuceneAdvancedQueryParser.php.

References $query, getFieldDefinition(), and getQueryData().

Referenced by ilLuceneAdvancedSearchGUI\performSearch(), and ilLuceneAdvancedSearchGUI\showSavedResults().

{
foreach($this->getQueryData() as $field => $query)
{
if(!trim($query))
{
continue;
}
$parsed = $this->getFieldDefinition()->parseFieldQuery($field,$query);
if(strlen($parsed))
{
$this->parsed_query .= " +(";
$this->parsed_query .= $parsed;
$this->parsed_query .= ") ";
}
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilLuceneAdvancedQueryParser::$field_definition = null
protected

Definition at line 38 of file class.ilLuceneAdvancedQueryParser.php.

Referenced by getFieldDefinition().

ilLuceneAdvancedQueryParser::$query_data = array()
protected

Definition at line 39 of file class.ilLuceneAdvancedQueryParser.php.


The documentation for this class was generated from the following file: