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

Public Member Functions

 ilFulltextObjectSearch (&$qp_obj)
 Constructor @access public. More...
 
 __createWhereCondition ()
 
- Public Member Functions inherited from ilObjectSearch
 ilObjectSearch (&$qp_obj)
 Constructor @access public. More...
 
performSearch ()
 
 __createInStatement ()
 
 setCreationDateFilterDate (ilDate $day)
 Set creation date filter. More...
 
 setCreationDateFilterOperator ($a_operator)
 
 getCreationDateFilterDate ()
 
 getCreationDateFilterOperator ()
 
- 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 ilObjectSearch
const CDATE_OPERATOR_BEFORE = 1
 
const CDATE_OPERATOR_AFTER = 2
 
const CDATE_OPERATOR_ON = 3
 
- Data Fields inherited from ilAbstractSearch
 $db = null
 
 $query_parser = null
 
 $search_result = null
 
 $object_types
 

Detailed Description

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

Member Function Documentation

◆ __createWhereCondition()

ilFulltextObjectSearch::__createWhereCondition ( )

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

49 {
50
51 if($this->db->isMysql4_0OrHigher())
52 {
53 $where = " WHERE MATCH (title,description) AGAINST(' ";
54
55 #$prefix = $this->query_parser->getCombination() == 'and' ? '+' : '';
56 foreach($this->query_parser->getQuotedWords(true) as $word)
57 {
58 #$where .= $prefix;
59 $where .= $word;
60 $where .= '* ';
61 }
62 $where .= "' IN BOOLEAN MODE) ";
63
64 return $where;
65 }
66 else
67 {
68 $where = " WHERE MATCH (title,description) AGAINST(' ";
69
70 foreach($this->query_parser->getQuotedWords(true) as $word)
71 {
72 $where .= ($word.' ');
73 }
74 $where .= "')";
75
76 return $where;
77 }
78 }

◆ ilFulltextObjectSearch()

ilFulltextObjectSearch::ilFulltextObjectSearch ( $qp_obj)

Constructor @access public.

Definition at line 43 of file class.ilFulltextObjectSearch.php.

44 {
45 parent::ilObjectSearch($qp_obj);
46 }

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