ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilLikeUserOrgUnitSearch.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
27
class
ilLikeUserOrgUnitSearch
extends
ilAbstractSearch
28
{
29
public
const
ORG_ASSIGNMENTS_TABLE
=
'orgu_user_assignements'
;
30
31
private
ilObjOrgUnitTree
$org_tree
;
32
33
34
35
public
function
__construct
($qp_obj)
36
{
37
parent::__construct
($qp_obj);
38
39
$this->org_tree =
ilObjOrgUnitTree::_getInstance
();
40
$this->org_tree->buildTempTableWithUsrAssignements(self::ORG_ASSIGNMENTS_TABLE);
41
}
42
43
44
public
function
performSearch
():
ilSearchResult
45
{
46
$where = $this->
__createWhereCondition
();
47
$locate = $this->
__createLocateString
();
48
49
$query
=
'SELECT user_id '
.
50
'FROM '
. self::ORG_ASSIGNMENTS_TABLE .
' '
.
51
$where;
52
53
$res
= $this->db->query(
$query
);
54
while
($row =
$res
->fetchRow(
ilDBConstants::FETCHMODE_OBJECT
)) {
55
$this->search_result->addEntry((
int
) $row->user_id,
'user'
, $this->__prepareFound($row));
56
}
57
return
$this->search_result
;
58
}
59
60
61
public
function
__createWhereCondition
(): string
62
{
63
$and =
''
;
64
$where =
'WHERE '
;
65
$counter = 0;
66
foreach
($this->query_parser->getQuotedWords() as $word) {
67
if
($counter++) {
68
$and .=
" OR "
;
69
}
70
$where .= (
'ref_id = '
. $this->db->quote($word,
'integer'
));
71
}
72
return
$where;
73
}
74
}
$res
$res
Definition:
ltiservices.php:69
ilAbstractSearch
Definition:
class.ilAbstractSearch.php:20
ilAbstractSearch\__createLocateString
__createLocateString()
Definition:
class.ilAbstractSearch.php:101
ilLikeUserOrgUnitSearch\$org_tree
ilObjOrgUnitTree $org_tree
Definition:
class.ilLikeUserOrgUnitSearch.php:31
ilObjOrgUnitTree\_getInstance
static _getInstance()
Definition:
class.ilObjOrgUnitTree.php:54
ilLikeUserOrgUnitSearch\__createWhereCondition
__createWhereCondition()
Definition:
class.ilLikeUserOrgUnitSearch.php:61
ilLikeUserOrgUnitSearch\performSearch
performSearch()
Definition:
class.ilLikeUserOrgUnitSearch.php:44
ilObjOrgUnitTree
$query
$query
Definition:
proxy_ylocal.php:13
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ilAbstractSearch\$search_result
ilSearchResult $search_result
Definition:
class.ilAbstractSearch.php:24
ilDBConstants\FETCHMODE_OBJECT
const FETCHMODE_OBJECT
Definition:
class.ilDBConstants.php:29
ilLikeUserOrgUnitSearch\__construct
__construct($qp_obj)
Definition:
class.ilLikeUserOrgUnitSearch.php:35
ilSearchResult
Definition:
class.ilSearchResult.php:31
ilLikeUserOrgUnitSearch
Description of class class.
Definition:
class.ilLikeUserOrgUnitSearch.php:27
ilLikeUserOrgUnitSearch\ORG_ASSIGNMENTS_TABLE
const ORG_ASSIGNMENTS_TABLE
Definition:
class.ilLikeUserOrgUnitSearch.php:29
Services
Search
classes
Like
class.ilLikeUserOrgUnitSearch.php
Generated on Tue Apr 1 2025 22:02:33 for ILIAS by
1.8.13 (using
Doxyfile
)