12require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
 
   37                parent::ilExplorer($a_target);
 
   39                $this->root_id = $this->tree->readRootId();
 
   40                $this->order_column = 
"title";
 
   42                $this->
setTitle($lng->txt(
"overview"));
 
   56                if (
$_GET[
"admin_mode"] == 
"settings")
 
   61                $tpl->setCurrentBlock(
"icon");
 
   63                $tpl->setVariable(
"TXT_ALT_IMG", 
$lng->txt(
"repository"));
 
   64                $tpl->parseCurrentBlock();
 
   66                $class_name = $objDefinition->getClassName(
"root");
 
   67                $class = strtolower(
"ilObj".$class_name.
"GUI");
 
   68                $this->ctrl->setParameterByClass($class, 
"ref_id", ROOT_FOLDER_ID);
 
   69                $link = $this->ctrl->getLinkTargetByClass($class, 
"view");
 
   71                $tpl->setCurrentBlock(
"link");
 
   72                $tpl->setVariable(
"TITLE", 
$lng->txt(
"repository"));
 
   73                $tpl->setVariable(
"LINK_TARGET", $link);
 
   74                $tpl->setVariable(
"TARGET", 
" target=\"content\"");
 
   75                $tpl->parseCurrentBlock();
 
   77                $tpl->setCurrentBlock(
"element");
 
   78                $tpl->parseCurrentBlock();
 
   89                if ($a_type == 
"" || $a_type == 
"xxx")
 
   93                if (
$_GET[
"admin_mode"] == 
"settings" && $a_node_id == ROOT_FOLDER_ID)
 
   95                        $this->ctrl->setParameterByClass(
"iladministrationgui", 
"ref_id", ROOT_FOLDER_ID);
 
   96                        $this->ctrl->setParameterByClass(
"iladministrationgui", 
"admin_mode", 
"repository");
 
   97                        $link = $this->ctrl->getLinkTargetByClass(
"iladministrationgui", 
"frameset");
 
   98                        $this->ctrl->setParameterByClass(
"iladministrationgui", 
"admin_mode", 
"settings");
 
  102                        $class_name = $objDefinition->getClassName($a_type);
 
  103                        $class = strtolower(
"ilObj".$class_name.
"GUI");
 
  104                        $this->ctrl->setParameterByClass($class, 
"ref_id", $a_node_id);
 
  105                        $link = $this->ctrl->getLinkTargetByClass($class, 
"view");
 
  115                if (
$_GET[
"admin_mode"] == 
"settings" && $a_child == ROOT_FOLDER_ID)
 
  121                        return $this->frame_target;
 
  129        function getImage($a_name, $a_type = 
"", $a_obj_id = 
"")
 
  136                return parent::getImage($a_name);
 
  143                return $rbacsystem->checkAccess(
'read',$a_ref_id);
 
  150                if ($this->tree->getParentId($a_ref_id) == ROOT_FOLDER_ID && $a_type != 
"adm" &&
 
  151                        $_GET[
"admin_mode"] != 
"repository")
 
  158                if ($a_type == 
"" || $a_type == 
"xxx")
 
  163                $ilBench->start(
"Explorer", 
"setOutput_isVisible");
 
  164                $visible = $rbacsystem->checkAccess(
'visible',$a_ref_id);
 
  165                if ($a_type == 
"rolf" && $a_ref_id != ROLE_FOLDER_ID)
 
  170                $ilBench->stop(
"Explorer", 
"setOutput_isVisible");
 
  179                global 
$lng,$rbacsystem;
 
  181                if ($a_parent_id == SYSTEM_FOLDER_ID)
 
  183                        $new_objects = array();
 
  184                        foreach($a_objects as $object)
 
  186                                $new_objects[$object[
"title"].
":".$object[
"child"]]
 
  192                        if($rbacsystem->checkAccess(
'write',SYSTEM_FOLDER_ID))
 
  194                                $new_objects[
$lng->txt(
"repository_admin").
":".ROOT_FOLDER_ID] =
 
  197                                        "child" => ROOT_FOLDER_ID,
 
  198                                        "ref_id" => ROOT_FOLDER_ID,
 
  201                                        "title" => 
$lng->txt(
"repository_admin"),
 
  202                                        "description" => 
$lng->txt(
"repository_admin_desc"),
 
  203                                        "desc" => 
$lng->txt(
"repository_admin_desc"),
 
  219                if ($a_parent_id == ROOT_FOLDER_ID)
 
  221                        if ($this->rootfolder_shown == 
true)
 
  225                        $this->rootfolder_shown = 
true;
 
  236                if ($a_obj_id == SYSTEM_FOLDER_ID)
 
forceExpanded($a_obj_id)
force expansion of node
showChilds($a_parent_id, $a_obj_id)
formatHeader(&$tpl, $a_obj_id, $a_option)
overwritten method from base class @access public
getImage($a_name, $a_type="", $a_obj_id="")
get image path
isVisible($a_ref_id, $a_type)
buildLinkTarget($a_node_id, $a_type)
build link target
modifyChilds($a_parent_id, $a_objects)
modify children of parent ()
isClickable($a_type, $a_ref_id)
check if links for certain object type are activated
ilAdministrationExplorer($a_target)
Constructor @access public.
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
get frame target (may be overwritten by derived classes)
Class ilExplorer class for explorer view in admin frame.
setSessionExpandVariable($a_var_name="expand")
set name of expand session variable
setTitle($a_val)
Set title.
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)