24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
39 function __construct($a_parent_obj, $a_parent_cmd, $a_style_obj)
43 parent::__construct($a_parent_obj, $a_parent_cmd);
45 $this->
setTitle($lng->txt(
"sty_media_queries"));
47 $this->style_obj = $a_style_obj;
50 $this->
addColumn($this->lng->txt(
"sty_order"));
51 $this->
addColumn($this->lng->txt(
"sty_query"),
"");
52 $this->
addColumn($this->lng->txt(
"actions"),
"");
55 $this->
setRowTemplate(
"tpl.style_media_query_row.html",
"Services/Style/Content");
60 if ($this->parent_obj->checkWrite())
63 $this->
addMultiCommand(
"deleteMediaQueryConfirmation", $lng->txt(
"delete"));
74 $this->
setData($this->style_obj->getMediaQueries());
84 $this->tpl->setVariable(
"MQUERY", $a_set[
"mquery"]);
85 $this->tpl->setVariable(
"MQID", $a_set[
"id"]);
86 $this->tpl->setVariable(
"ORDER_NR", $a_set[
"order_nr"]);
88 if ($this->parent_obj->checkWrite())
90 $this->tpl->setVariable(
"TXT_EDIT", $lng->txt(
"edit"));
91 $ilCtrl->setParameter($this->parent_obj,
"mq_id", $a_set[
"id"]);
92 $this->tpl->setVariable(
"LINK_EDIT_MQUERY",
93 $ilCtrl->getLinkTarget($this->parent_obj,
"editMediaQuery"));
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setDescription($a_val)
Set description.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
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.