ILIAS
trunk Revision v11.0_alpha-1689-g66c127b4ae8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ilExerciseSearch.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
30
class
ilExerciseSearch
extends
ilAbstractSearch
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
}
53
return
$this->search_result
;
54
}
55
}
$res
$res
Definition:
ltiservices.php:66
ilAbstractSearch
Definition:
class.ilAbstractSearch.php:32
ilAbstractSearch\__createLocateString
__createLocateString()
Definition:
class.ilAbstractSearch.php:138
ilAbstractSearch\setFields
setFields(array $a_fields)
Definition:
class.ilAbstractSearch.php:91
ilExerciseSearch\performSearch
performSearch()
Definition:
class.ilExerciseSearch.php:32
ilAbstractSearch\$search_result
ilSearchResult $search_result
Definition:
class.ilAbstractSearch.php:36
ilDBConstants\FETCHMODE_OBJECT
const FETCHMODE_OBJECT
Definition:
class.ilDBConstants.php:29
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilSearchResult
Definition:
class.ilSearchResult.php:28
ilExerciseSearch
Definition:
class.ilExerciseSearch.php:30
components
ILIAS
Search
classes
Like
class.ilExerciseSearch.php
Generated on Wed Apr 2 2025 23:03:31 for ILIAS by
1.8.13 (using
Doxyfile
)