Public Member Functions

ilFulltextMediaCastSearch Class Reference

Class ilFulltextMediaCastSearch. More...

Inheritance diagram for ilFulltextMediaCastSearch:
Collaboration diagram for ilFulltextMediaCastSearch:

Public Member Functions

 ilFulltextMediaCastSearch (&$qp_obj)
 Constructor public.
 __createWhereCondition ()

Detailed Description

Class ilFulltextMediaCastSearch.

class for searching media cast entries

Author:
Alex Killing <alex.killing@gmx.de>
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.

        {
                // 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: