ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFulltextAdvancedSearch Class Reference
+ Inheritance diagram for ilFulltextAdvancedSearch:
+ Collaboration diagram for ilFulltextAdvancedSearch:

Public Member Functions

 ilFulltextAdvancedSearch (&$qp_obj)
 Constructor public.
 __createTaxonWhereCondition ()
 __createKeywordWhereCondition ()
 __createLifecycleWhereCondition ()
 __createEntityWhereCondition ()
 __createCoverageAndCondition ()
 __createTitleDescriptionWhereCondition ()
- Public Member Functions inherited from ilAdvancedSearch
 ilAdvancedSearch (&$qp_obj)
 Constructor public.
 setMode ($a_mode)
 Define meta elements to search.
 getMode ()
 setOptions (&$options)
performSearch ()
__searchTitleDescription ()
__searchGeneral ()
__searchLanguage ()
__searchContribute ()
__searchEntity ()
__searchRequirement ()
__searchEducational ()
__searchTypicalAgeRange ()
__searchRights ()
__searchClassification ()
__searchTaxon ()
__searchKeyword ($a_in_classification=false)
__searchLifecycle ()
__searchFormat ()
 __createRightsWhere ()
 __createClassificationWhere ()
 __createEducationalWhere ()
 __createRequirementWhere ()
 __getDifference ($a_val1, $a_val2, $options)
 __getInStatement ($a_fields)
- Public Member Functions inherited from ilAbstractSearch
 ilAbstractSearch (&$qp_obj)
 Constructor public.
 setFields ($a_fields)
 Set fields to search.
 getFields ()
 Get fields to search.
 setFilter ($a_filter)
 set object type to search in
 appendToFilter ($a_type)
 Append object type to filter.
 getFilter ()
 get object type to search in
 __createLocateString ()
 build locate string in case of AND search
 __prepareFound (&$row)

Additional Inherited Members

- Data Fields inherited from ilAdvancedSearch
 $mode = ''
 $query_parser = null
 $db = null

Detailed Description

Definition at line 37 of file class.ilFulltextAdvancedSearch.php.

Member Function Documentation

ilFulltextAdvancedSearch::__createCoverageAndCondition ( )

Definition at line 150 of file class.ilFulltextAdvancedSearch.php.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " AND MATCH(coverage) AGAINST('";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= '* ';
}
$query .= "' IN BOOLEAN MODE) ";
}
else
{
$query .= " AND MATCH (coverage) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextAdvancedSearch::__createEntityWhereCondition ( )

Definition at line 125 of file class.ilFulltextAdvancedSearch.php.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE MATCH(entity) AGAINST('";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= '* ';
}
$query .= "' IN BOOLEAN MODE) ";
}
else
{
$query .= " WHERE MATCH (entity) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextAdvancedSearch::__createKeywordWhereCondition ( )

Definition at line 73 of file class.ilFulltextAdvancedSearch.php.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE MATCH(keyword) AGAINST('";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= '* ';
}
$query .= "' IN BOOLEAN MODE) ";
}
else
{
$query .= " WHERE MATCH (keyword) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextAdvancedSearch::__createLifecycleWhereCondition ( )

Definition at line 99 of file class.ilFulltextAdvancedSearch.php.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE MATCH(meta_version) AGAINST('";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= '* ';
}
$query .= "' IN BOOLEAN MODE) ";
}
else
{
$query .= " WHERE MATCH (meta_version) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextAdvancedSearch::__createTaxonWhereCondition ( )

Definition at line 48 of file class.ilFulltextAdvancedSearch.php.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE MATCH(taxon) AGAINST('";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= '* ';
}
$query .= "' IN BOOLEAN MODE) ";
}
else
{
$query .= " WHERE MATCH (taxon) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextAdvancedSearch::__createTitleDescriptionWhereCondition ( )

Definition at line 176 of file class.ilFulltextAdvancedSearch.php.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE MATCH(title,description) AGAINST('";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= '* ';
}
$query .= "' IN BOOLEAN MODE) ";
}
else
{
$query .= " WHERE MATCH (title,description) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextAdvancedSearch::ilFulltextAdvancedSearch ( $qp_obj)

Constructor public.

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

References ilAdvancedSearch\ilAdvancedSearch().

{
}

+ Here is the call graph for this function:


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