ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilMediaCastSearch.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
31 {
32  public function performSearch(): ilSearchResult
33  {
34  // Search in glossary term
35 
36  $this->setFields(array('title','content'));
37 
38  $where = $this->__createWhereCondition();
39  $locate = $this->__createLocateString();
40 
41  $query = "SELECT id, context_obj_id, context_obj_type " .
42  $locate .
43  "FROM il_news_item " .
44  $where;
45 
46  $res = $this->db->query($query);
47  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
48  $this->search_result->addEntry(
49  (int) $row->context_obj_id,
50  'mcst',
51  $this->__prepareFound($row),
52  (int) $row->id
53  );
54  }
55  return $this->search_result;
56  }
57 }
$res
Definition: ltiservices.php:66
setFields(array $a_fields)
ilSearchResult $search_result