53 $this->heading = $a_val;
93 $this->footer = $a_val;
113 $this->panel_style = $a_val;
133 $this->heading_style = $a_val;
153 $this->footer_style = $a_val;
173 $tpl =
new ilTemplate(
"tpl.panel.html",
true,
true,
"Services/UIComponent/Panel");
175 $head_outer_div_style =
"";
177 $tpl->setCurrentBlock(
"heading");
182 $tpl->setVariable(
"HEAD_DIV_STYLE",
"panel-heading ilBlockHeader");
183 $tpl->setVariable(
"HEAD_H3_STYLE",
"ilBlockHeader");
184 $head_outer_div_style =
"il_Block";
188 $tpl->setVariable(
"HEAD_DIV_STYLE",
"panel-heading ilHeader");
189 $tpl->setVariable(
"HEAD_H3_STYLE",
"ilHeader");
193 $tpl->parseCurrentBlock();
199 $tpl->setCurrentBlock(
"footer");
204 $tpl->setVariable(
"FOOT_DIV_STYLE",
"panel-footer ilBlockInfo");
208 $tpl->parseCurrentBlock();
213 $tpl->setVariable(
"PANEL_STYLE",
"panel panel-default " . $head_outer_div_style);
217 $tpl->setVariable(
"PANEL_STYLE",
"panel panel-primary " . $head_outer_div_style);
An exception for terminatinating execution or to throw for unit testing.
getPanelStyle()
Get panel style.
getHeadingStyle()
Get heading style.
const PANEL_STYLE_SECONDARY
const HEADING_STYLE_SUBHEADING
setHeading($a_val)
Set heading.
setFooterStyle($a_val)
Set footer style.
const HEADING_STYLE_BLOCK
__construct()
Constructor.
getFooterStyle()
Get footer style.
setPanelStyle($a_val)
Set panel style.
static getInstance()
Get instance.
setHeadingStyle($a_val)
Set heading style.
setFooter($a_val)
Set footer.
const PANEL_STYLE_PRIMARY
special template class to simplify handling of ITX/PEAR