19declare(strict_types=1);
56 array $visible_column_ids,
59 mixed $additional_viewcontrol_data,
61 mixed $additional_parameters
63 $checked_icon = $this->ui_factory->
symbol()->icon()->
custom(
64 'assets/images/standard/icon_checked.svg',
65 $this->presentation->txt(
'yes'),
68 $unchecked_icon = $this->ui_factory->symbol()->icon()->custom(
69 'assets/images/standard/icon_unchecked.svg',
70 $this->presentation->txt(
'yes'),
74 $infos = $this->vocab_manager->infos();
78 $record[
'element'] = $this->presentation->makeSlotPresentable(
$vocab->slot());
79 $record[
'type'] = $this->presentation->makeTypePresentable(
$vocab->type());
80 $record[
'source'] =
$vocab->source();
81 $record[
'preview'] = implode(
83 $this->presentation->makeValuesPresentable(
$vocab, self::MAX_PREVIEW_VALUES)
85 $record[
'active'] =
$vocab->isActive() ? $checked_icon : $unchecked_icon;
86 if ($infos->isCustomInputApplicable(
$vocab)) {
87 $record[
'custom_input'] =
$vocab->allowsCustomInputs() ? $checked_icon : $unchecked_icon;
93 )->withDisabledAction(
95 !$infos->canBeDeleted(
$vocab)
96 )->withDisabledAction(
99 )->withDisabledAction(
102 !$infos->isDeactivatable(
$vocab)
103 )->withDisabledAction(
104 'allow_custom_input',
105 !$infos->isCustomInputApplicable(
$vocab) ||
106 $vocab->allowsCustomInputs()
107 )->withDisabledAction(
108 'disallow_custom_input',
109 !$infos->isCustomInputApplicable(
$vocab) ||
110 !$infos->canDisallowCustomInput(
$vocab) ||
111 !
$vocab->allowsCustomInputs()
117 mixed $additional_viewcontrol_data,
119 mixed $additional_parameters
121 return count($this->getVocabs());
126 if (isset($this->vocabs)) {
127 $vocabs = $this->vocabs;
129 $vocabs = iterator_to_array($this->vocab_manager->getAllVocabularies(),
false);
136 return $this->vocabs = $vocabs;
Builds a Color from either hex- or rgb values.
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.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
buildDataRow(string $id, array $record)