| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
Skill/Competence handling in surveys. More...
 Collaboration diagram for ilSurveySkill:
 Collaboration diagram for ilSurveySkill:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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 ilSkillUsage\setUsage().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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 ilObject\_lookupType().
Referenced by SurveyQuestion\delete().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSurveySkill::isSkillAssignedToQuestion | ( | $a_skill_id, | |
| $a_tref_id | |||
| ) | 
Is skill assigned to any question?
| @return | 
Definition at line 205 of file class.ilSurveySkill.php.
Referenced by removeUsagesOfSkills().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSurveySkill::read | ( | ) | 
Read.
| @return | 
Definition at line 35 of file class.ilSurveySkill.php.
References SurveyQuestion\_questionExists().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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 removeUsagesOfSkills().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 14 of file class.ilSurveySkill.php.