ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 90 of file class.ilFulltextAdvancedSearch.php.

References $query.

91  {
92  // IN BOOLEAN MODE
93  $query .= " AND MATCH(coverage) AGAINST('";
94  foreach($this->query_parser->getQuotedWords(true) as $word)
95  {
96  $query .= $word;
97  $query .= '* ';
98  }
99  $query .= "' IN BOOLEAN MODE) ";
100  return $query;
101  }

◆ __createEntityWhereCondition()

ilFulltextAdvancedSearch::__createEntityWhereCondition ( )

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

References $query.

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

◆ __createKeywordWhereCondition()

ilFulltextAdvancedSearch::__createKeywordWhereCondition ( )

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

References $query.

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

◆ __createLifecycleWhereCondition()

ilFulltextAdvancedSearch::__createLifecycleWhereCondition ( )

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

References $query.

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

◆ __createTaxonWhereCondition()

ilFulltextAdvancedSearch::__createTaxonWhereCondition ( )

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

References $query.

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

◆ __createTitleDescriptionWhereCondition()

ilFulltextAdvancedSearch::__createTitleDescriptionWhereCondition ( )

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

References $query.

104  {
105  // IN BOOLEAN MODE
106  $query .= " WHERE MATCH(title,description) AGAINST('";
107  foreach($this->query_parser->getQuotedWords(true) as $word)
108  {
109  $query .= $word;
110  $query .= '* ';
111  }
112  $query .= "' IN BOOLEAN MODE) ";
113  return $query;
114  }

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