ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestSkillAdministrationGUI Class Reference
+ Collaboration diagram for ilTestSkillAdministrationGUI:

Public Member Functions

 __construct (ILIAS $ilias, ilCtrl $ctrl, ilAccessHandler $access, ilTabsGUI $tabs, ilTemplate $tpl, ilLanguage $lng, ilDB $db, ilObjTest $testOBJ, $refId)
 executeCommand ()
 manageTabs ($activeSubTabId)

Private Member Functions

 isAccessDenied ()

Private Attributes

 $ilias
 $ctrl
 $access
 $tabs
 $tpl
 $lng
 $db
 $testOBJ

Detailed Description

Definition at line 16 of file class.ilTestSkillAdministrationGUI.php.

Constructor & Destructor Documentation

ilTestSkillAdministrationGUI::__construct ( ILIAS  $ilias,
ilCtrl  $ctrl,
ilAccessHandler  $access,
ilTabsGUI  $tabs,
ilTemplate  $tpl,
ilLanguage  $lng,
ilDB  $db,
ilObjTest  $testOBJ,
  $refId 
)

Definition at line 58 of file class.ilTestSkillAdministrationGUI.php.

References $access, $ctrl, $db, $ilias, $lng, $tabs, $testOBJ, and $tpl.

{
$this->ilias = $ilias;
$this->ctrl = $ctrl;
$this->access = $access;
$this->tabs = $tabs;
$this->tpl = $tpl;
$this->lng = $lng;
$this->db = $db;
$this->testOBJ = $testOBJ;
$this->refId = $refId;
}

Member Function Documentation

ilTestSkillAdministrationGUI::executeCommand ( )

Definition at line 71 of file class.ilTestSkillAdministrationGUI.php.

References isAccessDenied(), and manageTabs().

{
if( $this->isAccessDenied() )
{
$this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
}
$nextClass = $this->ctrl->getNextClass();
$this->manageTabs($nextClass);
switch($nextClass)
{
case 'iltestskillquestionassignmentsgui':
$gui = new ilTestSkillQuestionAssignmentsGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->testOBJ);
$this->ctrl->forwardCommand($gui);
break;
case 'iltestskilllevelthresholdsgui':
$gui = new ilTestSkillLevelThresholdsGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->testOBJ);
$this->ctrl->forwardCommand($gui);
break;
}
}

+ Here is the call graph for this function:

ilTestSkillAdministrationGUI::isAccessDenied ( )
private

Definition at line 119 of file class.ilTestSkillAdministrationGUI.php.

References ilObjTest\isSkillManagementGloballyActivated().

Referenced by executeCommand().

{
if( !$this->testOBJ->isSkillServiceEnabled() )
{
return true;
}
{
return true;
}
if( ! $this->access->checkAccess('write', '', $this->refId) )
{
return true;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSkillAdministrationGUI::manageTabs (   $activeSubTabId)

Definition at line 98 of file class.ilTestSkillAdministrationGUI.php.

References ilTestSkillQuestionAssignmentsGUI\CMD_SHOW_SKILL_QUEST_ASSIGNS, and ilTestSkillLevelThresholdsGUI\CMD_SHOW_SKILL_THRESHOLDS.

Referenced by executeCommand().

{
$link = $this->ctrl->getLinkTargetByClass(
);
$this->tabs->addSubTab(
'iltestskillquestionassignmentsgui', $this->lng->txt('tst_skl_sub_tab_quest_assign'), $link
);
$link = $this->ctrl->getLinkTargetByClass(
);
$this->tabs->addSubTab(
'iltestskilllevelthresholdsgui', $this->lng->txt('tst_skl_sub_tab_thresholds'), $link
);
$this->tabs->activateTab('tst_tab_competences');
$this->tabs->activateSubTab($activeSubTabId);
}

+ Here is the caller graph for this function:

Field Documentation

ilTestSkillAdministrationGUI::$access
private

Definition at line 31 of file class.ilTestSkillAdministrationGUI.php.

Referenced by __construct().

ilTestSkillAdministrationGUI::$ctrl
private

Definition at line 26 of file class.ilTestSkillAdministrationGUI.php.

Referenced by __construct().

ilTestSkillAdministrationGUI::$db
private

Definition at line 51 of file class.ilTestSkillAdministrationGUI.php.

Referenced by __construct().

ilTestSkillAdministrationGUI::$ilias
private

Definition at line 21 of file class.ilTestSkillAdministrationGUI.php.

Referenced by __construct().

ilTestSkillAdministrationGUI::$lng
private

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

Referenced by __construct().

ilTestSkillAdministrationGUI::$tabs
private

Definition at line 36 of file class.ilTestSkillAdministrationGUI.php.

Referenced by __construct().

ilTestSkillAdministrationGUI::$testOBJ
private

Definition at line 56 of file class.ilTestSkillAdministrationGUI.php.

Referenced by __construct().

ilTestSkillAdministrationGUI::$tpl
private

Definition at line 41 of file class.ilTestSkillAdministrationGUI.php.

Referenced by __construct().


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