5include_once(
"Services/Table/classes/class.ilTable2GUI.php");
 
   36    public function __construct($a_parent_obj, $a_parent_cmd, $a_chars, $a_super_type, $a_style)
 
   40        $this->ctrl = 
$DIC->ctrl();
 
   41        $this->lng = 
$DIC->language();
 
   42        $this->access = 
$DIC->access();
 
   43        $this->rbacsystem = 
$DIC->rbac()->system();
 
   46        $ilAccess = 
$DIC->access();
 
   50        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   51        $this->media_object = $a_media_object;
 
   52        $this->super_type = $a_super_type;
 
   53        $this->style = $a_style;
 
   55        $this->types = $all_super_types[$this->super_type];
 
   58        $this->
setTitle(
$lng->txt(
"sty_" . $a_super_type . 
"_char"));
 
   62        $this->expandable = 
false;
 
   63        $this->hideable = 
false;
 
   64        foreach ($this->types as 
$t) {
 
   66                $this->expandable = 
true;
 
   69                $this->hideable = 
true;
 
   77        $this->
addColumn($this->lng->txt(
"sty_name"), 
"", 
"1");
 
   78        $this->
addColumn($this->lng->txt(
"sty_type"), 
"", 
"");
 
   79        $this->
addColumn($this->lng->txt(
"sty_example"), 
"", 
"");
 
   80        if ($this->hideable) {
 
   81            $this->
addColumn($this->lng->txt(
"sty_hide"), 
"", 
"");      
 
   83        $this->
addColumn($this->lng->txt(
"sty_commands"), 
"", 
"1");
 
   86        $this->
setRowTemplate(
"tpl.style_row.html", 
"Services/Style/Content");
 
   89        if ($this->parent_obj->checkWrite()) {
 
   91            if ($this->hideable) {
 
   98            if ($this->expandable) {
 
  119        $types = $stypes[$this->super_type];
 
  121        if (!in_array($a_set[
"type"], $types)) {
 
  136        $this->tpl->setCurrentBlock(
"checkbox");
 
  137        $this->tpl->setVariable(
"CHAR", $a_set[
"type"] . 
"." .
 
  139                    "." . $a_set[
"class"]);
 
  140        $this->tpl->parseCurrentBlock();
 
  144        if ($this->hideable) {
 
  146                (!empty($this->core_styles[$a_set[
"type"] . 
"." .
 
  148                "." . $a_set[
"class"]]))) {
 
  149                $this->tpl->touchBlock(
"no_hide_checkbox");
 
  151                $this->tpl->setCurrentBlock(
"hide_checkbox");
 
  152                $this->tpl->setVariable(
"CHAR", $a_set[
"type"] . 
"." .
 
  154                    "." . $a_set[
"class"]);
 
  155                if ($this->style->getHideStatus($a_set[
"type"], $a_set[
"class"])) {
 
  156                    $this->tpl->setVariable(
"CHECKED", 
"checked='checked'");
 
  158                $this->tpl->parseCurrentBlock();
 
  163        $this->tpl->setVariable(
 
  168        $this->tpl->setVariable(
"TXT_TAG", $a_set[
"class"]);
 
  169        $this->tpl->setVariable(
"TXT_TYPE", 
$lng->txt(
"sty_type_" . $a_set[
"type"]));
 
  171        if ($this->parent_obj->checkWrite()) {
 
  172            $this->tpl->setVariable(
"TXT_EDIT", $this->lng->txt(
"edit"));
 
  173            $ilCtrl->setParameter($this->parent_obj, 
"tag", $tag_str);
 
  174            $ilCtrl->setParameter($this->parent_obj, 
"style_type", $a_set[
"type"]);
 
  175            $this->tpl->setVariable(
 
  176                "LINK_EDIT_TAG_STYLE",
 
  177                $ilCtrl->getLinkTarget($this->parent_obj, 
"editTagStyle")
 
An exception for terminatinating execution or to throw for unit testing.
static getStyleExampleHTML($a_type, $a_class)
Get style example HTML.
static _isExpandable($a_type)
static _isHideable($a_type)
static _determineTag($a_type)
static _getStyleSuperTypes()
static _getCoreStyles()
Get core styles.
TableGUI class for style editor.
fillRow($a_set)
Standard Version of Fill Row.
__construct($a_parent_obj, $a_parent_cmd, $a_chars, $a_super_type, $a_style)
Constructor.
setEnableHeader($a_enableheader)
Set Enable Header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
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.
disable($a_module_name)
diesables particular modules of table