30        function addEntry($a_txt, $a_href, $a_status = self::STATUS_NO_STATUS, $a_highlighted = 
false, $a_info_texts = array())
 
   32                $this->items[] = array(
 
   35                        "status" => $a_status,
 
   36                        "highlighted" => $a_highlighted,
 
   37                        "info" => $a_info_texts
 
   48                $this->heading = $a_val;
 
   58                return $this->heading;
 
   68                include_once(
"./Services/UIComponent/Panel/classes/class.ilPanelGUI.php");
 
   73                include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
 
   75                foreach ($this->items as $i)
 
   77                        $item_tpl = 
new ilTemplate(
"tpl.checklist_item.html", 
true, 
true, 
"Services/UIComponent/Checklist");
 
   79                        if (!is_array($i[
"info"]) && $i[
"info"] != 
"")
 
   81                                $i[
"info"] = array($i[
"info"]);
 
   83                        if (is_array($i[
"info"]) && count($i[
"info"]) > 0)
 
   85                                foreach ($i[
"info"] as 
$info)
 
   87                                        $item_tpl->setCurrentBlock(
"info");
 
   88                                        $item_tpl->setVariable(
"INFO_MSG", 
$info);
 
   89                                        $item_tpl->parseCurrentBlock();
 
   93                        $item_tpl->setVariable(
"TXT_STEP", $i[
"txt"]);
 
   98                                        $item_tpl->setVariable(
"STATUS_ALT", 
$lng->txt(
"uic_checklist_ok"));
 
  103                                        $item_tpl->setVariable(
"STATUS_ALT", 
$lng->txt(
"uic_checklist_not_ok"));
 
  106                        $list->addEntry($item_tpl->get(), $i[
"href"], 
"", 
"", $i[
"highlighted"] ? 
"ilHighlighted" : 
"");
 
  108                $ch_tpl = 
new ilTemplate(
"tpl.checklist.html", 
true, 
true, 
"Services/UIComponent/Checklist");
 
  109                $ch_tpl->setVariable(
"LIST", $list->getHTML());
 
  110                $panel->setBody($ch_tpl->get());
 
  111                return $panel->getHTML();
 
An exception for terminatinating execution or to throw for unit testing.
addEntry($a_txt, $a_href, $a_status=self::STATUS_NO_STATUS, $a_highlighted=false, $a_info_texts=array())
Add item.
setHeading($a_val)
Set heading.
const PANEL_STYLE_SECONDARY
const HEADING_STYLE_BLOCK
static getInstance()
Get instance.
special template class to simplify handling of ITX/PEAR
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)