4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
    5include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
 
   39        $this->ctrl = 
$DIC->ctrl();
 
   40        $this->lng = 
$DIC->language();
 
   42        $this->rbacsystem = 
$DIC->rbac()->system();
 
   43        $ilCtrl = 
$DIC->ctrl();
 
   47        $this->fixed_style = 
$ilSetting->get(
"fixed_content_style_id");
 
   48        $this->default_style = 
$ilSetting->get(
"default_content_style_id");
 
   50        $this->
setId(
"sty_cs");
 
   51        $this->sty_settings = $a_style_settings;
 
   58        $this->
addColumn($this->lng->txt(
"title"));
 
   59        $this->
addColumn($this->lng->txt(
"sty_nr_learning_modules"));
 
   60        $this->
addColumn($this->lng->txt(
"purpose"));
 
   61        $this->
addColumn($this->lng->txt(
"sty_scope"));
 
   62        $this->
addColumn($this->lng->txt(
"active"));
 
   63        $this->
addColumn($this->lng->txt(
"actions"));
 
   66        $this->
setRowTemplate(
"tpl.content_style_row.html", 
"Services/Style/Content");
 
   67        if ($this->parent_obj->checkPermission(
"sty_write_content", 
false)) {
 
   82        if ($a_set[
"id"] > 0) {
 
   83            $this->tpl->setCurrentBlock(
"cb");
 
   84            $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
   85            $this->tpl->parseCurrentBlock();
 
   87            $this->tpl->setCurrentBlock(
"cb_act");
 
   88            if ($a_set[
"active"]) {
 
   89                $this->tpl->setVariable(
"ACT_CHECKED", 
"checked='checked'");
 
   91            $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
   92            $this->tpl->parseCurrentBlock();
 
   94            $this->tpl->setCurrentBlock(
"edit_link");
 
   95            $ilCtrl->setParameterByClass(
"ilobjstylesheetgui", 
"obj_id", $a_set[
"id"]);
 
   96            $this->tpl->setVariable(
"EDIT_LINK", $ilCtrl->getLinkTargetByClass(
"ilobjstylesheetgui", 
""));
 
   97            $ilCtrl->setParameterByClass(
"ilobjstylesheetgui", 
"obj_id", 
"");
 
   98            $this->tpl->setVariable(
"EDIT_TITLE", $a_set[
"title"]);
 
   99            $this->tpl->parseCurrentBlock();
 
  101            $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
 
  104        $ilCtrl->setParameter($this->parent_obj, 
"id", $a_set[
"id"]);
 
  105        if ($a_set[
"id"] > 0 && $this->parent_obj->checkPermission(
"sty_write_content", 
false)) {
 
  107            $list->setListTitle(
$lng->txt(
"actions"));
 
  108            $list->setId(
"sty_act_" . $a_set[
"id"]);
 
  111            if ($this->default_style == $a_set[
"id"]) {
 
  113                    $lng->txt(
"sty_remove_global_default_state"),
 
  115                    $ilCtrl->getLinkTarget($this->parent_obj, 
"toggleGlobalDefault")
 
  117            } elseif ($a_set[
"active"]) {
 
  119                    $lng->txt(
"sty_make_global_default"),
 
  121                    $ilCtrl->getLinkTarget($this->parent_obj, 
"toggleGlobalDefault")
 
  126            if ($this->fixed_style == $a_set[
"id"]) {
 
  128                    $lng->txt(
"sty_remove_global_fixed_state"),
 
  130                    $ilCtrl->getLinkTarget($this->parent_obj, 
"toggleGlobalFixed")
 
  132            } elseif ($a_set[
"active"]) {
 
  134                    $lng->txt(
"sty_make_global_fixed"),
 
  136                    $ilCtrl->getLinkTarget($this->parent_obj, 
"toggleGlobalFixed")
 
  140                $lng->txt(
"sty_set_scope"),
 
  142                $ilCtrl->getLinkTarget($this->parent_obj, 
"setScope")
 
  145            $this->tpl->setVariable(
"ACTIONS", $list->getHTML());
 
  147            if ($a_set[
"id"] == $this->fixed_style) {
 
  148                $this->tpl->setVariable(
"PURPOSE", 
$lng->txt(
"global_fixed"));
 
  150            if ($a_set[
"id"] == $this->default_style) {
 
  151                $this->tpl->setVariable(
"PURPOSE", 
$lng->txt(
"global_default"));
 
  154        $ilCtrl->setParameter($this->parent_obj, 
"id", 
"");
 
  156        $this->tpl->setVariable(
"NR_LM", $a_set[
"lm_nr"]);
 
  158        if ($a_set[
"category"] > 0) {
 
  159            $this->tpl->setVariable(
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
Settings UI class for system styles.
__construct(ilContentStyleSettingsGUI $a_parent_obj, $a_parent_cmd, $a_data, $a_style_settings)
Constructor.
fillRow($a_set)
Fill table row.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc