ILIAS  release_8 Revision v8.24
ilDclTextRecordQueryObject Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilDclTextRecordQueryObject:
+ Collaboration diagram for ilDclTextRecordQueryObject:

Public Member Functions

 applyCustomSorting (ilDclBaseFieldModel $field, array $all_records, $direction='asc')
 
- Public Member Functions inherited from ilDclRecordQueryObject
 getSelectStatement ()
 
 setSelectStatement (string $selectStatement)
 
 getJoinStatement ()
 
 setJoinStatement (string $joinStatement)
 
 getWhereStatement ()
 
 setWhereStatement (string $whereStatement)
 
 getGroupStatement ()
 
 setGroupStatement (string $groupStatement)
 
 getOrderStatement ()
 
 setOrderStatement (string $orderStatement)
 
 applyCustomSorting (ilDclBaseFieldModel $field, array $all_records, string $direction='asc')
 Apply custom sorting. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilDclRecordQueryObject
string $selectStatement = ""
 
string $joinStatement = ""
 
string $whereStatement = ""
 
string $groupStatement = ""
 
string $orderStatement = ""
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 19 of file class.ilDclTextRecordQueryObject.php.

Member Function Documentation

◆ applyCustomSorting()

ilDclTextRecordQueryObject::applyCustomSorting ( ilDclBaseFieldModel  $field,
array  $all_records,
  $direction = 'asc' 
)

Definition at line 21 of file class.ilDclTextRecordQueryObject.php.

21 : array
22 {
23 $sort_array = array();
24 foreach ($all_records as $id) {
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 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static getRecordFieldCache(object $record, object $field)

References $id, and ilDclCache\getRecordFieldCache().

+ Here is the call graph for this function:

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