Public Member Functions

ilAICCCourseGUI Class Reference

Inheritance diagram for ilAICCCourseGUI:
Collaboration diagram for ilAICCCourseGUI:

Public Member Functions

 ilAICCCourseGUI ($a_id)
 view ()

Detailed Description

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


Member Function Documentation

ilAICCCourseGUI::ilAICCCourseGUI ( a_id  ) 

Definition at line 39 of file class.ilAICCCourseGUI.php.

References $files, and ilAICCObjectGUI::ilAICCObjectGUI().

        {
                parent::ilAICCObjectGUI();
                $this->sc_object =& new ilAICCCourse($a_id);
                $files =& $this->sc_object->getFiles();
        }

Here is the call graph for this function:

ilAICCCourseGUI::view (  ) 

Definition at line 46 of file class.ilAICCCourseGUI.php.

References $files, and ilAICCObjectGUI::displayParameter().

        {
                $this->tpl = new ilTemplate("tpl.main.html", true, true);
                $this->tpl->addBlockFile("CONTENT", "content", "tpl.aicc_obj.html", true);
                $this->displayParameter($this->lng->txt("cont_import_id"),
                        $this->sc_object->getImportId());
                $this->displayParameter($this->lng->txt("cont_resource_type"),
                        $this->sc_object->getResourceType());
                $this->displayParameter($this->lng->txt("cont_scorm_type"),
                        $this->sc_object->getScormType());
                $this->displayParameter($this->lng->txt("cont_href"),
                        $this->sc_object->getHref());
                $this->displayParameter($this->lng->txt("cont_xml_base"),
                        $this->sc_object->getXmlBase());
                $this->tpl->setCurrentBlock("partable");
                $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_resource"));
                $this->tpl->parseCurrentBlock();

                // files
                $files =& $this->sc_object->getFiles();
                for ($i=0; $i<count($files); $i++)
                {
                        $this->displayParameter($this->lng->txt("cont_href"),
                                $files[$i]->getHRef());
                }
                $this->tpl->setCurrentBlock("partable");
                $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_files"));
                $this->tpl->parseCurrentBlock();

                // dependencies
                $deps =& $this->sc_object->getDependencies();
                for ($i=0; $i<count($deps); $i++)
                {
                        $this->displayParameter($this->lng->txt("cont_id_ref"),
                                $deps[$i]->getIdentifierRef());
                }
                $this->tpl->setCurrentBlock("partable");
                $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_dependencies"));
                $this->tpl->parseCurrentBlock();
        }

Here is the call graph for this function:


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