|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Skill/Competence handling in surveys. More...
Collaboration diagram for ilSurveySkill: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... | |
| writeSelfEvalSkills (int $user_id) | |
| Write skills on self evaluation. 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.
return
Definition at line 32 of file class.ilSurveySkill.php.
References $DIC, ilLoggerFactory\getLogger(), and read().
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 108 of file class.ilSurveySkill.php.
References $db, $ilDB, and ilSkillUsage\setUsage().
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 337 of file class.ilSurveySkill.php.
References $c, $i, $n, $s, and SurveyQuestion\_instanciateQuestion().
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 252 of file class.ilSurveySkill.php.
References $l, $ld, $results, $s, $t, $title, getAllAssignedSkillsAsOptions(), and getQuestionsForSkill().
Referenced by writeAppraiseeSkills(), and writeSelfEvalSkills().
Here is the call 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 235 of file class.ilSurveySkill.php.
References ilSkillTreeNode\_lookupTitle().
Referenced by determineSkillLevelsForAppraisee().
Here is the call 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 88 of file class.ilSurveySkill.php.
References $s.
Referenced by determineSkillLevelsForAppraisee().
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 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().
Here is the call 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 212 of file class.ilSurveySkill.php.
Referenced by removeUsagesOfSkills().
Here is the caller graph for this function:| ilSurveySkill::read | ( | ) |
Read.
return
Definition at line 48 of file class.ilSurveySkill.php.
References $db, $ilDB, and SurveyQuestion\_questionExists().
Referenced by __construct().
Here is the call 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 135 of file class.ilSurveySkill.php.
References $db, $ilDB, and removeUsagesOfSkills().
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 185 of file class.ilSurveySkill.php.
References isSkillAssignedToQuestion(), and ilSkillUsage\setUsage().
Referenced by removeQuestionSkillAssignment().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSurveySkill::writeAppraiseeSkills | ( | $a_app_id | ) |
Write appraisee skills.
| int | $user_id |
Definition at line 372 of file class.ilSurveySkill.php.
References ilBasicSkill\ACHIEVED, determineSkillLevelsForAppraisee(), writeSelfEvalSkills(), and ilBasicSkill\writeUserSkillLevelStatus().
Here is the call graph for this function:| ilSurveySkill::writeSelfEvalSkills | ( | int | $user_id | ) |
Write skills on self evaluation.
| int | $user_id |
Definition at line 398 of file class.ilSurveySkill.php.
References ilBasicSkill\ACHIEVED, determineSkillLevelsForAppraisee(), ilObjSurvey\MODE_360, ilObjSurvey\MODE_SELF_EVAL, and ilBasicSkill\writeUserSkillLevelStatus().
Referenced by writeAppraiseeSkills().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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.