ILIAS
Release_5_0_x_branch Revision 61816
|
Skill/Competence handling in surveys. More...
Public Member Functions | |
__construct (ilObjSurvey $a_survey) | |
Constructor. | |
read () | |
Read. | |
getSkillForQuestion ($a_question_id) | |
Get skill for question. | |
getQuestionsForSkill ($a_base_skill_id, $a_tref_id) | |
Get questions for skill. | |
addQuestionSkillAssignment ($a_question_id, $a_base_skill_id, $a_tref_id) | |
Add survey question to skill assignment. | |
removeQuestionSkillAssignment ($a_question_id) | |
Remove question skill assignment. | |
removeUsagesOfSkills ($a_skills) | |
Remove usages of skills. | |
isSkillAssignedToQuestion ($a_skill_id, $a_tref_id) | |
Is skill assigned to any question? | |
getAllAssignedSkillsAsOptions () | |
Get skill for question. | |
determineSkillLevelsForAppraisee ($a_appraisee_id, $a_self_eval=false) | |
Determine skill levels for appraisee. | |
determineMaxScale ($a_base_skill, $a_tref_id=0) | |
Determine max scales and questions. | |
writeAppraiseeSkills ($a_app_id) | |
Write appraisee skills. |
Static Public Member Functions | |
static | handleQuestionDeletion ($a_question_id, $a_obj_id) |
Remove question skill assignment. |
Protected Attributes | |
$q_skill = array() |
Skill/Competence handling in surveys.
Definition at line 12 of file class.ilSurveySkill.php.
ilSurveySkill::__construct | ( | ilObjSurvey | $a_survey | ) |
Constructor.
@return |
Definition at line 23 of file class.ilSurveySkill.php.
References 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 99 of file class.ilSurveySkill.php.
References $ilDB, and ilSkillUsage\setUsage().
ilSurveySkill::determineMaxScale | ( | $a_base_skill, | |
$a_tref_id = 0 |
|||
) |
Determine max scales and questions.
@return |
Definition at line 338 of file class.ilSurveySkill.php.
References $n, 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 246 of file class.ilSurveySkill.php.
References $results, $t, getAllAssignedSkillsAsOptions(), and getQuestionsForSkill().
Referenced by writeAppraiseeSkills().
ilSurveySkill::getAllAssignedSkillsAsOptions | ( | ) |
Get skill for question.
int | $a_question_id | question id |
Definition at line 228 of file class.ilSurveySkill.php.
References ilSkillTreeNode\_lookupTitle().
Referenced by determineSkillLevelsForAppraisee().
ilSurveySkill::getQuestionsForSkill | ( | $a_base_skill_id, | |
$a_tref_id | |||
) |
Get questions for skill.
@return |
Definition at line 77 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 62 of file class.ilSurveySkill.php.
|
static |
Remove question skill assignment.
int | $a_question_id | question id |
Definition at line 155 of file class.ilSurveySkill.php.
References $ilDB, and ilObject\_lookupType().
Referenced by SurveyQuestion\delete().
ilSurveySkill::isSkillAssignedToQuestion | ( | $a_skill_id, | |
$a_tref_id | |||
) |
Is skill assigned to any question?
@return |
Definition at line 205 of file class.ilSurveySkill.php.
References $ilDB.
Referenced by removeUsagesOfSkills().
ilSurveySkill::read | ( | ) |
Read.
@return |
Definition at line 35 of file class.ilSurveySkill.php.
References $ilDB, and SurveyQuestion\_questionExists().
Referenced by __construct().
ilSurveySkill::removeQuestionSkillAssignment | ( | $a_question_id | ) |
Remove question skill assignment.
int | $a_question_id | question id |
Definition at line 126 of file class.ilSurveySkill.php.
References $ilDB, 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 174 of file class.ilSurveySkill.php.
References isSkillAssignedToQuestion(), and ilSkillUsage\setUsage().
Referenced by removeQuestionSkillAssignment().
ilSurveySkill::writeAppraiseeSkills | ( | $a_app_id | ) |
Write appraisee skills.
@return |
Definition at line 379 of file class.ilSurveySkill.php.
References ilBasicSkill\ACHIEVED, determineSkillLevelsForAppraisee(), and ilBasicSkill\writeUserSkillLevelStatus().
|
protected |
Definition at line 14 of file class.ilSurveySkill.php.