ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilObjSurvey $a_survey) | |
read () | |
getSkillForQuestion (int $a_question_id) | |
Get skill for question. More... | |
getQuestionsForSkill (int $a_base_skill_id, int $a_tref_id) | |
Get questions for skill. More... | |
addQuestionSkillAssignment (int $a_question_id, int $a_base_skill_id, int $a_tref_id) | |
Add survey question to skill assignment. More... | |
removeQuestionSkillAssignment (int $a_question_id) | |
removeUsagesOfSkills (array $a_skills) | |
Remove usages of skills This function checks, if the skills are really not in use anymore. More... | |
isSkillAssignedToQuestion (int $a_skill_id, int $a_tref_id) | |
getAllAssignedSkillsAsOptions () | |
determineSkillLevelsForAppraisee (int $a_appraisee_id, bool $a_self_eval=false, int $finished_id=0) | |
Determine skill levels for appraisee. More... | |
determineMaxScale (int $a_base_skill, int $a_tref_id=0) | |
writeAndAddAppraiseeSkills (int $user_id) | |
Write appraisee skills and add them to user's competence records. More... | |
writeAndAddIndFeedbackSkills (int $finished_id, int $appr_id, string $rater_id) | |
writeAndAddSelfEvalSkills (int $user_id) | |
Write skills on self evaluation and add them to user's competence records. More... | |
Static Public Member Functions | |
static | handleQuestionDeletion (int $a_question_id, int $a_obj_id) |
Remove question skill assignment. More... | |
Protected Attributes | |
ilObjSurvey | $survey |
ilDBInterface | $db |
array | $q_skill = array() |
ilLogger | $log |
ILIAS Skill Service SkillProfileService | $skill_profile_service |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Skill/Competence handling in surveys
Definition at line 23 of file class.ilSurveySkill.php.
ilSurveySkill::__construct | ( | ilObjSurvey | $a_survey | ) |
Definition at line 35 of file class.ilSurveySkill.php.
References $DIC, ilLoggerFactory\getLogger(), and read().
ilSurveySkill::addQuestionSkillAssignment | ( | int | $a_question_id, |
int | $a_base_skill_id, | ||
int | $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 102 of file class.ilSurveySkill.php.
References $db, $ilDB, and ilSkillUsage\setUsage().
ilSurveySkill::determineMaxScale | ( | int | $a_base_skill, |
int | $a_tref_id = 0 |
||
) |
Definition at line 337 of file class.ilSurveySkill.php.
References $c, $i, and SurveyQuestion\_instanciateQuestion().
ilSurveySkill::determineSkillLevelsForAppraisee | ( | int | $a_appraisee_id, |
bool | $a_self_eval = false , |
||
int | $finished_id = 0 |
||
) |
Determine skill levels for appraisee.
Definition at line 239 of file class.ilSurveySkill.php.
References $results, getAllAssignedSkillsAsOptions(), and getQuestionsForSkill().
Referenced by writeAndAddAppraiseeSkills(), writeAndAddIndFeedbackSkills(), and writeAndAddSelfEvalSkills().
ilSurveySkill::getAllAssignedSkillsAsOptions | ( | ) |
Definition at line 225 of file class.ilSurveySkill.php.
References ilSkillTreeNode\_lookupTitle().
Referenced by determineSkillLevelsForAppraisee().
ilSurveySkill::getQuestionsForSkill | ( | int | $a_base_skill_id, |
int | $a_tref_id | ||
) |
Get questions for skill.
Definition at line 81 of file class.ilSurveySkill.php.
Referenced by determineSkillLevelsForAppraisee().
ilSurveySkill::getSkillForQuestion | ( | int | $a_question_id | ) |
Get skill for question.
int | $a_question_id | question id |
Definition at line 71 of file class.ilSurveySkill.php.
|
static |
Remove question skill assignment.
Definition at line 159 of file class.ilSurveySkill.php.
References ilObject\_exists(), ilObject\_lookupType(), and ilLoggerFactory\getLogger().
Referenced by SurveyQuestion\delete().
ilSurveySkill::isSkillAssignedToQuestion | ( | int | $a_skill_id, |
int | $a_tref_id | ||
) |
Definition at line 203 of file class.ilSurveySkill.php.
Referenced by removeUsagesOfSkills().
ilSurveySkill::read | ( | ) |
Definition at line 46 of file class.ilSurveySkill.php.
References $db, $ilDB, SurveyQuestion\_questionExists(), and ILIAS\Repository\int().
Referenced by __construct().
ilSurveySkill::removeQuestionSkillAssignment | ( | int | $a_question_id | ) |
Definition at line 128 of file class.ilSurveySkill.php.
References $db, $ilDB, and removeUsagesOfSkills().
ilSurveySkill::removeUsagesOfSkills | ( | array | $a_skills | ) |
Remove usages of skills This function checks, if the skills are really not in use anymore.
array | $a_skills | array of arrays with keys "skill_id" and "tref_id" |
Definition at line 184 of file class.ilSurveySkill.php.
References isSkillAssignedToQuestion(), and ilSkillUsage\setUsage().
Referenced by removeQuestionSkillAssignment().
ilSurveySkill::writeAndAddAppraiseeSkills | ( | int | $user_id | ) |
Write appraisee skills and add them to user's competence records.
Definition at line 370 of file class.ilSurveySkill.php.
References ilBasicSkill\ACHIEVED, ilPersonalSkill\addPersonalSkill(), determineSkillLevelsForAppraisee(), ILIAS\Repository\int(), writeAndAddSelfEvalSkills(), and ilBasicSkill\writeUserSkillLevelStatus().
ilSurveySkill::writeAndAddIndFeedbackSkills | ( | int | $finished_id, |
int | $appr_id, | ||
string | $rater_id | ||
) |
Definition at line 404 of file class.ilSurveySkill.php.
References ilBasicSkill\ACHIEVED, ilPersonalSkill\addPersonalSkill(), determineSkillLevelsForAppraisee(), ILIAS\Repository\int(), and ilBasicSkill\writeUserSkillLevelStatus().
ilSurveySkill::writeAndAddSelfEvalSkills | ( | int | $user_id | ) |
Write skills on self evaluation and add them to user's competence records.
Definition at line 437 of file class.ilSurveySkill.php.
References ilBasicSkill\ACHIEVED, ilPersonalSkill\addPersonalSkill(), determineSkillLevelsForAppraisee(), ILIAS\Repository\int(), ilObjSurvey\MODE_360, ilObjSurvey\MODE_SELF_EVAL, and ilBasicSkill\writeUserSkillLevelStatus().
Referenced by writeAndAddAppraiseeSkills().
|
protected |
Definition at line 26 of file class.ilSurveySkill.php.
Referenced by addQuestionSkillAssignment(), isSkillAssignedToQuestion(), read(), and removeQuestionSkillAssignment().
|
protected |
Definition at line 32 of file class.ilSurveySkill.php.
|
protected |
Definition at line 31 of file class.ilSurveySkill.php.
|
protected |
Definition at line 33 of file class.ilSurveySkill.php.
|
protected |
Definition at line 25 of file class.ilSurveySkill.php.