ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORMResourceGUI Class Reference

GUI class for SCORM Resource element. More...

+ Inheritance diagram for ilSCORMResourceGUI:
+ Collaboration diagram for ilSCORMResourceGUI:

Public Member Functions

 ilSCORMResourceGUI ($a_id)
 view ()
- Public Member Functions inherited from ilSCORMObjectGUI
 ilSCORMObjectGUI ($a_id=0)
getInstance ($a_id)
 get instance of specialized GUI class
 displayParameter ($a_name, $a_value)

Additional Inherited Members

- Data Fields inherited from ilSCORMObjectGUI
 $sc_object
 $tpl
 $lng

Detailed Description

GUI class for SCORM Resource element.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilSCORMResourceGUI.php 12711 2006-12-01 15:24:41Z akill

Definition at line 35 of file class.ilSCORMResourceGUI.php.

Member Function Documentation

ilSCORMResourceGUI::ilSCORMResourceGUI (   $a_id)

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

References ilSCORMObjectGUI\ilSCORMObjectGUI().

{
$this->sc_object =& new ilSCORMResource($a_id);
$files =& $this->sc_object->getFiles();
}

+ Here is the call graph for this function:

ilSCORMResourceGUI::view ( )

Definition at line 45 of file class.ilSCORMResourceGUI.php.

References ilSCORMObjectGUI\displayParameter().

{
$this->tpl = new ilTemplate("tpl.main.html", true, true);
$this->tpl->addBlockFile("CONTENT", "content", "tpl.scorm_obj.html", "Modules/ScormAicc");
$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: