ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilSCORM2004AssetGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once("./Modules/Scorm2004/classes/class.ilSCORM2004ScoGUI.php");
5require_once("./Modules/Scorm2004/classes/class.ilSCORM2004Asset.php");
6
20{
24 protected $tabs;
25
29 protected $tpl;
30
34 protected $lng;
35
39 protected $help;
40
45 public function __construct($a_slm_obj, $a_node_id = 0)
46 {
47 global $DIC;
48
49 $this->tabs = $DIC->tabs();
50 $this->tpl = $DIC["tpl"];
51 $this->lng = $DIC->language();
52 $this->help = $DIC["ilHelp"];
53 $ilCtrl = $DIC->ctrl();
54
55 $ilCtrl->saveParameter($this, "obj_id");
56 $this->ctrl = $ilCtrl;
57
58 parent::__construct($a_slm_obj, $a_node_id);
59 }
60
64 public function getType()
65 {
66 return "ass";
67 }
68
72 public function showProperties()
73 {
74 return;
75 }
76
80 public function updateProperties()
81 {
82 return;
83 }
84
88 public function setTabs()
89 {
90 $ilTabs = $this->tabs;
91 $ilCtrl = $this->ctrl;
94 $ilHelp = $this->help;
95
96 $ilHelp->setScreenIdComponent("sahsed");
97
98 // subelements
99 $ilTabs->addTarget(
100 "sahs_organization",
101 $ilCtrl->getLinkTarget($this, 'showOrganization'),
102 "showOrganization",
103 get_class($this)
104 );
105
106 // questions
107 $ilTabs->addTarget(
108 "sahs_questions",
109 $ilCtrl->getLinkTarget($this, 'sahs_questions'),
110 "sahs_questions",
111 get_class($this)
112 );
113
114 // resources
115 $ilTabs->addTarget(
116 "cont_files",
117 $ilCtrl->getLinkTarget($this, 'sco_resources'),
118 "sco_resources",
119 get_class($this)
120 );
121
122 // metadata
123 $ilTabs->addTarget(
124 "meta_data",
125 $ilCtrl->getLinkTargetByClass("ilmdeditorgui", ''),
126 "",
127 "ilmdeditorgui"
128 );
129
130 // export
131 /*
132 $ilTabs->addTarget("export",
133 $ilCtrl->getLinkTarget($this, "showExportList"), "showExportList",
134 get_class($this));
135
136 // import
137 $ilTabs->addTarget("import",
138 $ilCtrl->getLinkTarget($this, "import"), "import",
139 get_class($this));
140 */
141 // preview
142 $ilTabs->addNonTabbedLink(
143 "preview",
144 $lng->txt("cont_preview"),
145 $ilCtrl->getLinkTarget($this, 'sco_preview'),
146 "_blank"
147 );
148
149 $tpl->setTitleIcon(ilUtil::getImagePath("icon_ass.svg"));
150 $tpl->setTitle(
151 $lng->txt("obj_ass") . ": " . $this->node_object->getTitle()
152 );
153 }
154}
An exception for terminatinating execution or to throw for unit testing.
Class ilSCORM2004AssetGUI.
updateProperties()
Overwrite learning objectives update function.
__construct($a_slm_obj, $a_node_id=0)
Constructor @access public.
showProperties()
Overwrite learning objectives editing function.
Class ilSCORM2004ScoGUI.
$ctrl
Constructor @access public.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
global $DIC
Definition: goto.php:24
help()
Definition: help.php:2
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc