ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 51 of file class.ilFulltextForumSearch.php.

References $query.

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

◆ __createTopicAndCondition()

ilFulltextForumSearch::__createTopicAndCondition ( )

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

References $query.

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

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