ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilGlossaryDefinitionSearch.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
31{
32 public function performSearch(): ilSearchResult
33 {
34 // Search in glossary term
35
36 $this->setFields(array('term'));
37
38 $where = $this->__createWhereCondition();
39 $locate = $this->__createLocateString();
40
41 $query = "SELECT glo_id,id " .
42 $locate .
43 "FROM glossary_term " .
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->glo_id,
50 'glo',
51 $this->__prepareFound($row),
52 (int) $row->id
53 );
54 }
55
57 }
58}
setFields(array $a_fields)
ilSearchResult $search_result
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$res
Definition: ltiservices.php:69