19 declare(strict_types=1);
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,
84 $data = array_slice($data, $offset, $limit);
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";
__construct(\ilRbacReview $rbac_review, array $local_roles)
count(array $filter, array $parameters)
applyOrder(array $data, ?Order $order=null)
Both the subject and the direction need to be specified when expressing an order. ...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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='ilpublicuserprofilegui')
Default behaviour is:
applyRange(array $data, ?Range $range=null)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
isFieldNumeric(string $field)
A simple class to express a naive range of whole positive numbers.
getData(array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
ilRbacReview $rbac_review