3 declare(strict_types=1);
    30         $this->slm_obj = $a_slm_obj;
    60         $lng = $DIC->language();
    62         $tpl = 
new ilTemplate(
"tpl.tree.html", 
true, 
true, 
"Services/UIComponent/Explorer");
    66         $tpl->
setVariable(
"LINK_TARGET", $this->target . 
"&" . $this->target_get . 
"=" . $a_obj_id);
    67         $tpl->
setVariable(
"TARGET", 
" target=\"" . $this->frame_target . 
"\"");
    70         $this->output .= $tpl->
get();
    76     public function createTarget(
string $a_type, $a_node_id, 
bool $a_highlighted_subtree = 
false, 
bool $a_append_anch = 
true): string 
    81         $a_node_id = ($a_type == 
'+')
    85         return $_SERVER[
"PATH_INFO"] . 
"?cmd=explorer&ref_id=" . $this->slm_obj->getRefId() . 
"&scexpand=" . $a_node_id; 
    88     public function setOutput($a_parent_id, 
int $a_depth = 1, 
int $a_obj_id = 0, $a_highlighted_subtree = 
false): void
   100         $types_do_not_display = array(
"sos", 
"sma");
   101         $types_do_not_load = array(
"srs");
   103         if (!isset($a_parent_id)) {
   104             $ilErr->raiseError(get_class($this) . 
"::setOutput(): No node_id given!", $ilErr->error_obj->WARNING);
   111         foreach ($this->tree->getChilds($a_parent_id, $this->order_column) as 
$key => $child) {
   112             if (in_array($child[
"c_type"], $types_do_not_load)) {
   117             $option[
"parent"] = $child[
"parent"];
   118             $option[
"id"] = $child[
"child"];
   119             $option[
"title"] = $child[
"title"];
   120             $option[
"c_type"] = $child[
"c_type"];
   121             $option[
"obj_id"] = $child[
"obj_id"];
   122             $option[
"desc"] = 
"obj_" . $child[
"c_type"];
   123             $option[
"container"] = 
false;
   124             $option[
"visible"] = !in_array($child[
"c_type"], $types_do_not_display);
   130             $options[
"childs"][] = $option;
   136     public function isVisible($a_ref_id, 
string $a_type): bool 
   138         return $a_type !== 
"sre";
   147         return $this->
createOutput($this->format_options, $jsApi)->get();
   157         $ilBench = $DIC[
'ilBench'];
   159         if (isset($option[
"visible"]) && $option[
"visible"] == 
true) {
   160             $tpl = 
new ilTemplate(
"tpl.sahs_tree_ul.html", 
true, 
true, 
"Modules/ScormAicc");
   163             $tpl = 
new ilTemplate(
"tpl.sahs_tree_free.html", 
true, 
true, 
"Modules/ScormAicc");
   166         if (isset($option[
"childs"]) && is_array($option[
"childs"]) && count($option[
"childs"]) > 0) {
   167             foreach ($option[
"childs"] as 
$key => $ch_option) {
   182         if ($type !== 
"sit") {
   187         return $sc_object->getIdentifierRef() != 
"";
   197         if (!is_array($option) || !isset($option[
"id"])) {
   198             $ilErr->raiseError(get_class($this) . 
"::insertObject(): Missing parameter or wrong datatype! " .
   199                                     "options:" . var_dump($option), $ilErr->error_obj->WARNING);
   202         if ($option[
"c_type"] == 
"sit") {
   205             $id_ref = $sc_object->getIdentifierRef();
   214             $clickable = $this->
isClickable($option[
"c_type"], (
int) $option[
"id"]);
   216             if ($this->output_icons && $clickable) {
   217                 $this->
getOutputIcons($tpl, $option, (
int) $option[
"id"], $scormtype);
   225                 $tpl->
setVariable(
"LINK_TARGET", 
"javascript:void(0);");
   226                 if ($jsApi == 
true) {
   227                     $tpl->
setVariable(
"ONCLICK", 
" onclick=\"parent.API.IliasLaunch('" . $option[
"id"] . 
"');return false;\"");
   229                     $tpl->
setVariable(
"ONCLICK", 
" onclick=\"parent.APIFRAME.setupApi();parent.APIFRAME.API."   230                         . ($scormtype === 
'asset' ? 
'IliasLaunchAsset' : 
'IliasLaunchSahs')
   231                         . 
"('" . $option[
"id"] . 
"');return false;\"");
   254         $lng = $DIC->language();
   258         if ($scormtype === 
'asset') {
   268             $this->slm_obj->getId()
   272         $status = !isset($trdata[
"cmi.core.lesson_status"])
   274                 : $trdata[
"cmi.core.lesson_status"];
   276         $statusChar = strtolower($status[0]);
   277         if ($statusChar === 
"f") {
   279         } elseif ($statusChar === 
"b") {
   281         } elseif ($statusChar === 
"c") {
   282             $status = 
"completed";
   283         } elseif ($statusChar === 
"n") {
   284             $status = 
"not_attempted";
   285         } elseif ($statusChar === 
"p") {
   287         } elseif ($statusChar === 
"r") {
   291         $alt = 
$lng->
txt(
"cont_status") . 
": " .
   292                 $lng->
txt(
"cont_sc_stat_" . str_replace(
" ", 
"_", $status));
   295         if (isset($trdata[
"cmi.core.score.raw"])) {
   296             $alt .= 
", " . 
$lng->
txt(
"cont_credits") .
   297                 ": " . $trdata[
"cmi.core.score.raw"];
   301         if (isset($trdata[
"cmi.core.total_time"]) &&
   302                 $trdata[
"cmi.core.total_time"] !== 
"0000:00:00.00") {
   303             $alt .= 
", " . 
$lng->
txt(
"cont_total_time") .
   304                 ": " . $trdata[
"cmi.core.total_time"];
   307         $tpl->
setVariable(
"ICON_NAME", 
'scoIcon' . $a_node_id);
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
static _lookupScormType(int $a_obj_id)
 
outputIcons(bool $a_icons)
 
get(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
ilGlobalTemplateInterface $tpl
 
isClickable(string $type, int $ref_id=0)
can i click on the module name 
 
setVariable(string $variable, $value='')
Sets the given variable to the given value. 
 
getOutputIcons(\ilTemplate $tpl, array $a_option, int $a_node_id, string $scormtype="sco")
tpl is filled with option state 
 
__construct(string $a_target, ilObjSCORMLearningModule &$a_slm_obj)
 
createOutputArray(int $a_parent_id, array $options=array())
recursive creating of outputs 
 
setVariable($variable, $value='')
Sets a variable value. 
 
static _lookupTrackingDataOfUser(int $a_item_id, int $a_user_id=0, int $a_obj_id=0)
 
setOrderColumn(string $a_column)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
showChilds($a_parent_id)
determines wether the childs of an object should be shown or not note: this standard implementation a...
 
getOutput(bool $jsApi=false)
Creates output template. 
 
createTarget(string $a_type, $a_node_id, bool $a_highlighted_subtree=false, bool $a_append_anch=true)
Creates Get Parameter. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
class for explorer view in admin frame 
 
buildFrameTarget(string $a_type, $a_child=0, $a_obj_id=0)
 
static _lookupIdByIdRef(string $a_id_ref, int $a_slm_id)
 
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
checkPermissions(bool $a_check)
 
static shortenTextExtended(string $a_str, int $a_len, bool $a_dots=false, bool $a_next_blank=false, bool $a_keep_extension=false)
 
insertObject(array $option, ilTemplate $tpl, bool $jsApi)
insert the option data in $tpl 
 
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block. 
 
formatHeader(ilTemplate $tpl, $a_obj_id, array $a_option)
overwritten method from base class 
 
ilObjSCORMLearningModule $slm_obj
id of root folder 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setOutput($a_parent_id, int $a_depth=1, int $a_obj_id=0, $a_highlighted_subtree=false)
 
isVisible($a_ref_id, string $a_type)
 
createOutput(array $option, bool $jsApi)
recursive creation of output templates