Public Member Functions

ilLikeExerciseSearch Class Reference

Inheritance diagram for ilLikeExerciseSearch:
Collaboration diagram for ilLikeExerciseSearch:

Public Member Functions

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

Detailed Description

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


Member Function Documentation

ilLikeExerciseSearch::__createWhereCondition (  ) 

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

References $counter.

        {
                $concat = 'instruction ';

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

ilLikeExerciseSearch::ilExerciseSearch ( &$  qp_obj  ) 

Constructor public.

Reimplemented from ilExerciseSearch.

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

        {
                parent::ilExerciseSearch($qp_obj);
        }


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