ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilFulltextLMContentSearch Class Reference
+ Inheritance diagram for ilFulltextLMContentSearch:
+ Collaboration diagram for ilFulltextLMContentSearch:

Public Member Functions

 ilFulltextLMContentSearch (&$qp_obj)
 Constructor @access public. More...
 
 __createWhereCondition ()
 
- Public Member Functions inherited from ilLMContentSearch
 ilLMContentSearch (&$query_parser)
 Constructor @access public. More...
 
performSearch ()
 
 __createInStatement ()
 
 __createAndCondition ()
 
- Public Member Functions inherited from ilAbstractSearch
 ilAbstractSearch (&$qp_obj)
 Constructor @access 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 ilAbstractSearch
 $db = null
 
 $query_parser = null
 
 $search_result = null
 
 $object_types
 

Detailed Description

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

Member Function Documentation

◆ __createWhereCondition()

ilFulltextLMContentSearch::__createWhereCondition ( )

Definition at line 49 of file class.ilFulltextLMContentSearch.php.

50 {
51 // IN BOOLEAN MODE
52 if($this->db->isMysql4_0OrHigher())
53 {
54 $where .= " WHERE MATCH(content) AGAINST('";
55 foreach($this->query_parser->getQuotedWords(true) as $word)
56 {
57 $where .= $word;
58 $where .= '* ';
59 }
60 $where .= "' IN BOOLEAN MODE) ";
61 }
62 else
63 {
64 // i do not see any reason, but MATCH AGAINST(...) OR MATCH AGAINST(...) does not use an index
65 $where .= " WHERE MATCH (content) AGAINST(' ";
66 foreach($this->query_parser->getQuotedWords(true) as $word)
67 {
68 $where .= $word;
69 $where .= ' ';
70 }
71 $where .= "') ";
72 }
73 return $where;
74 }

◆ ilFulltextLMContentSearch()

ilFulltextLMContentSearch::ilFulltextLMContentSearch ( $qp_obj)

Constructor @access public.

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

45 {
46 parent::ilLMContentSearch($qp_obj);
47 }

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