ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFulltextMediaPoolSearch Class Reference
+ Inheritance diagram for ilFulltextMediaPoolSearch:
+ Collaboration diagram for ilFulltextMediaPoolSearch:

Public Member Functions

 ilFulltextMediaPoolSearch (&$qp_obj)
 Constructor public.
 __createAndCondition ()
- Public Member Functions inherited from ilMediaPoolSearch
 ilMediaPoolSearch (&$query_parser)
 Constructor public.
performSearch ()
- Public Member Functions inherited from ilAbstractSearch
 ilAbstractSearch (&$qp_obj)
 Constructor public.
 setFields ($a_fields)
 Set fields to search.
 getFields ()
 Get fields to search.
 setFilter ($a_filter)
 set object type to search in
 appendToFilter ($a_type)
 Append object type to filter.
 getFilter ()
 get object type to search in
 __createLocateString ()
 build locate string in case of AND search
 __prepareFound (&$row)

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.ilFulltextMediaPoolSearch.php.

Member Function Documentation

ilFulltextMediaPoolSearch::__createAndCondition ( )

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

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " AND MATCH(title,description) AGAINST('";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= '* ';
}
$query .= "' IN BOOLEAN MODE) ";
}
else
{
// i do not see any reason, but MATCH AGAINST(...) OR MATCH AGAINST(...) does not use an index
$query .= " AND MATCH (title,description) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextMediaPoolSearch::ilFulltextMediaPoolSearch ( $qp_obj)

Constructor public.

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

References ilMediaPoolSearch\ilMediaPoolSearch().

+ Here is the call graph for this function:


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