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.ilDclTextRecordQueryObject.php
Go to the documentation of this file.
1
<?php
2
19
class
ilDclTextRecordQueryObject
extends
ilDclRecordQueryObject
20
{
21
public
function
applyCustomSorting
(
ilDclBaseFieldModel
$field, array $all_records, $direction =
'asc'
): array
22
{
23
$sort_array = array();
24
foreach
($all_records as
$id
) {
25
$url_field =
ilDclCache::getRecordFieldCache
(
new
ilDclBaseRecordModel
($id), $field);
26
$sort_array[
$id
] = $url_field->getSortingValue();
27
}
28
switch
(strtolower($direction)) {
29
case
'asc'
:
30
asort($sort_array);
31
break
;
32
case
'desc'
:
33
arsort($sort_array);
34
break
;
35
}
36
37
return
array_keys($sort_array);
38
}
39
}
ilDclBaseFieldModel
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilDclBaseFieldModel.php:19
ilDclRecordQueryObject
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilDclRecordQueryObject.php:19
ilDclBaseRecordModel
Definition:
class.ilDclBaseRecordModel.php:21
ilDclTextRecordQueryObject
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilDclTextRecordQueryObject.php:19
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ilDclCache\getRecordFieldCache
static getRecordFieldCache(object $record, object $field)
Definition:
class.ilDclCache.php:162
ilDclTextRecordQueryObject\applyCustomSorting
applyCustomSorting(ilDclBaseFieldModel $field, array $all_records, $direction='asc')
Definition:
class.ilDclTextRecordQueryObject.php:21
Modules
DataCollection
classes
Fields
Text
class.ilDclTextRecordQueryObject.php
Generated on Sun Apr 6 2025 22:01:34 for ILIAS by
1.8.13 (using
Doxyfile
)