ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMediaCastSearch Class Reference
+ Inheritance diagram for ilMediaCastSearch:
+ Collaboration diagram for ilMediaCastSearch:

Public Member Functions

 ilMediaCastSearch (&$query_parser)
 Constructor public.
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 = array('cat','dbk','crs','fold','grp','lm','sahs','glo','mep','htlm','exc','file','qpl','tst','svy','spl', 'icrs','icla','webr','mcst','sess','pg','st','book')

Detailed Description

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

Member Function Documentation

ilMediaCastSearch::ilMediaCastSearch ( $query_parser)

Constructor public.

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

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

Referenced by ilFulltextMediaCastSearch\ilFulltextMediaCastSearch(), and ilLikeMediaCastSearch\ilLikeMediaCastSearch().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilMediaCastSearch::performSearch ( )

Reimplemented from ilAbstractSearch.

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

References $query, $res, $row, ilAbstractSearch\$search_result, ilAbstractSearch\__createLocateString(), DB_FETCHMODE_OBJECT, and ilAbstractSearch\setFields().

{
// Search in glossary term
$this->setFields(array('title','content'));
$where = $this->__createWhereCondition();
$locate = $this->__createLocateString();
$query = "SELECT id, context_obj_id, context_obj_type ".
$locate.
"FROM il_news_item ".
$where;
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->search_result->addEntry($row->context_obj_id,'mcst',$this->__prepareFound($row),$row->id);
}
}

+ Here is the call graph for this function:


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