ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilDclTextRecordQueryObject.php
Go to the documentation of this file.
1
<?
php
2
9
class
ilDclTextRecordQueryObject
extends
ilDclRecordQueryObject
10
{
11
public
function
applyCustomSorting
(
ilDclBaseFieldModel
$field, array $all_records_ids, $direction =
'asc'
)
12
{
13
$sort_array = array();
14
foreach
($all_records_ids as
$id
) {
15
$url_field =
ilDclCache::getRecordFieldCache
(
new
ilDclBaseRecordModel
($id), $field);
16
$sort_array[
$id
] = $url_field->getSortingValue();
17
}
18
switch
(strtolower($direction)) {
19
case
'asc'
:
20
asort($sort_array);
21
break
;
22
case
'desc'
:
23
arsort($sort_array);
24
break
;
25
}
26
27
return
array_keys($sort_array);
28
}
29
}
ilDclBaseFieldModel
Class ilDclBaseFieldModel.
Definition:
class.ilDclBaseFieldModel.php:15
ilDclRecordQueryObject
Class ilDclRecordQueryObject.
Definition:
class.ilDclRecordQueryObject.php:9
$id
if(!array_key_exists('StateId', $_REQUEST)) $id
Definition:
expirywarning.php:14
ilDclTextRecordQueryObject\applyCustomSorting
applyCustomSorting(ilDclBaseFieldModel $field, array $all_records_ids, $direction='asc')
Definition:
class.ilDclTextRecordQueryObject.php:11
ilDclCache\getRecordFieldCache
static getRecordFieldCache($record, $field)
Definition:
class.ilDclCache.php:178
ilDclBaseRecordModel
Class ilDclBaseRecordModel.
Definition:
class.ilDclBaseRecordModel.php:21
ilDclTextRecordQueryObject
Class ilDclTextRecordQueryObject.
Definition:
class.ilDclTextRecordQueryObject.php:9
php
Modules
DataCollection
classes
Fields
Text
class.ilDclTextRecordQueryObject.php
Generated on Thu Jan 16 2025 19:02:02 for ILIAS by
1.8.13 (using
Doxyfile
)