29 public function __construct(
int $target_ref_id,
int $target_obj_id,
string $target_type)
33 $this->static_url_service = $DIC[
'static_url'];
34 $this->ui_factory = $DIC->ui()->factory();
35 $this->
lng = $DIC->language();
36 $this->
lng->loadLanguageModule(
'rbac');
44 protected function read(): void
52 foreach ($conditions as $condition) {
54 $row[
'id'] = $condition[
'id'];
56 $link = $this->static_url_service->builder()->build(
60 $row[
'trigger'] = $this->ui_factory->link()->standard(
65 $condition[
'trigger_obj_id'],
66 $condition[
'operator'],
70 if ($condition[
'obligatory']) {
71 $row[
'obligatory'] = $this->ui_factory->symbol()->icon()->custom(
72 'assets/images/standard/icon_checked.svg',
89 [$order_field, $order_direction] = $order->
join([], fn($ret, $key, $value) => [$key, $value]);
90 usort($data, fn(
$a,
$b) =>
$a[$order_field] <=>
$b[$order_field]);
91 if ($order_direction ===
'DESC') {
92 $data = array_reverse($data);
__construct(int $target_ref_id, int $target_obj_id, string $target_type)
StaticURL Services $static_url_service
join($init, callable $fn)
static translateOperator(int $a_obj_id, string $a_operator, string $value='')
Both the subject and the direction need to be specified when expressing an order. ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupTitle(int $obj_id)
limitData(Range $range, Order $order)
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
static _lookupType(int $id, bool $reference=false)
A simple class to express a naive range of whole positive numbers.
static _getPersistedConditionsOfTarget(int $a_target_ref_id, int $a_target_obj_id, string $a_target_type="")
get all persisted conditions of target object