42     public function __construct(
string $a_target, 
int $a_top_node = 0)
    47         $this->
lng = $DIC->language();
    49         $this->obj_definition = $DIC[
"objDefinition"];
    50         $this->rbacsystem = $DIC->rbac()->system();
    51         $this->db = $DIC->database();
    52         $this->
user = $DIC->user();
    53         $this->
access = $DIC->access();
    54         $tree = $DIC->repositoryTree();
    55         $ilCtrl = $DIC->ctrl();
    56         $lng = $DIC->language();
    58         $objDefinition = $DIC[
"objDefinition"];
    60         $this->
ctrl = $ilCtrl;
    63         $this->force_open_path = [];
    64         $this->request = $DIC->repository()->internal()->gui()->standardRequest();
    70         $this->order_column = 
"title";
    75         if (
$ilSetting->get(
"repository_tree_pres") == 
"" ||
    76             (
$ilSetting->get(
"rep_tree_limit_grp_crs") && $a_top_node === 0)) {
    77             foreach ($objDefinition->getExplorerContainerTypes() as $type) {
    82         } elseif (
$ilSetting->get(
"repository_tree_pres") === 
"all_types") {
    83             foreach ($objDefinition->getAllRBACObjects() as $rtype) {
    96         $this->force_open_path = $a_path;
   106         $ref_id = $this->request->getRefId();
   110                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", $a_node_id);
   111                 $link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", 
"");
   112                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", 
$ref_id);
   118                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", $a_node_id);
   119                 $link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", 
"redirect");
   120                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", 
$ref_id);
   124                 $ilCtrl->setParameterByClass(
"ilobjgroupgui", 
"ref_id", $a_node_id);
   125                 $link = $ilCtrl->getLinkTargetByClass([
"ilrepositorygui", 
"ilobjgroupgui"], 
"");
   126                 $ilCtrl->setParameterByClass(
"ilobjgroupgui", 
"ref_id", 
$ref_id);
   130                 $ilCtrl->setParameterByClass(
"ilobjcoursegui", 
"ref_id", $a_node_id);
   131                 $link = $ilCtrl->getLinkTargetByClass([
"ilrepositorygui", 
"ilobjcoursegui"], 
"view");
   132                 $ilCtrl->setParameterByClass(
"ilobjcoursegui", 
"ref_id", 
$ref_id);
   136                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", $a_node_id);
   137                 $link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", 
"infoScreen");
   138                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", 
$ref_id);
   142                 $ilCtrl->setParameterByClass(
"ilobjstudyprogrammegui", 
"ref_id", $a_node_id);
   143                 $link = $ilCtrl->getLinkTargetByClass(
"ilobjstudyprogrammegui", 
"view");
   144                 $ilCtrl->setParameterByClass(
"ilobjstudyprogrammegui", 
"ref_id", 
$ref_id);
   152     public function getImage(
string $a_name, 
string $a_type = 
"", $a_obj_id = 
""): string
   154         if ($a_type !== 
"") {
   158         return parent::getImage($a_name);
   180                 $query = sprintf(
"SELECT * FROM tst_tests WHERE obj_fi=%s", $obj_id);
   183                     return (
bool) $row->complete;
   192                 $query = sprintf(
"SELECT * FROM svy_svy WHERE obj_fi=%s", $obj_id);
   195                     return (
bool) $row->complete;
   218                     if ($type === 
"lm") {
   225                     if ($type === 
"htlm") {
   232                     if ($type === 
"sahs") {
   239                     if ($type === 
"glo") {
   256     public function showChilds($a_parent_id, 
int $a_obj_id = 0): bool
   260         if ($a_parent_id == 0) {
   273     public function isVisible($a_ref_id, 
string $a_type): bool
   279         if (!$ilAccess->checkAccess(
'visible', 
'', $a_ref_id)) {
   285         if (!$container_parent_id) {
   289         if ($container_parent_id) {
   291             if ($container_parent_id !== $a_ref_id && 
$ilSetting->get(
"repository_tree_pres") === 
"all_types") {
   293                 if (!isset($this->session_materials[$container_parent_id])) {
   297                 if (!isset($this->item_group_items[$container_parent_id])) {
   300                 if (in_array($a_ref_id, $this->session_materials[$container_parent_id])) {
   303                 if (in_array($a_ref_id, $this->item_group_items[$container_parent_id])) {
   335         $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", 
"1");
   338             $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", 
"")
   340         $ilCtrl->setParameterByClass(
   343             $this->request->getRefId()
   352     public function sortNodes(array $a_nodes, $a_parent_obj_id): array
   356         if ($a_parent_obj_id > 0) {
   359             $parent_type = 
"dummy";
   360             $this->type_grps[
"dummy"] = [
"root" => 
"dummy"];
   363         if (empty($this->type_grps[$parent_type])) {
   364             $this->type_grps[$parent_type] = $objDefinition->getGroupedRepositoryObjectTypes($parent_type);
   368         foreach ($a_nodes as $node) {
   369             $g = $objDefinition->getGroupOfObj($node[
"type"]);
   373             $group[$g][] = $node;
   377         foreach ($this->type_grps[$parent_type] as $t => $g) {
   378             if (array_key_exists($t, $group)
   379                 && is_array($group[$t])) {
   382                 $group = $sort->sortItems($group);
   384                 foreach ($group[$t] as $k => $item) {
   395         if (in_array($a_obj_id, $this->force_open_path)) {
 
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
setSessionExpandVariable(string $a_var_name="expand")
 
formatHeader(ilTemplate $tpl, $a_obj_id, array $a_option)
 
getNodeData(int $a_node_id, ?int $a_tree_pk=null)
get all information of a node. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setFiltered(bool $a_bool)
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
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...
 
isVisible($a_ref_id, string $a_type)
 
static _lookupOnline(int $a_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ilGlobalTemplateInterface $tpl
 
const IL_FM_POSITIVE
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
showChilds($a_parent_id, int $a_obj_id=0)
 
static _getItemsOfContainer(int $a_ref_id)
 
static _lookupObjId(int $ref_id)
 
StandardGUIRequest $request
 
buildLinkTarget($a_node_id, string $a_type)
note: most of this stuff is used by ilCourseContentInterface too 
 
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
 
setForceOpenPath(array $a_path)
set force open path 
 
checkForParentType(int $a_ref_id, string $a_type, bool $a_exclude_source_check=false)
Check for parent type e.g check if a folder (ref_id 3) is in a parent course obj => checkForParentTyp...
 
setVariable($variable, $value='')
Sets a variable value. 
 
static _getItemsOfContainer(int $a_ref_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _getStaticLink(?int $a_ref_id, string $a_type='', bool $a_fallback_goto=true, string $append="")
 
static _lookupObjectId(int $ref_id)
 
class for explorer view in admin frame 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
static _checkAllConditionsOfTarget(int $a_target_ref_id, int $a_target_id, string $a_target_type="", int $a_usr_id=0)
checks wether all conditions of a target object are fulfilled 
 
getImage(string $a_name, string $a_type="", $a_obj_id="")
 
static _getInstance(int $a_obj_id)
 
isClickable(string $type, int $ref_id=0)
 
addFilter(string $a_item)
 
static _isAccessible(int $a_ref_id)
Check if target is accessible and not deleted. 
 
static _lookupType(int $id, bool $reference=false)
 
setFilterMode(int $a_mode=IL_FM_NEGATIVE)
 
Class ilObjSCORMLearningModule. 
 
sortNodes(array $a_nodes, $a_parent_obj_id)
 
ilObjectDefinition $obj_definition