ILIAS
Release_4_4_x_branch Revision 61816
|
Personal skills GUI class. More...
Public Member Functions | |
__construct () | |
Contructor. | |
setProfileId ($a_val) | |
Set profile id. | |
getProfileId () | |
Get profile id. | |
setGapAnalysisSelfEvalLevels ($a_val) | |
Set self evaluation levels for gap analysis. | |
getGapAnalysisSelfEvalLevels () | |
Get self evaluation levels for gap analysis. | |
executeCommand () | |
Execute command. | |
setTabs ($a_activate) | |
Set tabs. | |
setOfflineMode ($a_file_path) | |
listSkills () | |
List skills. | |
getSkillHTML ($a_top_skill_id, $a_user_id=0, $a_edit=false, $a_tref_id=0) | |
Get skill presentation HTML. | |
getTooltipsJs () | |
getMaterialInfo ($a_wsp_id, $a_user_id) | |
Get material file name and goto url. | |
addSkill () | |
Add personal skill. | |
confirmSkillRemove () | |
Confirm skill remove. | |
removeSkills () | |
Remove skills. | |
switchAssignMaterials () | |
Switch self evaluation. | |
assignMaterials () | |
Assign materials to skill levels. | |
assignMaterial () | |
Assign materials to skill level. | |
selectMaterial () | |
Select material. | |
removeMaterial () | |
Remove material. | |
switchSelfEvaluation () | |
Switch self evaluation. | |
selfEvaluation () | |
Assign materials to skill levels. | |
saveSelfEvaluation () | |
Save self evaluation. | |
listSkillsForAdd () | |
LIst skills for adding. | |
listProfiles () | |
List profiles. | |
setGapAnalysisActualStatusModePerType ($a_type, $a_cat_title="") | |
Set gap analysis actual status mode "per type". | |
setGapAnalysisActualStatusModePerObject ($a_obj_id, $a_cat_title="") | |
Set gap analysis actual status mode "per object". | |
getGapAnalysisHTML ($a_user_id=0, $a_skills=null) | |
Get gap analysis html. | |
selectProfile () | |
Select profile. | |
renderSelfEvaluationRow ($a_tpl, $a_levels, $a_top_skill_id, $a_base_skill, $a_tref_id=0, $a_user_id=0) | |
Render self evaluation row. | |
renderMaterialsRow ($a_tpl, $a_levels, $a_top_skill_id, $a_base_skill, $a_tref_id=0, $a_user_id=0) | |
Render materials row. | |
renderProfileTargetRow ($a_tpl, $a_levels, $a_top_skill_id, $a_base_skill, $a_tref_id=0, $a_user_id=0) | |
Render profile target row. | |
renderActualLevelsRow ($a_tpl, $a_levels, $a_top_skill_id, $a_base_skill, $a_tref_id=0, $a_user_id=0) | |
Render actual levels row (gap analysis) | |
renderGapSelfEvalRow ($a_tpl, $a_levels, $a_top_skill_id, $a_base_skill, $a_tref_id=0, $a_user_id=0) | |
Render actual levels row (gap analysis) | |
renderObjectEvalRow ($a_tpl, $a_levels, $a_level_entry) | |
Render object evaluation row (has_level table) | |
renderSuggestedResources ($a_tpl, $a_levels, $a_base_skill, $a_tref_id) | |
Render suggested resources. |
Static Public Attributes | |
static | $skill_tt_cnt = 1 |
Protected Attributes | |
$offline_mode | |
$skill_tree | |
$actual_levels = array() | |
$gap_self_eval_levels = array() | |
$mode = "" |
ilPersonalSkillsGUI::__construct | ( | ) |
Contructor.
public
Definition at line 32 of file class.ilPersonalSkillsGUI.php.
References $ilCtrl, $ilSetting, and $lng.
ilPersonalSkillsGUI::addSkill | ( | ) |
Add personal skill.
Definition at line 468 of file class.ilPersonalSkillsGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, ilPersonalSkill\addPersonalSkill(), and ilUtil\sendSuccess().
ilPersonalSkillsGUI::assignMaterial | ( | ) |
Assign materials to skill level.
@return |
Definition at line 633 of file class.ilPersonalSkillsGUI.php.
References $_GET, $_POST, $ilCtrl, $ilSetting, $ilUser, $lng, $tpl, ilWorkspaceExplorer\SEL_TYPE_CHECK, and ilUtil\sendInfo().
Referenced by selectMaterial().
ilPersonalSkillsGUI::assignMaterials | ( | ) |
Assign materials to skill levels.
@return |
Definition at line 562 of file class.ilPersonalSkillsGUI.php.
References $_GET, $ilCtrl, $lng, $options, $si, $tab, $tpl, ilSkillTemplateReference\_lookupTemplateId(), ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), and ilUtil\getImagePath().
ilPersonalSkillsGUI::confirmSkillRemove | ( | ) |
Confirm skill remove.
Definition at line 483 of file class.ilPersonalSkillsGUI.php.
References $_GET, $_POST, $ilCtrl, $lng, $tpl, ilSkillTreeNode\_lookupTitle(), and ilUtil\sendInfo().
ilPersonalSkillsGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 96 of file class.ilPersonalSkillsGUI.php.
References $cmd, $ilCtrl, $ilUser, $lng, $tpl, ilUtil\getImagePath(), and ilSkillProfile\getProfilesOfUser().
ilPersonalSkillsGUI::getGapAnalysisHTML | ( | $a_user_id = 0 , |
|
$a_skills = null |
|||
) |
Get gap analysis html.
@return |
Definition at line 967 of file class.ilPersonalSkillsGUI.php.
References $ilUser, $lng, $path, ilSkillTreeNode\_lookupTitle(), ilObject\_lookupTitle(), getGapAnalysisSelfEvalLevels(), getProfileId(), getSkillHTML(), and ilSkillTreeNode\STATUS_DRAFT.
Referenced by listProfiles().
ilPersonalSkillsGUI::getGapAnalysisSelfEvalLevels | ( | ) |
Get self evaluation levels for gap analysis.
Definition at line 85 of file class.ilPersonalSkillsGUI.php.
References $gap_self_eval_levels.
Referenced by getGapAnalysisHTML(), and renderGapSelfEvalRow().
ilPersonalSkillsGUI::getMaterialInfo | ( | $a_wsp_id, | |
$a_user_id | |||
) |
Get material file name and goto url.
int | $a_wsp_id |
Definition at line 407 of file class.ilPersonalSkillsGUI.php.
References $file, ilObject\_lookupTitle(), and ilObject\_lookupType().
Referenced by renderMaterialsRow().
ilPersonalSkillsGUI::getProfileId | ( | ) |
Get profile id.
Definition at line 65 of file class.ilPersonalSkillsGUI.php.
Referenced by getGapAnalysisHTML(), getSkillHTML(), renderActualLevelsRow(), renderProfileTargetRow(), and renderSuggestedResources().
ilPersonalSkillsGUI::getSkillHTML | ( | $a_top_skill_id, | |
$a_user_id = 0 , |
|||
$a_edit = false , |
|||
$a_tref_id = 0 |
|||
) |
Get skill presentation HTML.
$a_top_skill_id is a node of the skill "main tree", it can be a tref id!
Definition at line 200 of file class.ilPersonalSkillsGUI.php.
References $ilCtrl, $ilSetting, $ilUser, $lng, $path, $tpl, ilSkillTemplateReference\_lookupTemplateId(), ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), ilTooltipGUI\addTooltip(), ilAdvancedSelectionListGUI\DOWN_ARROW_DARK, ilSkillTreeNodeFactory\getInstance(), getProfileId(), ilPersonalSkill\getSelfEvaluationDate(), renderActualLevelsRow(), renderGapSelfEvalRow(), renderMaterialsRow(), renderObjectEvalRow(), renderProfileTargetRow(), renderSelfEvaluationRow(), renderSuggestedResources(), and ilSkillTreeNode\STATUS_DRAFT.
Referenced by getGapAnalysisHTML(), and listSkills().
ilPersonalSkillsGUI::getTooltipsJs | ( | ) |
Definition at line 396 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::listProfiles | ( | ) |
List profiles.
@return |
Definition at line 896 of file class.ilPersonalSkillsGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, $options, $si, $tpl, getGapAnalysisHTML(), ilSkillProfile\getProfilesOfUser(), and setProfileId().
ilPersonalSkillsGUI::listSkills | ( | ) |
List skills.
Definition at line 153 of file class.ilPersonalSkillsGUI.php.
References $ilCtrl, $ilUser, $lng, $path, $tpl, ilPersonalSkill\getSelectedUserSkills(), getSkillHTML(), setTabs(), and ilSkillTreeNode\STATUS_DRAFT.
ilPersonalSkillsGUI::listSkillsForAdd | ( | ) |
LIst skills for adding.
@return |
Definition at line 867 of file class.ilPersonalSkillsGUI.php.
References $ilCtrl, $ilUser, $lng, $tpl, and ilUtil\sendInfo().
ilPersonalSkillsGUI::removeMaterial | ( | ) |
Remove material.
Definition at line 734 of file class.ilPersonalSkillsGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, and ilUtil\sendSuccess().
ilPersonalSkillsGUI::removeSkills | ( | ) |
Remove skills.
Definition at line 518 of file class.ilPersonalSkillsGUI.php.
References $_POST, $ilCtrl, $ilUser, $lng, ilPersonalSkill\removeSkill(), and ilUtil\sendSuccess().
ilPersonalSkillsGUI::renderActualLevelsRow | ( | $a_tpl, | |
$a_levels, | |||
$a_top_skill_id, | |||
$a_base_skill, | |||
$a_tref_id = 0 , |
|||
$a_user_id = 0 |
|||
) |
Render actual levels row (gap analysis)
@return |
Definition at line 1370 of file class.ilPersonalSkillsGUI.php.
References $ilUser, $lng, ilObject\_lookupTitle(), and getProfileId().
Referenced by getSkillHTML().
ilPersonalSkillsGUI::renderGapSelfEvalRow | ( | $a_tpl, | |
$a_levels, | |||
$a_top_skill_id, | |||
$a_base_skill, | |||
$a_tref_id = 0 , |
|||
$a_user_id = 0 |
|||
) |
Render actual levels row (gap analysis)
@return |
Definition at line 1426 of file class.ilPersonalSkillsGUI.php.
References $ilUser, $lng, and getGapAnalysisSelfEvalLevels().
Referenced by getSkillHTML().
ilPersonalSkillsGUI::renderMaterialsRow | ( | $a_tpl, | |
$a_levels, | |||
$a_top_skill_id, | |||
$a_base_skill, | |||
$a_tref_id = 0 , |
|||
$a_user_id = 0 |
|||
) |
Render materials row.
@return |
Definition at line 1238 of file class.ilPersonalSkillsGUI.php.
References $ilUser, $lng, ilTooltipGUI\addTooltip(), ilPersonalSkill\countAssignedMaterial(), ilPersonalSkill\getAssignedMaterial(), and getMaterialInfo().
Referenced by getSkillHTML().
ilPersonalSkillsGUI::renderObjectEvalRow | ( | $a_tpl, | |
$a_levels, | |||
$a_level_entry | |||
) |
Render object evaluation row (has_level table)
@return |
Definition at line 1473 of file class.ilPersonalSkillsGUI.php.
References ilDatePresentation\formatDate(), IL_CAL_DATETIME, and ilDatePresentation\setUseRelativeDates().
Referenced by getSkillHTML().
ilPersonalSkillsGUI::renderProfileTargetRow | ( | $a_tpl, | |
$a_levels, | |||
$a_top_skill_id, | |||
$a_base_skill, | |||
$a_tref_id = 0 , |
|||
$a_user_id = 0 |
|||
) |
Render profile target row.
@return |
Definition at line 1321 of file class.ilPersonalSkillsGUI.php.
References $ilUser, $lng, and getProfileId().
Referenced by getSkillHTML().
ilPersonalSkillsGUI::renderSelfEvaluationRow | ( | $a_tpl, | |
$a_levels, | |||
$a_top_skill_id, | |||
$a_base_skill, | |||
$a_tref_id = 0 , |
|||
$a_user_id = 0 |
|||
) |
Render self evaluation row.
@return |
Definition at line 1178 of file class.ilPersonalSkillsGUI.php.
References $ilUser, $lng, ilPersonalSkill\getSelfEvaluation(), ilPersonalSkill\getSelfEvaluationDate(), IL_CAL_DATETIME, and ilDatePresentation\setUseRelativeDates().
Referenced by getSkillHTML().
ilPersonalSkillsGUI::renderSuggestedResources | ( | $a_tpl, | |
$a_levels, | |||
$a_base_skill, | |||
$a_tref_id | |||
) |
Render suggested resources.
@return |
Definition at line 1524 of file class.ilPersonalSkillsGUI.php.
References $lng, $ref_id, $res, ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), getProfileId(), and ilBasicSkill\lookupLevelTitle().
Referenced by getSkillHTML().
ilPersonalSkillsGUI::saveSelfEvaluation | ( | ) |
Save self evaluation.
Definition at line 844 of file class.ilPersonalSkillsGUI.php.
References $_GET, $_POST, $ilCtrl, $ilUser, $lng, and ilUtil\sendSuccess().
ilPersonalSkillsGUI::selectMaterial | ( | ) |
Select material.
Definition at line 706 of file class.ilPersonalSkillsGUI.php.
References $_GET, $_POST, $ilCtrl, $ilUser, $lng, assignMaterial(), and ilUtil\sendSuccess().
ilPersonalSkillsGUI::selectProfile | ( | ) |
ilPersonalSkillsGUI::selfEvaluation | ( | ) |
Assign materials to skill levels.
@return |
Definition at line 775 of file class.ilPersonalSkillsGUI.php.
References $_GET, $ilCtrl, $lng, $options, $si, $tab, $tpl, ilSkillTemplateReference\_lookupTemplateId(), ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), and ilUtil\getImagePath().
ilPersonalSkillsGUI::setGapAnalysisActualStatusModePerObject | ( | $a_obj_id, | |
$a_cat_title = "" |
|||
) |
Set gap analysis actual status mode "per object".
integer | $a_obj_id | object id |
Definition at line 953 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::setGapAnalysisActualStatusModePerType | ( | $a_type, | |
$a_cat_title = "" |
|||
) |
Set gap analysis actual status mode "per type".
string | $a_type | type |
Definition at line 940 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::setGapAnalysisSelfEvalLevels | ( | $a_val | ) |
Set self evaluation levels for gap analysis.
array | $a_val | self evaluation values key1: base_skill_id, key2: tref_id: value: level id |
Definition at line 75 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::setOfflineMode | ( | $a_file_path | ) |
Definition at line 145 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::setProfileId | ( | $a_val | ) |
Set profile id.
$a_val |
Definition at line 55 of file class.ilPersonalSkillsGUI.php.
Referenced by listProfiles().
ilPersonalSkillsGUI::setTabs | ( | $a_activate | ) |
Set tabs.
Definition at line 128 of file class.ilPersonalSkillsGUI.php.
Referenced by listSkills().
ilPersonalSkillsGUI::switchAssignMaterials | ( | ) |
Switch self evaluation.
@return |
Definition at line 545 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::switchSelfEvaluation | ( | ) |
Switch self evaluation.
@return |
Definition at line 757 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 23 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 24 of file class.ilPersonalSkillsGUI.php.
Referenced by getGapAnalysisSelfEvalLevels().
|
protected |
Definition at line 25 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 20 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 21 of file class.ilPersonalSkillsGUI.php.
|
static |
Definition at line 22 of file class.ilPersonalSkillsGUI.php.