ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilFulltextAdvancedSearch Class Reference
+ Inheritance diagram for ilFulltextAdvancedSearch:
+ Collaboration diagram for ilFulltextAdvancedSearch:

Public Member Functions

 __createTaxonWhereCondition ()
 
 __createKeywordWhereCondition ()
 
 __createLifecycleWhereCondition ()
 
 __createEntityWhereCondition ()
 
 __createCoverageAndCondition ()
 
 __createTitleDescriptionWhereCondition ()
 
- Public Member Functions inherited from ilAdvancedSearch
 setMode ($a_mode)
 Define meta elements to search. More...
 
 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
 __construct ($qp_obj)
 Constructor public. More...
 
 setFields ($a_fields)
 Set fields to search. More...
 
 getFields ()
 Get fields to search. More...
 
 setFilter ($a_filter)
 set object type to search in More...
 
 setIdFilter ($a_id_filter)
 Set id filter Filters search by given object id. More...
 
 getIdFilter ()
 Get Id filter. More...
 
 appendToFilter ($a_type)
 Append object type to filter. More...
 
 getFilter ()
 get object type to search in More...
 
 __createLocateString ()
 build locate string in case of AND search More...
 
 __prepareFound (&$row)
 
 performSearch ()
 

Additional Inherited Members

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

Detailed Description

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

Member Function Documentation

◆ __createCoverageAndCondition()

ilFulltextAdvancedSearch::__createCoverageAndCondition ( )

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

References $query.

86  {
87  // IN BOOLEAN MODE
88  $query .= " AND MATCH(coverage) AGAINST('";
89  foreach ($this->query_parser->getQuotedWords(true) as $word) {
90  $query .= $word;
91  $query .= '* ';
92  }
93  $query .= "' IN BOOLEAN MODE) ";
94  return $query;
95  }
$query

◆ __createEntityWhereCondition()

ilFulltextAdvancedSearch::__createEntityWhereCondition ( )

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

References $query.

75  {
76  // IN BOOLEAN MODE
77  $query .= " WHERE MATCH(entity) AGAINST('";
78  foreach ($this->query_parser->getQuotedWords(true) as $word) {
79  $query .= $word;
80  $query .= '* ';
81  }
82  $query .= "' IN BOOLEAN MODE) ";
83  return $query;
84  }
$query

◆ __createKeywordWhereCondition()

ilFulltextAdvancedSearch::__createKeywordWhereCondition ( )

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

References $query.

51  {
52  // IN BOOLEAN MODE
53  $query .= " WHERE MATCH(keyword) AGAINST('";
54  foreach ($this->query_parser->getQuotedWords(true) as $word) {
55  $query .= $word;
56  $query .= '* ';
57  }
58  $query .= "' IN BOOLEAN MODE) ";
59  return $query;
60  }
$query

◆ __createLifecycleWhereCondition()

ilFulltextAdvancedSearch::__createLifecycleWhereCondition ( )

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

References $query.

63  {
64  // IN BOOLEAN MODE
65  $query .= " WHERE MATCH(meta_version) AGAINST('";
66  foreach ($this->query_parser->getQuotedWords(true) as $word) {
67  $query .= $word;
68  $query .= '* ';
69  }
70  $query .= "' IN BOOLEAN MODE) ";
71  return $query;
72  }
$query

◆ __createTaxonWhereCondition()

ilFulltextAdvancedSearch::__createTaxonWhereCondition ( )

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

References $query.

40  {
41  // IN BOOLEAN MODE
42  $query .= " WHERE MATCH(taxon) AGAINST('";
43  foreach ($this->query_parser->getQuotedWords(true) as $word) {
44  $query .= $word;
45  $query .= '* ';
46  }
47  $query .= "' IN BOOLEAN MODE) ";
48  return $query;
49  }
$query

◆ __createTitleDescriptionWhereCondition()

ilFulltextAdvancedSearch::__createTitleDescriptionWhereCondition ( )

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

References $query.

98  {
99  // IN BOOLEAN MODE
100  $query .= " WHERE MATCH(title,description) AGAINST('";
101  foreach ($this->query_parser->getQuotedWords(true) as $word) {
102  $query .= $word;
103  $query .= '* ';
104  }
105  $query .= "' IN BOOLEAN MODE) ";
106  return $query;
107  }
$query

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