24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
39 function __construct($a_parent_obj, $a_parent_cmd, $a_style_obj)
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");
60 if ($rbacsystem->checkAccess(
"write", (
int)
$_GET[
"ref_id"]))
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 ($rbacsystem->checkAccess(
"write", (
int)
$_GET[
"ref_id"]))
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"));