24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
54 public function __construct($a_parent_obj, $a_parent_cmd, $a_style_obj)
58 $this->ctrl = $DIC->ctrl();
59 $this->lng = $DIC->language();
60 $this->access = $DIC->access();
61 $this->rbacsystem = $DIC->rbac()->system();
63 $lng = $DIC->language();
64 $ilAccess = $DIC->access();
65 $lng = $DIC->language();
68 parent::__construct($a_parent_obj, $a_parent_cmd);
72 $this->style_obj = $a_style_obj;
75 $this->
addColumn($this->lng->txt(
"sty_order"));
76 $this->
addColumn($this->lng->txt(
"sty_query"),
"");
77 $this->
addColumn($this->lng->txt(
"actions"),
"");
80 $this->
setRowTemplate(
"tpl.style_media_query_row.html",
"Services/Style/Content");
85 if ($this->parent_obj->checkWrite()) {
98 $this->
setData($this->style_obj->getMediaQueries());
111 $this->tpl->setVariable(
"MQUERY", $a_set[
"mquery"]);
112 $this->tpl->setVariable(
"MQID", $a_set[
"id"]);
113 $this->tpl->setVariable(
"ORDER_NR", $a_set[
"order_nr"]);
115 if ($this->parent_obj->checkWrite()) {
116 $this->tpl->setVariable(
"TXT_EDIT",
$lng->txt(
"edit"));
117 $ilCtrl->setParameter($this->parent_obj,
"mq_id", $a_set[
"id"]);
118 $this->tpl->setVariable(
120 $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.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.