Public Member Functions

ilExerciseSearch Class Reference

Inheritance diagram for ilExerciseSearch:
Collaboration diagram for ilExerciseSearch:

Public Member Functions

 ilExerciseSearch (&$query_parser)
 Constructor public.
performSearch ()

Detailed Description

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


Member Function Documentation

ilExerciseSearch::ilExerciseSearch ( &$  query_parser  ) 

Constructor public.

Reimplemented in ilLikeExerciseSearch.

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

References ilAbstractSearch::$query_parser, and ilAbstractSearch::ilAbstractSearch().

Referenced by ilFulltextExerciseSearch::ilFulltextExerciseSearch().

Here is the call graph for this function:

Here is the caller graph for this function:

& ilExerciseSearch::performSearch (  ) 

Reimplemented from ilAbstractSearch.

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

References $query, $res, $row, ilAbstractSearch::__createLocateString(), and ilAbstractSearch::setFields().

        {
                // Search in glossary term
                
                $this->setFields(array('instruction'));

                $where = $this->__createWhereCondition();
                $locate = $this->__createLocateString();

                $query = "SELECT obj_id  ".
                        $locate.
                        "FROM exc_data ".
                        $where;

                $res = $this->db->query($query);
                while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
                {
                        $this->search_result->addEntry($row->obj_id,'exc',$this->__prepareFound($row));
                }
                return $this->search_result;
        }

Here is the call graph for this function:


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