ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestSearch Class Reference
+ Inheritance diagram for ilTestSearch:
+ Collaboration diagram for ilTestSearch:

Public Member Functions

 ilTestSearch (&$query_parser)
 Constructor public.
__searchTestIntroduction ()
__searchTestTitle ()
__searchSurveyIntroduction ()
__searchSurveyTitle ()
performSearch ()
- Public Member Functions inherited from ilAbstractSearch
 ilAbstractSearch (&$qp_obj)
 Constructor public.
 setFields ($a_fields)
 Set fields to search.
 getFields ()
 Get fields to search.
 setFilter ($a_filter)
 set object type to search in
 setIdFilter ($a_id_filter)
 Set id filter Filters search by given object id.
 getIdFilter ()
 Get Id filter.
 appendToFilter ($a_type)
 Append object type to filter.
 getFilter ()
 get object type to search in
 __createLocateString ()
 build locate string in case of AND search
 __prepareFound (&$row)

Additional Inherited Members

- Data Fields inherited from ilAbstractSearch
 $db = null
 $query_parser = null
 $search_result = null
 $object_types

Detailed Description

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

Member Function Documentation

& ilTestSearch::__searchSurveyIntroduction ( )

Definition at line 86 of file class.ilTestSearch.php.

References $query, $res, $row, ilAbstractSearch\$search_result, ilAbstractSearch\__createLocateString(), DB_FETCHMODE_OBJECT, 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 svy_svy ".
$where;
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->search_result->addEntry($row->obj_fi,'svy',$this->__prepareFound($row));
}
}

+ 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\$search_result, ilAbstractSearch\__createLocateString(), DB_FETCHMODE_OBJECT, 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 svy_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));
}
}

+ 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\$search_result, ilAbstractSearch\__createLocateString(), DB_FETCHMODE_OBJECT, 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));
}
}

+ 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\$search_result, ilAbstractSearch\__createLocateString(), DB_FETCHMODE_OBJECT, 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 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));
}
}

+ 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 ( )

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