Public Member Functions

ilObjRootFolderGUI Class Reference

Inheritance diagram for ilObjRootFolderGUI:
Collaboration diagram for ilObjRootFolderGUI:

Public Member Functions

 ilObjRootFolderGUI ($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 importCategoriesFormObject ()
 import categories form
 importCancelledObject ()
 import cancelled
 importCategoriesObject ()
 import categories
 importCategoriesWithRolObject ()
 import categories
 getTabs (&$tabs_gui)
 common tabs for all container objects (should be called at the end of child getTabs() method
executeCommand ()
 execute command note: this method is overwritten in all container objects
 setTitleAndDescription ()
 called by prepare output

Detailed Description

Definition at line 40 of file class.ilObjRootFolderGUI.php.


Member Function Documentation

& ilObjRootFolderGUI::executeCommand (  ) 

execute command note: this method is overwritten in all container objects

Reimplemented from ilContainerGUI.

Definition at line 107 of file class.ilObjRootFolderGUI.php.

References $cmd, $rbacsystem, ilContainerGUI::forwardToPageObject(), ilObjStyleSheet::getContentStylePath(), infoPanel(), ilObjectGUI::prepareOutput(), sendInfo(), ilObjectGUI::setLocator(), ilContainerGUI::setPageEditorTabs(), and setTitleAndDescription().

        {
                global $rbacsystem;

                $next_class = $this->ctrl->getNextClass($this);
                $cmd = $this->ctrl->getCmd();
                
                switch($next_class)
                {
                        case 'ilcontainerlinklistgui':
                                include_once("./classes/class.ilContainerLinkListGUI.php");
                                $link_list_gui =& new ilContainerLinkListGUI();
                                $ret =& $this->ctrl->forwardCommand($link_list_gui);
                                break;

                                // container page editing
                        case "ilpageobjectgui":
                                $this->tpl->getStandardTemplate();
                                $this->setLocator();
                                sendInfo();
                                infoPanel();
                                //$this->prepareOutput(false);
                                $ret = $this->forwardToPageObject();
                                $this->setTitleAndDescription();
                                $this->setPageEditorTabs();
                                return $ret;
                                break;

                        case 'ilpermissiongui':
                                $this->prepareOutput();
                                include_once("./classes/class.ilPermissionGUI.php");
                                $perm_gui =& new ilPermissionGUI($this);
                                $ret =& $this->ctrl->forwardCommand($perm_gui);
                                break;
                        
                        default:
                                $this->prepareOutput();
                                include_once("classes/class.ilObjStyleSheet.php");
                                $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
                                        ilObjStyleSheet::getContentStylePath(0));

                                if(!$cmd)
                                {
                                        $cmd = "render";
                                }

                                $cmd .= "Object";
                                $this->$cmd();

                                break;
                }
                return true;
        }

Here is the call graph for this function:

ilObjRootFolderGUI::getTabs ( &$  tabs_gui  ) 

common tabs for all container objects (should be called at the end of child getTabs() method

Reimplemented from ilContainerGUI.

Definition at line 89 of file class.ilObjRootFolderGUI.php.

References $rbacsystem.

        {
                global $rbacsystem;

                $this->ctrl->setParameter($this,"ref_id",$this->ref_id);

                if ($rbacsystem->checkAccess('read',$this->ref_id))
                {
                        $tabs_gui->addTarget("view_content",
                                $this->ctrl->getLinkTarget($this, ""),
                                array("", "view", "render"));
                }
                
                // parent tabs (all container: edit_permission, clipboard, trash
                parent::getTabs($tabs_gui);

        }

ilObjRootFolderGUI::ilObjRootFolderGUI ( a_data,
a_id,
a_call_by_reference = true,
a_prepare_output = true 
)

Constructor public.

Definition at line 46 of file class.ilObjRootFolderGUI.php.

References ilContainerGUI::ilContainerGUI().

        {
                $this->type = "root";
                $this->ilContainerGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
        }

Here is the call graph for this function:

ilObjRootFolderGUI::importCancelledObject (  ) 

import cancelled

private

Definition at line 65 of file class.ilObjRootFolderGUI.php.

References sendInfo().

        {
                sendInfo($this->lng->txt("action_aborted"),true);
                $this->ctrl->returnToParent($this);
        }

Here is the call graph for this function:

ilObjRootFolderGUI::importCategoriesFormObject (  ) 

import categories form

Definition at line 55 of file class.ilObjRootFolderGUI.php.

References ilObjCategoryGUI::_importCategoriesForm().

        {
                ilObjCategoryGUI::_importCategoriesForm($this->ref_id, $this->tpl);
        }

Here is the call graph for this function:

ilObjRootFolderGUI::importCategoriesObject (  ) 

import categories

Definition at line 74 of file class.ilObjRootFolderGUI.php.

References ilObjCategoryGUI::_importCategories().

        {
          ilObjCategoryGUI::_importCategories($this->ref_id,0);
        }

Here is the call graph for this function:

ilObjRootFolderGUI::importCategoriesWithRolObject (  ) 

import categories

Definition at line 83 of file class.ilObjRootFolderGUI.php.

References ilObjCategoryGUI::_importCategories().

        {
          ilObjCategoryGUI::_importCategories($this->ref_id,1);
        }

Here is the call graph for this function:

ilObjRootFolderGUI::setTitleAndDescription (  ) 

called by prepare output

Reimplemented from ilContainerGUI.

Definition at line 165 of file class.ilObjRootFolderGUI.php.

References ilObjectGUI::$lng, and ilUtil::getImagePath().

Referenced by executeCommand().

        {
                global $lng;

                $this->tpl->setTitle($lng->txt("repository"));
                $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_".$this->object->getType()."_b.gif"));
        }

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: