32 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
33 require_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCTree.php");
34 require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMExplorer.php");
47 parent::ilExplorer($a_target);
48 $this->slm_obj =& $a_slm_obj;
49 $this->tree =
new ilAICCTree($a_slm_obj->getId());
72 return (strlen($block_object->getDescription())>0);
154 if (!isset($a_node_id) or !is_array($a_option))
156 $this->
ilias->raiseError(get_class($this).
"::formatObject(): Missing parameter or wrong datatype! ".
157 "node_id: ".$a_node_id.
" options:".var_dump($a_option),$this->
ilias->error_obj->WARNING);
160 $tpl =
new ilTemplate(
"tpl.sahs_tree.html",
true,
true,
"Modules/ScormAicc");
162 if ($a_option[
"c_type"]==
"sos")
165 if ($a_option[
"c_type"]==
"srs")
168 if (is_array($a_option[
"tab"])) {
169 foreach ($a_option[
"tab"] as $picture)
172 if ($picture ==
'plus')
175 $tpl->setCurrentBlock(
"expander");
176 $tpl->setVariable(
"LINK_TARGET_EXPANDER",
$target);
178 $tpl->parseCurrentBlock();
182 if ($picture ==
'minus' && $this->show_minus)
185 $tpl->setCurrentBlock(
"expander");
186 $tpl->setVariable(
"LINK_TARGET_EXPANDER",
$target);
188 $tpl->parseCurrentBlock();
195 $tpl->setCurrentBlock(
"lines");
197 $tpl->parseCurrentBlock();
202 if ($this->output_icons) {
203 if ($this->
isClickable($a_option[
"c_type"], $a_node_id) && !$a_option[
"c_type"]==
"sbl")
207 if ($this->
isClickable($a_option[
"c_type"], $a_node_id))
209 $tpl->setCurrentBlock(
"link");
214 $frame_target = $this->
buildFrameTarget($a_option[
"c_type"], $a_node_id, $a_option[
"obj_id"]);
215 if ($frame_target !=
"")
226 if ($a_option[
"c_type"]==
"sbl") {
228 $tpl->setVariable(
"TARGET",
" target=\"".$frame_target.
"\"");
234 $tpl->setVariable(
"LINK_TARGET",
"javascript:void(0);");
235 $tpl->setVariable(
"ONCLICK",
" onclick=\"parent.APIFRAME.setupApi();parent.APIFRAME.API.IliasLaunchSahs('".$a_node_id.
"');return false;\"");
241 $tpl->parseCurrentBlock();
245 $tpl->setCurrentBlock(
"text");
247 $tpl->parseCurrentBlock();
251 $tpl->setCurrentBlock(
"row");
252 $tpl->parseCurrentBlock();
254 $this->output[] =
$tpl->get();
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
get frame target (may be overwritten by derived classes)
buildLinkTarget($a_node_id, $a_type)
get link target (may be overwritten by derived classes)
static shortenText($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
checkPermissions($a_check)
check permissions via rbac
getOutputIcons(&$tpl, $a_option, $a_node_id, $scormtype="sco")
setOrderColumn($a_column)
set the order column public
formatItemTable(&$tpl, $a_id, $a_type)
formatObject($a_node_id, $a_option)
Creates output recursive method private.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
createTarget($a_type, $a_child)
Creates Get Parameter private.
special template class to simplify handling of ITX/PEAR
redirection script todo: (a better solution should control the processing via a xml file) ...
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
ilAICCExplorer($a_target, &$a_slm_obj)
Constructor public.
isClickable($a_type, $a_id=0)
outputIcons($a_icons)
output icons
readRootId()
read root id from database