ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Personal skills GUI class. More...
Public Member Functions | |
__construct () | |
Contructor. More... | |
setProfileId ($a_val) | |
Set profile id. More... | |
getProfileId () | |
Get profile id. More... | |
setGapAnalysisSelfEvalLevels (array $a_val) | |
Set self evaluation levels for gap analysis. More... | |
getGapAnalysisSelfEvalLevels () | |
Get self evaluation levels for gap analysis. More... | |
setHistoryView ($a_val) | |
Set history view. More... | |
getHistoryView () | |
Get history view. More... | |
setIntroText ($a_val) | |
Set intro text. More... | |
getIntroText () | |
Get intro text. More... | |
hideSkill ($a_skill_id, $a_tref_id=0) | |
Hide skill. More... | |
determineCurrentProfile () | |
Determine current profile id. More... | |
setObjectSkills ($a_obj_id, $a_skills=null) | |
Set object skills. More... | |
executeCommand () | |
Execute command. More... | |
setTabs ($a_activate) | |
Set tabs. More... | |
setOfflineMode ($a_file_path) | |
listSkills () | |
List skills. More... | |
getSkillHTML ($a_top_skill_id, $a_user_id=0, $a_edit=false, $a_tref_id=0) | |
Get skill presentation HTML. More... | |
renderSkillHTML ($a_top_skill_id, $a_user_id=0, $a_edit=false, $a_tref_id=0) | |
Render skill html. More... | |
getMaterialInfo ($a_wsp_id, $a_user_id) | |
Get material file name and goto url. More... | |
addSkill () | |
Add personal skill. More... | |
confirmSkillRemove () | |
Confirm skill remove. More... | |
removeSkills () | |
Remove skills. More... | |
assignMaterials () | |
Assign materials to skill levels. More... | |
assignMaterial () | |
Assign materials to skill level. More... | |
selectMaterial () | |
Select material. More... | |
removeMaterial () | |
Remove material. More... | |
selfEvaluation () | |
Assign materials to skill levels. More... | |
saveSelfEvaluation () | |
Save self evaluation. More... | |
listSkillsForAdd () | |
LIst skills for adding. More... | |
listProfilesForGap () | |
List profiles. More... | |
showProfileSelectorToolbar () | |
Show profile selector toolbar. More... | |
setGapAnalysisActualStatusModePerType ($a_type, $a_cat_title="") | |
Set gap analysis actual status mode "per type". More... | |
setGapAnalysisActualStatusModePerObject ($a_obj_id, $a_cat_title="") | |
Set gap analysis actual status mode "per object". More... | |
getGapAnalysisHTML ($a_user_id=0, $a_skills=null) | |
Get gap analysis html. More... | |
selectProfile () | |
Select profile. More... | |
getMaterials ($a_levels, $a_tref_id=0, $a_user_id=0) | |
Get materials. More... | |
getProfileTargetItem ($a_profile_id, $a_levels, $a_tref_id=0) | |
Get profile target item. More... | |
getActualGapItem ($a_levels, $a_tref_id=0) | |
getSelfEvalGapItem ($a_levels, $a_tref_id=0) | |
getScaleBar ($a_levels, $a_activated_levels) | |
Get scale bar. More... | |
getEvalItem ($a_levels, $a_level_entry) | |
Get eval item. More... | |
getSkillDescription ($skill) | |
Get level description. More... | |
getSuggestedResources ($a_profile_id, $a_levels, $a_base_skill, $a_tref_id) | |
Render suggested resources. More... | |
listAssignedProfile () | |
List profile. More... | |
Static Public Attributes | |
static | $skill_tt_cnt = 1 |
Protected Member Functions | |
getActualLevels ($skills, $user_id) | |
Get actual levels. More... | |
Protected Attributes | |
$offline_mode | |
$skill_tree | |
$actual_levels = array() | |
$gap_self_eval_levels = array() | |
$mode = "" | |
$history_view = false | |
$intro_text = "" | |
$hidden_skills = array() | |
$ctrl | |
$lng | |
$help | |
$setting | |
$user | |
$tpl | |
$tabs | |
$toolbar | |
$access | |
$ui_fac | |
$ui_ren | |
$obj_id = 0 | |
$obj_skills = array() | |
ilPersonalSkillsGUI::__construct | ( | ) |
Contructor.
public
Definition at line 92 of file class.ilPersonalSkillsGUI.php.
References $ctrl, $DIC, $help, $ilCtrl, $ilSetting, $lng, $setting, ilSkillProfile\getProfilesOfUser(), and user().
ilPersonalSkillsGUI::addSkill | ( | ) |
Add personal skill.
Definition at line 621 of file class.ilPersonalSkillsGUI.php.
References $_GET, $ctrl, $ilCtrl, $ilUser, $lng, $user, ilPersonalSkill\addPersonalSkill(), and ilUtil\sendSuccess().
ilPersonalSkillsGUI::assignMaterial | ( | ) |
Assign materials to skill level.
Definition at line 779 of file class.ilPersonalSkillsGUI.php.
References $ctrl, $ilCtrl, $ilSetting, $ilUser, $lng, $setting, $tabs, $tpl, $user, array, ilUtil\sendInfo(), and ilTreeExplorerGUI\setTypeWhiteList().
ilPersonalSkillsGUI::assignMaterials | ( | ) |
Assign materials to skill levels.
Definition at line 697 of file class.ilPersonalSkillsGUI.php.
References $_GET, $_POST, $ctrl, $ilCtrl, $lng, $options, $si, $tab, $tabs, $toolbar, $tpl, ilSkillTemplateReference\_lookupTemplateId(), ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), array, and ilUtil\getImagePath().
ilPersonalSkillsGUI::confirmSkillRemove | ( | ) |
Confirm skill remove.
Definition at line 638 of file class.ilPersonalSkillsGUI.php.
References $_GET, $_POST, $ctrl, $i, $ilCtrl, $lng, $tpl, ilSkillTreeNode\_lookupTitle(), and ilUtil\sendInfo().
ilPersonalSkillsGUI::determineCurrentProfile | ( | ) |
Determine current profile id.
Definition at line 229 of file class.ilPersonalSkillsGUI.php.
References $_GET, $ctrl, $ilCtrl, and setProfileId().
Referenced by listAssignedProfile(), and listProfilesForGap().
ilPersonalSkillsGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 270 of file class.ilPersonalSkillsGUI.php.
References $ctrl, $ilCtrl, $ilUser, $lng, $tpl, $user, and ilUtil\getImagePath().
ilPersonalSkillsGUI::getActualGapItem | ( | $a_levels, | |
$a_tref_id = 0 |
|||
) |
Definition at line 1466 of file class.ilPersonalSkillsGUI.php.
References $lng, $title, $tpl, $type, ilObject\_lookupTitle(), array, and getScaleBar().
Referenced by renderSkillHTML().
|
protected |
Get actual levels.
array | $skills | |
int | $user_id |
Definition at line 1118 of file class.ilPersonalSkillsGUI.php.
References array.
Referenced by getGapAnalysisHTML(), and listAssignedProfile().
ilPersonalSkillsGUI::getEvalItem | ( | $a_levels, | |
$a_level_entry | |||
) |
Get eval item.
Definition at line 1566 of file class.ilPersonalSkillsGUI.php.
References $access, $lng, $title, $tpl, $type, ilLink\_getLink(), ilDatePresentation\formatDate(), getScaleBar(), IL_CAL_DATETIME, ilDatePresentation\setUseRelativeDates(), ilSkillEval\TYPE_APPRAISAL, ilSkillEval\TYPE_MEASUREMENT, and ilSkillEval\TYPE_SELF_EVAL.
Referenced by renderSkillHTML().
ilPersonalSkillsGUI::getGapAnalysisHTML | ( | $a_user_id = 0 , |
|
$a_skills = null |
|||
) |
Get gap analysis html.
Definition at line 1146 of file class.ilPersonalSkillsGUI.php.
References $chart, $html, $ilUser, $l, $lg, $lng, $obj_skills, $path, $s, $user, ilSkillTreeNode\_lookupTitle(), ilObject\_lookupTitle(), array, getActualLevels(), getGapAnalysisSelfEvalLevels(), ilPanelGUI\getInstance(), ilChart\getInstanceByType(), getIntroText(), getProfileId(), getSkillHTML(), ilPanelGUI\PANEL_STYLE_PRIMARY, ilSkillTreeNode\STATUS_DRAFT, and ilChart\TYPE_SPIDER.
Referenced by listProfilesForGap().
ilPersonalSkillsGUI::getGapAnalysisSelfEvalLevels | ( | ) |
Get self evaluation levels for gap analysis.
Definition at line 167 of file class.ilPersonalSkillsGUI.php.
References $gap_self_eval_levels.
Referenced by getGapAnalysisHTML(), and getSelfEvalGapItem().
ilPersonalSkillsGUI::getHistoryView | ( | ) |
Get history view.
Definition at line 187 of file class.ilPersonalSkillsGUI.php.
References $history_view.
ilPersonalSkillsGUI::getIntroText | ( | ) |
Get intro text.
Definition at line 207 of file class.ilPersonalSkillsGUI.php.
References $intro_text.
Referenced by getGapAnalysisHTML().
ilPersonalSkillsGUI::getMaterialInfo | ( | $a_wsp_id, | |
$a_user_id | |||
) |
Get material file name and goto url.
int | $a_wsp_id |
Definition at line 565 of file class.ilPersonalSkillsGUI.php.
References $file, $obj_id, $url, ilObject\_lookupTitle(), ilObject\_lookupType(), and array.
Referenced by getMaterials().
ilPersonalSkillsGUI::getMaterials | ( | $a_levels, | |
$a_tref_id = 0 , |
|||
$a_user_id = 0 |
|||
) |
Get materials.
Definition at line 1375 of file class.ilPersonalSkillsGUI.php.
References $ilUser, $lng, $tpl, $user, ilPersonalSkill\countAssignedMaterial(), ilPersonalSkill\getAssignedMaterial(), and getMaterialInfo().
Referenced by renderSkillHTML().
ilPersonalSkillsGUI::getProfileId | ( | ) |
Get profile id.
Definition at line 147 of file class.ilPersonalSkillsGUI.php.
Referenced by getGapAnalysisHTML(), listAssignedProfile(), renderSkillHTML(), and showProfileSelectorToolbar().
ilPersonalSkillsGUI::getProfileTargetItem | ( | $a_profile_id, | |
$a_levels, | |||
$a_tref_id = 0 |
|||
) |
Get profile target item.
Definition at line 1432 of file class.ilPersonalSkillsGUI.php.
References $lng, $tpl, array, and getScaleBar().
Referenced by renderSkillHTML().
ilPersonalSkillsGUI::getScaleBar | ( | $a_levels, | |
$a_activated_levels | |||
) |
Get scale bar.
Definition at line 1544 of file class.ilPersonalSkillsGUI.php.
References array.
Referenced by getActualGapItem(), getEvalItem(), getProfileTargetItem(), and getSelfEvalGapItem().
ilPersonalSkillsGUI::getSelfEvalGapItem | ( | $a_levels, | |
$a_tref_id = 0 |
|||
) |
Definition at line 1508 of file class.ilPersonalSkillsGUI.php.
References $lng, $tpl, $type, array, getGapAnalysisSelfEvalLevels(), and getScaleBar().
Referenced by renderSkillHTML().
ilPersonalSkillsGUI::getSkillDescription | ( | $skill | ) |
Get level description.
Definition at line 1618 of file class.ilPersonalSkillsGUI.php.
Referenced by renderSkillHTML().
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 382 of file class.ilPersonalSkillsGUI.php.
References array, and renderSkillHTML().
Referenced by getGapAnalysisHTML(), listAssignedProfile(), and listSkills().
ilPersonalSkillsGUI::getSuggestedResources | ( | $a_profile_id, | |
$a_levels, | |||
$a_base_skill, | |||
$a_tref_id | |||
) |
Render suggested resources.
Definition at line 1648 of file class.ilPersonalSkillsGUI.php.
References $lng, $obj_id, $r, $res, $title, $tpl, ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), array, and ilBasicSkill\lookupLevelTitle().
Referenced by renderSkillHTML().
ilPersonalSkillsGUI::hideSkill | ( | $a_skill_id, | |
$a_tref_id = 0 |
|||
) |
ilPersonalSkillsGUI::listAssignedProfile | ( | ) |
List profile.
Definition at line 1756 of file class.ilPersonalSkillsGUI.php.
References $html, $l, $s, $tpl, array, determineCurrentProfile(), getActualLevels(), getProfileId(), getSkillHTML(), setTabs(), showProfileSelectorToolbar(), and user().
ilPersonalSkillsGUI::listProfilesForGap | ( | ) |
List profiles.
Definition at line 1035 of file class.ilPersonalSkillsGUI.php.
References $tpl, determineCurrentProfile(), getGapAnalysisHTML(), and showProfileSelectorToolbar().
ilPersonalSkillsGUI::listSkills | ( | ) |
List skills.
Definition at line 333 of file class.ilPersonalSkillsGUI.php.
References $ctrl, $html, $ilCtrl, $ilUser, $lng, $path, $s, $toolbar, $tpl, $user, ilPersonalSkill\getSelectedUserSkills(), getSkillHTML(), setTabs(), and ilSkillTreeNode\STATUS_DRAFT.
ilPersonalSkillsGUI::listSkillsForAdd | ( | ) |
LIst skills for adding.
Definition at line 1005 of file class.ilPersonalSkillsGUI.php.
References $ctrl, $ilCtrl, $lng, $tabs, $tpl, and ilUtil\sendInfo().
ilPersonalSkillsGUI::removeMaterial | ( | ) |
Remove material.
Definition at line 870 of file class.ilPersonalSkillsGUI.php.
References $_GET, $ctrl, $ilCtrl, $ilUser, $lng, $user, ilPersonalSkill\removeMaterial(), and ilUtil\sendSuccess().
ilPersonalSkillsGUI::removeSkills | ( | ) |
Remove skills.
Definition at line 670 of file class.ilPersonalSkillsGUI.php.
References $_POST, $ctrl, $ilCtrl, $ilUser, $lng, $user, ilPersonalSkill\removeSkill(), and ilUtil\sendSuccess().
ilPersonalSkillsGUI::renderSkillHTML | ( | $a_top_skill_id, | |
$a_user_id = 0 , |
|||
$a_edit = false , |
|||
$a_tref_id = 0 |
|||
) |
Render skill html.
Definition at line 406 of file class.ilPersonalSkillsGUI.php.
References $ctrl, $ilCtrl, $ilUser, $lng, $path, $title, $tpl, $user, ilSkillTemplateReference\_lookupTemplateId(), ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), array, ilBasicSkill\EVAL_BY_ALL, getActualGapItem(), getEvalItem(), ilSkillTreeNodeFactory\getInstance(), getMaterials(), getProfileId(), getProfileTargetItem(), getSelfEvalGapItem(), ilPersonalSkill\getSelfEvaluationDate(), getSkillDescription(), getSuggestedResources(), ilBasicSkill\hasSelfEvaluated(), and ilSkillTreeNode\STATUS_DRAFT.
Referenced by getSkillHTML().
ilPersonalSkillsGUI::saveSelfEvaluation | ( | ) |
Save self evaluation.
Definition at line 976 of file class.ilPersonalSkillsGUI.php.
References $_GET, $_POST, $ctrl, $ilCtrl, $ilUser, $lng, $user, ilPersonalSkill\saveSelfEvaluation(), and ilUtil\sendSuccess().
ilPersonalSkillsGUI::selectMaterial | ( | ) |
Select material.
Definition at line 836 of file class.ilPersonalSkillsGUI.php.
References $_GET, $_POST, $ctrl, $ilCtrl, $ilUser, $lng, $user, $w, ilPersonalSkill\assignMaterial(), and ilUtil\sendSuccess().
ilPersonalSkillsGUI::selectProfile | ( | ) |
Select profile.
Definition at line 1357 of file class.ilPersonalSkillsGUI.php.
References $_POST, $ctrl, and $ilCtrl.
ilPersonalSkillsGUI::selfEvaluation | ( | ) |
Assign materials to skill levels.
Definition at line 898 of file class.ilPersonalSkillsGUI.php.
References $_GET, $_POST, $ctrl, $ilCtrl, $lng, $options, $si, $tab, $tabs, $toolbar, $tpl, ilSkillTemplateReference\_lookupTemplateId(), ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), array, 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 1104 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 1091 of file class.ilPersonalSkillsGUI.php.
References $a_type.
ilPersonalSkillsGUI::setGapAnalysisSelfEvalLevels | ( | array | $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 157 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::setHistoryView | ( | $a_val | ) |
Set history view.
bool | $a_val | history view |
Definition at line 177 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::setIntroText | ( | $a_val | ) |
Set intro text.
string | $a_val | intro text html |
Definition at line 197 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::setObjectSkills | ( | $a_obj_id, | |
$a_skills = null |
|||
) |
Set object skills.
int | $a_obj_id | object id |
array | $a_skills | skills array |
Definition at line 258 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::setOfflineMode | ( | $a_file_path | ) |
Definition at line 325 of file class.ilPersonalSkillsGUI.php.
ilPersonalSkillsGUI::setProfileId | ( | $a_val | ) |
Set profile id.
$a_val |
Definition at line 137 of file class.ilPersonalSkillsGUI.php.
Referenced by determineCurrentProfile().
ilPersonalSkillsGUI::setTabs | ( | $a_activate | ) |
Set tabs.
Definition at line 299 of file class.ilPersonalSkillsGUI.php.
References $ctrl, $ilCtrl, $lng, and $tabs.
Referenced by listAssignedProfile(), and listSkills().
ilPersonalSkillsGUI::showProfileSelectorToolbar | ( | ) |
Show profile selector toolbar.
Definition at line 1058 of file class.ilPersonalSkillsGUI.php.
References $ctrl, $ilCtrl, $lng, $options, $si, $toolbar, ilObject\_lookupTitle(), ilObject\_lookupType(), array, and getProfileId().
Referenced by listAssignedProfile(), and listProfilesForGap().
|
protected |
Definition at line 73 of file class.ilPersonalSkillsGUI.php.
Referenced by getEvalItem().
|
protected |
Definition at line 23 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 33 of file class.ilPersonalSkillsGUI.php.
Referenced by __construct(), addSkill(), assignMaterial(), assignMaterials(), confirmSkillRemove(), determineCurrentProfile(), executeCommand(), listSkills(), listSkillsForAdd(), removeMaterial(), removeSkills(), renderSkillHTML(), saveSelfEvaluation(), selectMaterial(), selectProfile(), selfEvaluation(), setTabs(), and showProfileSelectorToolbar().
|
protected |
Definition at line 24 of file class.ilPersonalSkillsGUI.php.
Referenced by getGapAnalysisSelfEvalLevels().
|
protected |
Definition at line 43 of file class.ilPersonalSkillsGUI.php.
Referenced by __construct().
|
protected |
Definition at line 28 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 26 of file class.ilPersonalSkillsGUI.php.
Referenced by getHistoryView().
|
protected |
Definition at line 27 of file class.ilPersonalSkillsGUI.php.
Referenced by getIntroText().
|
protected |
Definition at line 38 of file class.ilPersonalSkillsGUI.php.
Referenced by __construct(), addSkill(), assignMaterial(), assignMaterials(), confirmSkillRemove(), executeCommand(), getActualGapItem(), getEvalItem(), getGapAnalysisHTML(), getMaterials(), getProfileTargetItem(), getSelfEvalGapItem(), getSuggestedResources(), listSkills(), listSkillsForAdd(), removeMaterial(), removeSkills(), renderSkillHTML(), saveSelfEvaluation(), selectMaterial(), selfEvaluation(), setTabs(), and showProfileSelectorToolbar().
|
protected |
Definition at line 25 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 84 of file class.ilPersonalSkillsGUI.php.
Referenced by getMaterialInfo(), and getSuggestedResources().
|
protected |
Definition at line 85 of file class.ilPersonalSkillsGUI.php.
Referenced by getGapAnalysisHTML().
|
protected |
Definition at line 20 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 48 of file class.ilPersonalSkillsGUI.php.
Referenced by __construct(), and assignMaterial().
|
protected |
Definition at line 21 of file class.ilPersonalSkillsGUI.php.
|
static |
Definition at line 22 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 63 of file class.ilPersonalSkillsGUI.php.
Referenced by assignMaterial(), assignMaterials(), listSkillsForAdd(), selfEvaluation(), and setTabs().
|
protected |
Definition at line 68 of file class.ilPersonalSkillsGUI.php.
Referenced by assignMaterials(), listSkills(), selfEvaluation(), and showProfileSelectorToolbar().
|
protected |
Definition at line 58 of file class.ilPersonalSkillsGUI.php.
Referenced by assignMaterial(), assignMaterials(), confirmSkillRemove(), executeCommand(), getActualGapItem(), getEvalItem(), getMaterials(), getProfileTargetItem(), getSelfEvalGapItem(), getSkillDescription(), getSuggestedResources(), listAssignedProfile(), listProfilesForGap(), listSkills(), listSkillsForAdd(), renderSkillHTML(), and selfEvaluation().
|
protected |
Definition at line 78 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 83 of file class.ilPersonalSkillsGUI.php.
|
protected |
Definition at line 53 of file class.ilPersonalSkillsGUI.php.
Referenced by addSkill(), assignMaterial(), executeCommand(), getGapAnalysisHTML(), getMaterials(), listSkills(), removeMaterial(), removeSkills(), renderSkillHTML(), saveSelfEvaluation(), and selectMaterial().