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