ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilFulltextForumSearch Class Reference
+ Inheritance diagram for ilFulltextForumSearch:
+ Collaboration diagram for ilFulltextForumSearch:

Public Member Functions

 __createTopicAndCondition ()
 
 __createPostAndCondition ()
 
- Public Member Functions inherited from ilForumSearch
performSearch ()
 
 __createAndCondition ()
 
- 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 ilAbstractSearch
 $db = null
 
 $query_parser = null
 
 $search_result = null
 
 $object_types
 

Detailed Description

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

Member Function Documentation

◆ __createPostAndCondition()

ilFulltextForumSearch::__createPostAndCondition ( )

Definition at line 53 of file class.ilFulltextForumSearch.php.

References $query.

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

◆ __createTopicAndCondition()

ilFulltextForumSearch::__createTopicAndCondition ( )

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

References $query.

41  {
42  // IN BOOLEAN MODE
43  $query .= " AND MATCH(thr_subject) 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  }

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