ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFulltextMediaCastSearch Class Reference

Class ilFulltextMediaCastSearch. More...

+ Inheritance diagram for ilFulltextMediaCastSearch:
+ Collaboration diagram for ilFulltextMediaCastSearch:

Public Member Functions

 ilFulltextMediaCastSearch (&$qp_obj)
 Constructor public.
 __createWhereCondition ()
- Public Member Functions inherited from ilMediaCastSearch
 ilMediaCastSearch (&$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
 setIdFilter ($a_id_filter)
 Set id filter Filters search by given object id.
 getIdFilter ()
 Get Id filter.
 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

Class ilFulltextMediaCastSearch.

class for searching media cast entries

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 36 of file class.ilFulltextMediaCastSearch.php.

Member Function Documentation

ilFulltextMediaCastSearch::__createWhereCondition ( )

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

References $query.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE context_obj_type='mcst' AND MATCH(title,content) 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 .= " WHERE context_obj_type='mcst' AND MATCH (title,content) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextMediaCastSearch::ilFulltextMediaCastSearch ( $qp_obj)

Constructor public.

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

References ilMediaCastSearch\ilMediaCastSearch().

+ Here is the call graph for this function:


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