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

Public Member Functions

 __construct (ilCtrl $ctrl, ilTabsGUI $tabs, ilTemplate $tpl, ilLanguage $lng, ilDB $db, ilObjTest $testOBJ)
 executeCommand ()

Data Fields

const CMD_SHOW = 'show'

Private Member Functions

 isAccessDenied ()
 manageTabs ($cmd)
 showCmd ()
 buildEvaluationToolbarGUI ($usrId, $selectedSkillProfileId)
 buildPersonalSkillsGUI ($usrId, $selectedSkillProfileId)

Private Attributes

 $ctrl
 $tabs
 $tpl
 $lng
 $db
 $testOBJ
 $skillEvaluation
 $testSessionFactory

Detailed Description

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

Constructor & Destructor Documentation

ilTestSkillEvaluationGUI::__construct ( ilCtrl  $ctrl,
ilTabsGUI  $tabs,
ilTemplate  $tpl,
ilLanguage  $lng,
ilDB  $db,
ilObjTest  $testOBJ 
)

Definition at line 59 of file class.ilTestSkillEvaluationGUI.php.

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

{
$this->ctrl = $ctrl;
$this->tabs = $tabs;
$this->tpl = $tpl;
$this->lng = $lng;
$this->db = $db;
$this->testOBJ = $testOBJ;
require_once 'Modules/Test/classes/class.ilTestSkillEvaluation.php';
$this->skillEvaluation = new ilTestSkillEvaluation($this->db, $this->testOBJ);
require_once 'Modules/Test/classes/class.ilTestSessionFactory.php';
$this->testSessionFactory = new ilTestSessionFactory($this->testOBJ);
}

Member Function Documentation

ilTestSkillEvaluationGUI::buildEvaluationToolbarGUI (   $usrId,
  $selectedSkillProfileId 
)
private

Definition at line 117 of file class.ilTestSkillEvaluationGUI.php.

Referenced by showCmd().

{
$availableSkillProfiles = $this->skillEvaluation->getAssignedSkillMatchingSkillProfiles(
$usrId
);
$noSkillProfileOptionEnabled = $this->skillEvaluation->noProfileMatchingAssignedSkillExists(
$usrId, $availableSkillProfiles
);
$gui = new ilTestSkillEvaluationToolbarGUI($this->ctrl, $this->lng, $this, self::CMD_SHOW);
$gui->setAvailableSkillProfiles($availableSkillProfiles);
$gui->setNoSkillProfileOptionEnabled($noSkillProfileOptionEnabled);
$gui->setSelectedEvaluationMode($selectedSkillProfileId);
$gui->build();
return $gui;
}

+ Here is the caller graph for this function:

ilTestSkillEvaluationGUI::buildPersonalSkillsGUI (   $usrId,
  $selectedSkillProfileId 
)
private

Definition at line 138 of file class.ilTestSkillEvaluationGUI.php.

Referenced by showCmd().

{
$availableSkills = $this->skillEvaluation->getUniqueAssignedSkillsForPersonalSkillGUI();
$reachedSkillLevels = $this->skillEvaluation->getReachedSkillLevelsForPersonalSkillGUI();
$gui = new ilTestPersonalSkillsGUI($this->lng, $this->testOBJ);
$gui->setAvailableSkills($availableSkills);
$gui->setSelectedSkillProfile($selectedSkillProfileId);
$gui->setReachedSkillLevels($reachedSkillLevels);
$gui->setUsrId($usrId);
return $gui;
}

+ Here is the caller graph for this function:

ilTestSkillEvaluationGUI::executeCommand ( )

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

References $cmd, and manageTabs().

{
$cmd = $this->ctrl->getCmd(self::CMD_SHOW) . 'Cmd';
$this->manageTabs($cmd);
$this->$cmd();
}

+ Here is the call graph for this function:

ilTestSkillEvaluationGUI::isAccessDenied ( )
private

Definition at line 84 of file class.ilTestSkillEvaluationGUI.php.

{
return false;
}
ilTestSkillEvaluationGUI::manageTabs (   $cmd)
private

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

Referenced by executeCommand().

{
$this->tabs->clearTargets();
$this->tabs->setBackTarget(
$this->lng->txt('tst_results_back_introduction'),
$this->ctrl->getLinkTargetByClass('ilObjTestGUI', 'infoScreen')
);
}

+ Here is the caller graph for this function:

ilTestSkillEvaluationGUI::showCmd ( )
private

Definition at line 99 of file class.ilTestSkillEvaluationGUI.php.

References $_POST, buildEvaluationToolbarGUI(), buildPersonalSkillsGUI(), and ilTestSkillEvaluationToolbarGUI\fetchSkillProfileParam().

{
$testSession = $this->testSessionFactory->getSession();
$this->skillEvaluation->init()->evaluate(
$testSession->getActiveId(), $testSession->getLastFinishedPass(), $testSession->getUserId()
);
$evaluationToolbarGUI = $this->buildEvaluationToolbarGUI($testSession->getUserId(), $selectedSkillProfile);
$personalSkillsGUI = $this->buildPersonalSkillsGUI($testSession->getUserId(), $selectedSkillProfile);
$this->tpl->setContent(
$this->ctrl->getHTML($evaluationToolbarGUI) . $this->ctrl->getHTML($personalSkillsGUI)
);
}

+ Here is the call graph for this function:

Field Documentation

ilTestSkillEvaluationGUI::$ctrl
private

Definition at line 22 of file class.ilTestSkillEvaluationGUI.php.

Referenced by __construct().

ilTestSkillEvaluationGUI::$db
private

Definition at line 42 of file class.ilTestSkillEvaluationGUI.php.

Referenced by __construct().

ilTestSkillEvaluationGUI::$lng
private

Definition at line 37 of file class.ilTestSkillEvaluationGUI.php.

Referenced by __construct().

ilTestSkillEvaluationGUI::$skillEvaluation
private

Definition at line 52 of file class.ilTestSkillEvaluationGUI.php.

ilTestSkillEvaluationGUI::$tabs
private

Definition at line 27 of file class.ilTestSkillEvaluationGUI.php.

Referenced by __construct().

ilTestSkillEvaluationGUI::$testOBJ
private

Definition at line 47 of file class.ilTestSkillEvaluationGUI.php.

Referenced by __construct().

ilTestSkillEvaluationGUI::$testSessionFactory
private

Definition at line 57 of file class.ilTestSkillEvaluationGUI.php.

ilTestSkillEvaluationGUI::$tpl
private

Definition at line 32 of file class.ilTestSkillEvaluationGUI.php.

Referenced by __construct().

const ilTestSkillEvaluationGUI::CMD_SHOW = 'show'

Definition at line 18 of file class.ilTestSkillEvaluationGUI.php.


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