ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilExerciseSearch Class Reference
+ Inheritance diagram for ilExerciseSearch:
+ Collaboration diagram for ilExerciseSearch:

Public Member Functions

 performSearch ()
 
- Public Member Functions inherited from ilAbstractSearch
 __construct (ilQueryParser $qp_obj)
 
 setFields (array $a_fields)
 
 getFields ()
 
 setFilter (array $a_filter)
 
 setIdFilter (array $a_id_filter)
 
 getIdFilter ()
 
 appendToFilter (string $a_type)
 
 getFilter ()
 
 __createLocateString ()
 
 __prepareFound (object $row)
 
 performSearch ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilAbstractSearch
 getValidObjectTypes (ilObjectDefinition $object_definition)
 
- Protected Attributes inherited from ilAbstractSearch
ilDBInterface $db
 
ilQueryParser $query_parser
 
ilSearchResult $search_result
 
array $object_types = []
 

Detailed Description

Definition at line 30 of file class.ilExerciseSearch.php.

Member Function Documentation

◆ performSearch()

ilExerciseSearch::performSearch ( )

Definition at line 32 of file class.ilExerciseSearch.php.

References $res, ilAbstractSearch\$search_result, ilAbstractSearch\__createLocateString(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and ilAbstractSearch\setFields().

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  }
53  return $this->search_result;
54  }
$res
Definition: ltiservices.php:66
setFields(array $a_fields)
ilSearchResult $search_result
+ Here is the call graph for this function:

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