ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilOrgUnitTreeGUI Class Reference

Organisation Unit Tree. More...

+ Collaboration diagram for ilOrgUnitTreeGUI:

Public Member Functions

 executeCommand ()
 viewTreeObject ()
 viewAssignedUnitsObject ()

Detailed Description

Organisation Unit Tree.

Author
Bjoern Heyser bheys.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

ilOrgUnitTreeGUI: ilObjUserFolderGUI, ilObjUserGUI

Definition at line 17 of file class.ilOrgUnitTreeGUI.php.

Member Function Documentation

ilOrgUnitTreeGUI::executeCommand ( )

Definition at line 19 of file class.ilOrgUnitTreeGUI.php.

References $cmd, and $ilCtrl.

{
global $ilCtrl;
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd();
#$this->prepareOutput();
switch($next_class)
{
/*case 'ilpermissiongui':
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;*/
default:
if(!$cmd)
{
$cmd = "viewTree";
}
$cmd .= "Object";
$this->$cmd();
break;
}
return true;
}
ilOrgUnitTreeGUI::viewAssignedUnitsObject ( )

Definition at line 75 of file class.ilOrgUnitTreeGUI.php.

References $_GET, $lng, and $tpl.

{
global $tpl, $lng;
$user_id = (int)$_GET['obj_id'];
require_once('Services/OrgUnit/classes/class.ilOrgUnitAssignmentTableGUI.php');
$tbl = new ilOrgUnitAssignmentTableGUI($this, 'viewAssignedUnits',$user_id);
$tpl->setVariable('ADM_CONTENT', $tbl->getHTML());
}
ilOrgUnitTreeGUI::viewTreeObject ( )

Definition at line 49 of file class.ilOrgUnitTreeGUI.php.

References $lng, and $tpl.

{
global $tpl, $lng;
require_once('Services/OrgUnit/classes/class.ilOrgUnitTree.php');
$tree = new ilOrgUnitTree();
$root_unit = $tree->getRecursiveOrgUnitTree();
$debug = '<pre>'.print_r($nodes,1).'</pre>';
require_once('Services/OrgUnit/classes/class.ilOrgUnitTreeExplorerGUI.php');
$exp = new ilOrgUnitTreeExplorerGUI($root_unit);
$tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.org_unit_tree.html', 'Services/OrgUnit');
$tpl->setCurrentBlock('adm_content');
$tpl->setVariable('ORG_UNIT_TREE_HEADER', $lng->txt('org_unit_tree_header'));
$tpl->setVariable('ORG_UNIT_TREE_EXPLORER', $exp->getHTML());
$tpl->parseCurrentBlock();
}

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