Public Member Functions

ilLikeObjectSearch Class Reference

Inheritance diagram for ilLikeObjectSearch:
Collaboration diagram for ilLikeObjectSearch:

Public Member Functions

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

Detailed Description

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


Member Function Documentation

ilLikeObjectSearch::__createWhereCondition (  ) 

Definition at line 50 of file class.ilLikeObjectSearch.php.

References $counter.

        {
                $concat  = " CONCAT(";
                $concat .= 'title,description';
                $concat .= ") ";

                $where = "WHERE (";
                $counter = 0;
                foreach($this->query_parser->getQuotedWords() as $word)
                {
                        if($counter++)
                        {
                                $where .= "OR";
                        }
                        $where .= $concat;
                        $where .= ("LIKE ('%".$word."%') ");
                }
                $where .= ') ';
                return $where;
        }

ilLikeObjectSearch::ilLikeObjectSearch ( &$  qp_obj  ) 

Constructor public.

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

References ilObjectSearch::ilObjectSearch().

        {
                parent::ilObjectSearch($qp_obj);
        }

Here is the call graph for this function:


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