Public Member Functions | Data Fields

ilContainerLinkListGUI Class Reference

Public Member Functions

 ilContainerLinkListGUI ()
 Constructor public.
executeCommand ()
 show ()

Data Fields

 $ctrl

Detailed Description

Definition at line 36 of file class.ilContainerLinkListGUI.php.


Member Function Documentation

& ilContainerLinkListGUI::executeCommand (  ) 

Definition at line 51 of file class.ilContainerLinkListGUI.php.

References $cmd.

        {
                $next_class = $this->ctrl->getNextClass($this);
                $cmd = $this->ctrl->getCmd();
                //$this->prepareOutput();

                switch($next_class)
                {                       
                        default:
                                $this->$cmd();

                                break;
                }
                return true;
        }

ilContainerLinkListGUI::ilContainerLinkListGUI (  ) 

Constructor public.

Definition at line 44 of file class.ilContainerLinkListGUI.php.

References $ilCtrl.

        {
                global $ilCtrl;
                
                $this->ctrl =& $ilCtrl;
        }

ilContainerLinkListGUI::show (  ) 

Definition at line 67 of file class.ilContainerLinkListGUI.php.

References $_GET, $lng, $tpl, $tree, $type, exit, and ilUtil::getStyleSheetLocation().

        {
                global $lng, $tree;
                
                $tpl = new ilTemplate("tpl.container_link_help.html", true, true);
                
                $type_ordering = array(
                        "cat", "fold", "crs", "icrs", "icla", "grp", "chat", "frm", "lres",
                        "glo", "webr", "file", "exc",
                        "tst", "svy", "mep", "qpl", "spl");
                        
                $childs = $tree->getChilds($_GET["ref_id"]);
                foreach($childs as $child)
                {
                        if (in_array($child["type"], array("lm", "dbk", "sahs", "htlm")))
                        {
                                $cnt["lres"]++;
                        }
                        else
                        {
                                $cnt[$child["type"]]++;
                        }
                }
                        
                $tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
                $tpl->setVariable("TXT_HELP_HEADER", $lng->txt("help"));
                foreach($type_ordering as $type)
                {
                        $tpl->setCurrentBlock("row");
                        $tpl->setVariable("ROWCOL", "tblrow".((($i++)%2)+1));
                        if ($type != "lres")
                        {
                                $tpl->setVariable("TYPE", $lng->txt("objs_".$type).
                                        " (".((int)$cnt[$type]).")");
                        }
                        else
                        {
                                $tpl->setVariable("TYPE", $lng->txt("learning_resources").
                                        " (".((int)$cnt["lres"]).")");
                        }
                        $tpl->setVariable("TXT_LINK", "[list-".$type."]");
                        $tpl->parseCurrentBlock();
                }
                $tpl->show();
                exit;

        }

Here is the call graph for this function:


Field Documentation

ilContainerLinkListGUI::$ctrl

Definition at line 38 of file class.ilContainerLinkListGUI.php.


The documentation for this class was generated from the following file: