ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilExerciseSearch.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
31{
32 public function performSearch(): ilSearchResult
33 {
34 $this->setFields(array('instruction','title'));
35
36 $where = $this->__createWhereCondition();
37 $locate = $this->__createLocateString();
38
39 $query = "SELECT exc_id, id " .
40 $locate .
41 "FROM exc_assignment " .
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->exc_id,
48 'exc',
49 $this->__prepareFound($row),
50 (int) $row->id
51 );
52 }
54 }
55}
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