3 declare(strict_types=1);
    58         $this->super_type = $a_super_type;
    59         $this->style = $a_style;
    61         $ctrl = $this->gui_service->ctrl();
    67         $this->
setTitle($this->
lng->txt(
"sty_" . $a_super_type . 
"_char"));
    72         $this->hideable = 
false;
    75         foreach ($types as $t) {
    80                 $this->hideable = 
true;
    92         if ($this->hideable) {
    99         $this->
setRowTemplate(
"tpl.style_row.html", 
"Services/Style/Content/Characteristic");
   102         if ($this->access_manager->checkWrite()) {
   105                 $txt = $this->
lng->txt(
"sty_save_hide_status");
   107                     $txt = $this->
lng->txt(
"sty_save_hide_order_status");
   108                 } elseif (!$this->hideable) {
   109                     $txt = $this->
lng->txt(
"sty_save_order_status");
   121                 $this->
addMultiCommand(
"deleteCharacteristicConfirmation", $this->
lng->txt(
"delete"));
   131         foreach ($this->manager->getBySuperType($this->super_type) as $char) {
   139     protected function fillRow(array $a_set): void
   142         $ilCtrl = $this->gui_service->ctrl();
   143         $ui = $this->gui_service->ui();
   145         $char = $a_set[
"obj"];
   148             $this->order_cnt = $this->order_cnt + 10;
   149             $this->tpl->setCurrentBlock(
"order");
   150             $this->tpl->setVariable(
"OCHAR", $char->getType() . 
"." .
   152                 "." . $char->getCharacteristic());
   153             $this->tpl->setVariable(
"ORDER", $this->order_cnt);
   154             $this->tpl->parseCurrentBlock();
   158         $this->tpl->setCurrentBlock(
"checkbox");
   159         $this->tpl->setVariable(
"CHAR", $char->getType() . 
"." .
   161                     "." . $char->getCharacteristic());
   162         $this->tpl->parseCurrentBlock();
   164         if ($this->hideable) {
   166                 (!empty($this->core_styles[$char->getType() . 
"." .
   168                 "." . $char->getCharacteristic()]))) {
   169                 $this->tpl->touchBlock(
"no_hide_checkbox");
   171                 $this->tpl->setCurrentBlock(
"hide_checkbox");
   172                 $this->tpl->setVariable(
"CHAR", $char->getType() . 
"." .
   174                     "." . $char->getCharacteristic());
   175                 if ($this->style->getHideStatus($char->getType(), $char->getCharacteristic())) {
   176                     $this->tpl->setVariable(
"CHECKED", 
"checked='checked'");
   178                 $this->tpl->parseCurrentBlock();
   183         $this->tpl->setVariable(
   188         $this->tpl->setVariable(
"TXT_TAG", $char->getCharacteristic());
   189         $this->tpl->setVariable(
"TXT_TYPE", 
$lng->
txt(
"sty_type_" . $char->getType()));
   191         $this->tpl->setVariable(
"TITLE", $this->manager->getPresentationTitle(
   193             $char->getCharacteristic(),
   197         if ($this->access_manager->checkWrite()) {
   198             $ilCtrl->setParameter($this->parent_obj, 
"tag", $tag_str);
   199             $ilCtrl->setParameter($this->parent_obj, 
"style_type", $char->getType());
   200             $ilCtrl->setParameter($this->parent_obj, 
"char", $char->getCharacteristic());
   203             $links[] = 
$ui->factory()->link()->standard(
   204                 $this->
lng->txt(
"edit"),
   205                 $ilCtrl->getLinkTargetByClass(
"ilStyleCharacteristicGUI", 
"editTagStyle")
   209                 if ($char->isOutdated()) {
   210                     $this->tpl->setVariable(
"OUTDATED", 
$lng->
txt(
"yes"));
   211                     $links[] = 
$ui->factory()->link()->standard(
   212                         $this->
lng->txt(
"sty_remove_outdated"),
   213                         $ilCtrl->getLinkTargetByClass(
"ilStyleCharacteristicGUI", 
"removeOutdated")
   216                     $this->tpl->setVariable(
"OUTDATED", 
$lng->
txt(
"no"));
   217                     $links[] = 
$ui->factory()->link()->standard(
   218                         $this->
lng->txt(
"sty_set_outdated"),
   219                         $ilCtrl->getLinkTargetByClass(
"ilStyleCharacteristicGUI", 
"setOutdated")
   224             $dd = 
$ui->factory()->dropdown()->standard($links);
   226             $this->tpl->setVariable(
   228                 $ui->renderer()->render($dd)
 InternalGUIService $gui_service
 
Access StyleAccessManager $access_manager
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _isExpandable(string $a_type)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
setEnableTitle(bool $a_enabletitle)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
static getStyleExampleHTML(string $a_type, string $a_class)
Get style example HTML. 
 
static _getStyleSuperTypes()
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static isCoreStyle(string $a_type, string $a_class)
 
setExternalSorting(bool $a_val)
 
TableGUI class for characteristics. 
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
__construct(InternalGUIService $gui_service, object $a_parent_obj, string $a_parent_cmd, string $a_super_type, ilObjStyleSheet $a_style, Style\Content\CharacteristicManager $manager, Access\StyleAccessManager $access_manager)
 
Main business logic for characteristics. 
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
Manages access to content style editing. 
 
setLimit(int $a_limit=0, int $a_default_limit=0)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
Style Content CharacteristicManager $manager
 
disable(string $a_module_name)
 
static _isHideable(string $a_type)
 
static _determineTag(string $a_type)
 
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
 
addMultiCommand(string $a_cmd, string $a_text)
 
setEnableHeader(bool $a_enableheader)