19declare(strict_types=1);
26use ILIAS\Repository\RetrievalBase;
48 array $parameters = []
58 foreach (
$data as $row) {
65 if ($order !==
null) {
66 $order_field = array_keys($order->get())[0];
67 $order_direction = $order->get()[$order_field];
70 array_column(
$data, $order_field),
71 $order_direction ===
'ASC' ? SORT_ASC : SORT_DESC,
72 $this->isFieldNumeric($order_field) ? SORT_NUMERIC : SORT_STRING,
93 return count($this->collectData());
98 $user_map = $assigned = array();
99 foreach ($this->local_roles as
$id => $title) {
100 $local = $this->rbac_review->assignedUsers(
$id);
101 $assigned = array_merge($assigned, $local);
108 foreach (array_unique($assigned) as
$id) {
112 "role" => $user_map[
$id]
121 return $field ===
"id";
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
applyOrder(array $data, ?Order $order=null)
applyRange(array $data, ?Range $range=null)
getData(array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
__construct(\ilRbacReview $rbac_review, array $local_roles)
isFieldNumeric(string $field)
ilRbacReview $rbac_review
count(array $filter, array $parameters)
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.
class ilRbacReview Contains Review functions of core Rbac.
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path=null)
Default behaviour is:
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...