ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Skill/Competence handling in surveys. More...
Public Member Functions | |
__construct (ilObjSurvey $a_survey) | |
Constructor. More... | |
read () | |
Read. More... | |
getSkillForQuestion ($a_question_id) | |
Get skill for question. More... | |
getQuestionsForSkill ($a_base_skill_id, $a_tref_id) | |
Get questions for skill. More... | |
addQuestionSkillAssignment ($a_question_id, $a_base_skill_id, $a_tref_id) | |
Add survey question to skill assignment. More... | |
removeQuestionSkillAssignment ($a_question_id) | |
Remove question skill assignment. More... | |
removeUsagesOfSkills ($a_skills) | |
Remove usages of skills. More... | |
isSkillAssignedToQuestion ($a_skill_id, $a_tref_id) | |
Is skill assigned to any question? More... | |
getAllAssignedSkillsAsOptions () | |
Get skill for question. More... | |
determineSkillLevelsForAppraisee ($a_appraisee_id, $a_self_eval=false) | |
Determine skill levels for appraisee. More... | |
determineMaxScale ($a_base_skill, $a_tref_id=0) | |
Determine max scales and questions. More... | |
writeAppraiseeSkills ($a_app_id) | |
Write appraisee skills. More... | |
Static Public Member Functions | |
static | handleQuestionDeletion ($a_question_id, $a_obj_id) |
Remove question skill assignment. More... | |
Protected Attributes | |
$db | |
$q_skill = array() | |
$log | |
Skill/Competence handling in surveys.
Definition at line 12 of file class.ilSurveySkill.php.
ilSurveySkill::__construct | ( | ilObjSurvey | $a_survey | ) |
Constructor.
Definition at line 32 of file class.ilSurveySkill.php.
References $DIC, ilLoggerFactory\getLogger(), and read().
ilSurveySkill::addQuestionSkillAssignment | ( | $a_question_id, | |
$a_base_skill_id, | |||
$a_tref_id | |||
) |
Add survey question to skill assignment.
int | $a_question_id | question id |
int | $a_base_skill_id | base skill id |
int | $a_tref_id | skill template reference id (0, if no template involved) |
Definition at line 108 of file class.ilSurveySkill.php.
References $db, $ilDB, array, and ilSkillUsage\setUsage().
ilSurveySkill::determineMaxScale | ( | $a_base_skill, | |
$a_tref_id = 0 |
|||
) |
Determine max scales and questions.
Definition at line 337 of file class.ilSurveySkill.php.
References $i, $n, $s, and SurveyQuestion\_instanciateQuestion().
ilSurveySkill::determineSkillLevelsForAppraisee | ( | $a_appraisee_id, | |
$a_self_eval = false |
|||
) |
Determine skill levels for appraisee.
$a_appraisee_id | int user id of appraisee |
Definition at line 252 of file class.ilSurveySkill.php.
References $l, $results, $s, $t, $title, array, getAllAssignedSkillsAsOptions(), and getQuestionsForSkill().
Referenced by writeAppraiseeSkills().
ilSurveySkill::getAllAssignedSkillsAsOptions | ( | ) |
Get skill for question.
int | $a_question_id | question id |
Definition at line 235 of file class.ilSurveySkill.php.
References ilSkillTreeNode\_lookupTitle(), and array.
Referenced by determineSkillLevelsForAppraisee().
ilSurveySkill::getQuestionsForSkill | ( | $a_base_skill_id, | |
$a_tref_id | |||
) |
Get questions for skill.
Definition at line 88 of file class.ilSurveySkill.php.
Referenced by determineSkillLevelsForAppraisee().
ilSurveySkill::getSkillForQuestion | ( | $a_question_id | ) |
Get skill for question.
int | $a_question_id | question id |
Definition at line 74 of file class.ilSurveySkill.php.
|
static |
Remove question skill assignment.
int | $a_question_id | question id |
Definition at line 165 of file class.ilSurveySkill.php.
References $DIC, $ilDB, and ilObject\_lookupType().
Referenced by SurveyQuestion\delete().
ilSurveySkill::isSkillAssignedToQuestion | ( | $a_skill_id, | |
$a_tref_id | |||
) |
Is skill assigned to any question?
Definition at line 212 of file class.ilSurveySkill.php.
Referenced by removeUsagesOfSkills().
ilSurveySkill::read | ( | ) |
Read.
Definition at line 48 of file class.ilSurveySkill.php.
References $db, $ilDB, SurveyQuestion\_questionExists(), and array.
Referenced by __construct().
ilSurveySkill::removeQuestionSkillAssignment | ( | $a_question_id | ) |
Remove question skill assignment.
int | $a_question_id | question id |
Definition at line 135 of file class.ilSurveySkill.php.
References $db, $ilDB, array, and removeUsagesOfSkills().
ilSurveySkill::removeUsagesOfSkills | ( | $a_skills | ) |
Remove usages of skills.
This function checks, if the skills are really not in use anymore
array | array of arrays with keys "skill_id" and "tref_id" |
Definition at line 185 of file class.ilSurveySkill.php.
References array, isSkillAssignedToQuestion(), and ilSkillUsage\setUsage().
Referenced by removeQuestionSkillAssignment().
ilSurveySkill::writeAppraiseeSkills | ( | $a_app_id | ) |
Write appraisee skills.
Definition at line 373 of file class.ilSurveySkill.php.
References ilBasicSkill\ACHIEVED, determineSkillLevelsForAppraisee(), and ilBasicSkill\writeUserSkillLevelStatus().
|
protected |
Definition at line 17 of file class.ilSurveySkill.php.
Referenced by addQuestionSkillAssignment(), isSkillAssignedToQuestion(), read(), and removeQuestionSkillAssignment().
|
protected |
Definition at line 24 of file class.ilSurveySkill.php.
|
protected |
Definition at line 19 of file class.ilSurveySkill.php.