18declare(strict_types=1);
25use ILIAS\Repository\RetrievalBase;
42 $manual_sorting ?
"order_nr" :
"title",
46 foreach ($this->data as &$row) {
47 $row[
"id"] = (
int) $row[
"child"];
59 $data = $this->applyOrder($this->data, $order);
67 return count($this->data);
72 return $field ===
"order_nr" || $field ===
"child";
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.
isFieldNumeric(string $field)
__construct(\ilTaxonomyTree $tree, int $parent_node_id, bool $manual_sorting)
count(array $filter, array $parameters)
getData(array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getChildsByTypeFilter(int $a_node_id, array $a_types, string $a_order="", string $a_direction="ASC")
get child nodes of given node by object type