ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMediaCastSearch Class Reference
+ Inheritance diagram for ilMediaCastSearch:
+ Collaboration diagram for ilMediaCastSearch:

Public Member Functions

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

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.ilMediaCastSearch.php.

Member Function Documentation

◆ performSearch()

ilMediaCastSearch::performSearch ( )

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

References $query, $res, $row, ilAbstractSearch\$search_result, ilAbstractSearch\__createLocateString(), array, ilDBConstants\FETCHMODE_OBJECT, and ilAbstractSearch\setFields().

40  {
41  // Search in glossary term
42 
43  $this->setFields(array('title','content'));
44 
45  $where = $this->__createWhereCondition();
46  $locate = $this->__createLocateString();
47 
48  $query = "SELECT id, context_obj_id, context_obj_type " .
49  $locate .
50  "FROM il_news_item " .
51  $where;
52 
53  $res = $this->db->query($query);
54  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
55  $this->search_result->addEntry($row->context_obj_id, 'mcst', $this->__prepareFound($row), $row->id);
56  }
57  return $this->search_result;
58  }
__createLocateString()
build locate string in case of AND search
setFields($a_fields)
Set fields to search.
foreach($_POST as $key=> $value) $res
$query
Create styles array
The data for the language used.
+ Here is the call graph for this function:

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