Inheritance diagram for ilTestSearch:
Collaboration diagram for ilTestSearch:Public Member Functions | |
| ilTestSearch (&$query_parser) | |
| Constructor public. | |
| & | __searchTestIntroduction () |
| & | __searchTestTitle () |
| & | __searchSurveyIntroduction () |
| & | __searchSurveyTitle () |
| & | performSearch () |
Definition at line 37 of file class.ilTestSearch.php.
| & ilTestSearch::__searchSurveyIntroduction | ( | ) |
Definition at line 86 of file class.ilTestSearch.php.
References $query, $res, $row, ilAbstractSearch::__createLocateString(), ilAbstractSearch::getFields(), and ilAbstractSearch::setFields().
Referenced by performSearch().
{
$this->setFields(array('introduction'));
$where = $this->__createWhereCondition(implode(',',$this->getFields()));
$locate = $this->__createLocateString();
$query = "SELECT obj_fi ".
$locate.
"FROM survey_survey ".
$where;
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->search_result->addEntry($row->obj_fi,'svy',$this->__prepareFound($row));
}
return $this->search_result;
}
Here is the call graph for this function:
Here is the caller graph for this function:| & ilTestSearch::__searchSurveyTitle | ( | ) |
Definition at line 105 of file class.ilTestSearch.php.
References $query, $res, $row, ilAbstractSearch::__createLocateString(), ilAbstractSearch::getFields(), and ilAbstractSearch::setFields().
Referenced by performSearch().
{
$this->setFields(array('title','description'));
$where = $this->__createWhereCondition(implode(',',$this->getFields()));
$locate = $this->__createLocateString();
$query = "SELECT obj_fi ".
$locate.
"FROM survey_question ".
$where;
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->search_result->addEntry($row->obj_fi,'spl',$this->__prepareFound($row));
}
return $this->search_result;
}
Here is the call graph for this function:
Here is the caller graph for this function:| & ilTestSearch::__searchTestIntroduction | ( | ) |
Definition at line 48 of file class.ilTestSearch.php.
References $query, $res, $row, ilAbstractSearch::__createLocateString(), ilAbstractSearch::getFields(), and ilAbstractSearch::setFields().
Referenced by performSearch().
{
$this->setFields(array('introduction'));
$where = $this->__createWhereCondition(implode(',',$this->getFields()));
$locate = $this->__createLocateString();
$query = "SELECT obj_fi ".
$locate.
"FROM tst_tests ".
$where;
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->search_result->addEntry($row->obj_fi,'tst',$this->__prepareFound($row));
}
return $this->search_result;
}
Here is the call graph for this function:
Here is the caller graph for this function:| & ilTestSearch::__searchTestTitle | ( | ) |
Definition at line 67 of file class.ilTestSearch.php.
References $query, $res, $row, ilAbstractSearch::__createLocateString(), ilAbstractSearch::getFields(), and ilAbstractSearch::setFields().
Referenced by performSearch().
{
$this->setFields(array('title','comment'));
$where = $this->__createWhereCondition(implode(',',$this->getFields()));
$locate = $this->__createLocateString();
$query = "SELECT obj_fi ".
$locate.
"FROM qpl_questions ".
$where;
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->search_result->addEntry($row->obj_fi,'qpl',$this->__prepareFound($row));
}
return $this->search_result;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestSearch::ilTestSearch | ( | &$ | query_parser | ) |
Constructor public.
Reimplemented in ilLikeTestSearch.
Definition at line 43 of file class.ilTestSearch.php.
References ilAbstractSearch::$query_parser, and ilAbstractSearch::ilAbstractSearch().
Referenced by ilFulltextTestSearch::ilFulltextTestSearch().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilTestSearch::performSearch | ( | ) |
Reimplemented from ilAbstractSearch.
Definition at line 126 of file class.ilTestSearch.php.
References __searchSurveyIntroduction(), __searchSurveyTitle(), __searchTestIntroduction(), and __searchTestTitle().
{
$this->__searchTestTitle();
$this->__searchTestIntroduction();
$this->__searchSurveyTitle();
$this->__searchSurveyIntroduction();
return $this->search_result;
}
Here is the call graph for this function:
1.7.1