3 declare(strict_types=1);
    46         $this->
ctrl = $DIC->ctrl();
    47         $this->
lng = $DIC->language();
    48         $this->
access = $DIC->access();
    49         $this->rbacsystem = $DIC->rbac()->system();
    50         $ilCtrl = $DIC->ctrl();
    51         $lng = $DIC->language();
    58         $this->style_obj = $a_style_obj;
    59         $this->temp_type = $a_temp_type;
    62         $this->
addColumn($this->
lng->txt(
"sty_template_name"), 
"");
    64         $this->
addColumn($this->
lng->txt(
"sty_commands"), 
"", 
"1");
    67         $this->
setRowTemplate(
"tpl.style_template_row.html", 
"components/ILIAS/Style/Content");
    71         if ($this->access_manager->checkWrite()) {
    80         $this->
setData($this->style_obj->getTemplates($this->temp_type));
    83     protected function fillRow(array $a_set): void
    88         $this->tpl->setVariable(
    90             $this->style_obj->lookupTemplatePreview((
int) $a_set[
"id"])
    92         $this->tpl->setVariable(
"TID", $a_set[
"id"]);
    93         $this->tpl->setVariable(
"TEMPLATE_NAME", $a_set[
"name"]);
    94         $ilCtrl->
setParameter($this->parent_obj, 
"t_id", $a_set[
"id"]);
    96         if ($this->access_manager->checkWrite()) {
    97             $this->tpl->setVariable(
    99                 $ilCtrl->getLinkTarget($this->parent_obj, 
"editTemplate")
   101             $this->tpl->setVariable(
"TXT_EDIT", 
$lng->
txt(
"edit"));
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ilObjStyleSheet $style_obj
 
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)
 
static addCss()
Add required css. 
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
__construct(Container $dic, ilPlugin $plugin)
 
Manages access to content style editing. 
 
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)
 
__construct(string $a_temp_type, object $a_parent_obj, string $a_parent_cmd, ilObjStyleSheet $a_style_obj, Content\Access\StyleAccessManager $access_manager)
 
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
 
Content Access StyleAccessManager $access_manager
 
addMultiCommand(string $a_cmd, string $a_text)
 
setEnableHeader(bool $a_enableheader)