ILIAS
release_8 Revision v8.19
|
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 (int $a_id=0, ilSkillLevelRepository $bsc_skl_lvl_db_rep=null, ilSkillUserLevelRepository $bsc_skl_usr_lvl_db_rep=null, ilSkillTreeRepository $bsc_skl_tre_rep=null) | |
read () | |
Read data from database. More... | |
create () | |
Create skill. More... | |
delete () | |
Delete skill. More... | |
copy () | |
Copy basic skill. More... | |
addLevel (string $a_title, string $a_description, string $a_import_id="") | |
getLevelData (int $a_id=0) | |
updateLevelOrder (array $order) | |
deleteLevel (int $a_id) | |
fixLevelNumbering () | |
getSkillForLevelId (int $a_level_id) | |
getMaxLevelPerType (int $a_tref_id, string $a_type, int $a_user_id=0, int $a_self_eval=0) | |
getNextLevelFulfilmentPerType (int $a_tref_id, string $a_type, int $a_user_id=0, int $a_self_eval=0) | |
getAllLevelEntriesOfUser (int $a_tref_id, int $a_user_id=0, int $a_self_eval=0) | |
getAllHistoricLevelEntriesOfUser (int $a_tref_id, int $a_user_id=0, int $a_eval_by=0) | |
getMaxLevelPerObject (int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
getNextLevelFulfilmentPerObject (int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
getMaxLevel (int $a_tref_id, int $a_user_id=0, int $a_self_eval=0) | |
getNextLevelFulfilment (int $a_tref_id, int $a_user_id=0, int $a_self_eval=0) | |
getLastLevelPerObject (int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
getLastUpdatePerObject (int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
getTitleForCertificate () | |
getShortTitleForCertificate () | |
![]() | |
__construct (int $a_id=0) | |
setTitle (string $a_title) | |
getTitle () | |
setDescription (string $a_description) | |
getDescription () | |
setType (string $a_type) | |
getType () | |
setId (int $a_id) | |
getId () | |
setSelfEvaluation (bool $a_val) | |
getSelfEvaluation () | |
setOrderNr (int $a_val) | |
getOrderNr () | |
setImportId (string $a_val) | |
getImportId () | |
getCreationDate () | |
read () | |
Read Data of Node. More... | |
setDataRecord (array $a_record) | |
this method should only be called by class ilSCORM2004NodeFactory More... | |
setStatus (int $a_val) | |
getStatus () | |
create () | |
Create Node. More... | |
update () | |
Update Node. More... | |
delete () | |
Static Public Member Functions | |
static | lookupLevelTitle (int $a_id) |
static | lookupLevelDescription (int $a_id) |
static | lookupLevelSkillId (int $a_id) |
static | writeLevelTitle (int $a_id, string $a_title) |
static | writeLevelDescription (int $a_id, string $a_description) |
static | resetUserSkillLevelStatus (int $a_user_id, int $a_skill_id, int $a_tref_id=0, int $a_trigger_ref_id=0, bool $a_self_eval=false) |
static | getNewAchievementsPerUser (string $a_timestamp, string $a_timestamp_to=null, int $a_user_id=0, int $a_self_eval=0) |
static | writeUserSkillLevelStatus (int $a_level_id, int $a_user_id, int $a_trigger_ref_id, int $a_tref_id=0, int $a_status=ilBasicSkill::ACHIEVED, bool $a_force=false, bool $a_self_eval=false, string $a_unique_identifier="", float $a_next_level_fulfilment=0.0, string $trigger_user_id="") |
static | removeAllUserSkillLevelStatusOfObject (int $a_user_id, int $a_trigger_obj_id, bool $a_self_eval=false, string $a_unique_identifier="") |
static | removeAllUserData (int $a_user_id) |
static | hasSelfEvaluated (int $a_user_id, int $a_skill_id, int $a_tref_id) |
static | getUsageInfo (array $a_cskill_ids) |
Get title of an assigned item. More... | |
static | getCommonSkillIdForImportId (int $a_source_inst_id, int $a_skill_import_id, int $a_tref_import_id=0) |
static | getLevelIdForImportId (int $a_source_inst_id, int $a_level_import_id) |
static | getLevelIdForImportIdMatchSkill (int $a_source_inst_id, int $a_level_import_id, int $a_skill_import_id, int $a_tref_import_id=0) |
![]() | |
static | getAllStatus () |
Get all status as array, key is value, value is lang text. More... | |
static | getStatusInfo (int $a_status) |
static | _lookupTitle (int $a_obj_id, int $a_tref_id=0) |
static | _lookupDescription (int $a_obj_id) |
static | _lookupSelfEvaluation (int $a_obj_id) |
static | _lookupStatus (int $a_obj_id) |
static | _lookupType (int $a_obj_id) |
static | _writeTitle (int $a_obj_id, string $a_title) |
static | _writeDescription (int $a_obj_id, string $a_description) |
static | _writeOrderNr (int $a_obj_id, int $a_nr) |
static | uniqueTypesCheck (array $a_items) |
Check for unique types. More... | |
static | getAllSelfEvaluationNodes () |
static | getSelectableSkills () |
static | getIconPath (int $a_obj_id, string $a_type, string $a_size="", int $a_status=0) |
static | getAllCSkillIdsForNodeIds (array $a_node_ids) |
Get all possible common skill IDs for node IDs. More... | |
Data Fields | |
const | ACHIEVED = 1 |
const | NOT_ACHIEVED = 0 |
const | EVAL_BY_OTHERS = 0 |
const | EVAL_BY_SELF = 1 |
const | EVAL_BY_ALL = 2 |
![]() | |
const | STATUS_PUBLISH = 0 |
const | STATUS_DRAFT = 1 |
const | STATUS_OUTDATED = 2 |
Static Protected Member Functions | |
static | hasRecentSelfEvaluation (int $a_user_id, int $a_skill_id, int $a_tref_id=0, int $a_trigger_ref_id=0) |
![]() | |
static | _lookup (int $a_obj_id, string $a_field) |
Protected Attributes | |
ilObjUser | $user |
ilSkillLevelRepository | $bsc_skl_lvl_db_rep |
ilSkillUserLevelRepository | $bsc_skl_usr_lvl_db_rep |
ilSkillTreeRepository | $bsc_skl_tre_rep |
![]() | |
ilDBInterface | $db |
ILIAS Skill Service SkillService | $skill_service |
string | $type = "" |
int | $id = 0 |
string | $title = "" |
string | $description = "" |
bool | $self_eval = false |
int | $order_nr = 0 |
string | $import_id = "" |
string | $creation_date = "" |
int | $status = 0 |
array | $data_record = [] |
Additional Inherited Members | |
![]() | |
setCreationDate (string $a_val) | |
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 Basic Skill
Definition at line 24 of file class.ilBasicSkill.php.
ilBasicSkill::__construct | ( | int | $a_id = 0 , |
ilSkillLevelRepository | $bsc_skl_lvl_db_rep = null , |
||
ilSkillUserLevelRepository | $bsc_skl_usr_lvl_db_rep = null , |
||
ilSkillTreeRepository | $bsc_skl_tre_rep = null |
||
) |
Definition at line 39 of file class.ilBasicSkill.php.
References $bsc_skl_lvl_db_rep, $bsc_skl_tre_rep, $bsc_skl_usr_lvl_db_rep, $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilSkillTreeNode\setType(), and ILIAS\Repository\user().
ilBasicSkill::addLevel | ( | string | $a_title, |
string | $a_description, | ||
string | $a_import_id = "" |
||
) |
Definition at line 129 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId().
ilBasicSkill::copy | ( | ) |
Copy basic skill.
Definition at line 102 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getDescription(), getLevelData(), ilSkillTreeNode\getOrderNr(), ilSkillTreeNode\getSelfEvaluation(), ilSkillTreeNode\getTitle(), and ilSkillTreeNode\getType().
ilBasicSkill::create | ( | ) |
Create skill.
Definition at line 82 of file class.ilBasicSkill.php.
ilBasicSkill::delete | ( | ) |
Delete skill.
Definition at line 90 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId().
ilBasicSkill::deleteLevel | ( | int | $a_id | ) |
Definition at line 191 of file class.ilBasicSkill.php.
ilBasicSkill::fixLevelNumbering | ( | ) |
Definition at line 196 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId().
ilBasicSkill::getAllHistoricLevelEntriesOfUser | ( | int | $a_tref_id, |
int | $a_user_id = 0 , |
||
int | $a_eval_by = 0 |
||
) |
Definition at line 441 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and ILIAS\Repository\user().
ilBasicSkill::getAllLevelEntriesOfUser | ( | int | $a_tref_id, |
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 428 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and ILIAS\Repository\user().
|
static |
Definition at line 608 of file class.ilBasicSkill.php.
References $DIC.
Referenced by ilAssQuestionSkillAssignmentImporter\getSkillIdMapping(), ilSurveyDataSet\importRecord(), and ilSkillDataSet\importRecord().
ilBasicSkill::getLastLevelPerObject | ( | int | $a_tref_id, |
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 542 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and ILIAS\Repository\user().
ilBasicSkill::getLastUpdatePerObject | ( | int | $a_tref_id, |
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 562 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and ILIAS\Repository\user().
ilBasicSkill::getLevelData | ( | int | $a_id = 0 | ) |
Definition at line 135 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId().
Referenced by ilBasicSkillTemplate\copy(), copy(), getMaxLevel(), getMaxLevelPerObject(), and getMaxLevelPerType().
|
static |
Definition at line 627 of file class.ilBasicSkill.php.
References $DIC.
Referenced by ilTestSkillLevelThresholdImporter\getLevelIdMapping(), and ilSkillDataSet\importRecord().
|
static |
Definition at line 636 of file class.ilBasicSkill.php.
References lookupLevelSkillId().
Referenced by ilSurveyDataSet\importRecord().
ilBasicSkill::getMaxLevel | ( | int | $a_tref_id, |
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 501 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), getLevelData(), and ILIAS\Repository\user().
ilBasicSkill::getMaxLevelPerObject | ( | int | $a_tref_id, |
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 459 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), getLevelData(), and ILIAS\Repository\user().
ilBasicSkill::getMaxLevelPerType | ( | int | $a_tref_id, |
string | $a_type, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 386 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), getLevelData(), and ILIAS\Repository\user().
|
static |
Definition at line 277 of file class.ilBasicSkill.php.
Referenced by ilSkillLearningHistoryProvider\getEntries(), and ilSkillNotifications\run().
ilBasicSkill::getNextLevelFulfilment | ( | int | $a_tref_id, |
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 515 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and ILIAS\Repository\user().
ilBasicSkill::getNextLevelFulfilmentPerObject | ( | int | $a_tref_id, |
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 481 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and ILIAS\Repository\user().
ilBasicSkill::getNextLevelFulfilmentPerType | ( | int | $a_tref_id, |
string | $a_type, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 408 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and ILIAS\Repository\user().
ilBasicSkill::getShortTitleForCertificate | ( | ) |
Definition at line 593 of file class.ilBasicSkill.php.
ilBasicSkill::getSkillForLevelId | ( | int | $a_level_id | ) |
Definition at line 202 of file class.ilBasicSkill.php.
References getSkillForLevelId().
Referenced by getSkillForLevelId().
ilBasicSkill::getTitleForCertificate | ( | ) |
Definition at line 588 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getTitle().
|
static |
Get title of an assigned item.
array{skill_id | int, tref_id: int}[] $a_cskill_ids array of common skill ids |
Implements ilSkillUsageInfo.
Definition at line 598 of file class.ilBasicSkill.php.
References ilSkillUsage\getUsageInfoGeneric(), and ilSkillUsage\USER_ASSIGNED.
|
staticprotected |
Definition at line 252 of file class.ilBasicSkill.php.
|
static |
Definition at line 528 of file class.ilBasicSkill.php.
Referenced by ilPersonalSkillsGUI\getSuggestedResourcesForProfile(), ilPersonalSkillsGUI\listAssignedProfile(), and ilPersonalSkillsGUI\renderSkillHTML().
|
static |
|
static |
Definition at line 160 of file class.ilBasicSkill.php.
References $DIC.
Referenced by getLevelIdForImportIdMatchSkill(), ilSkillDataSet\importRecord(), and writeUserSkillLevelStatus().
|
static |
Definition at line 142 of file class.ilBasicSkill.php.
References $DIC.
Referenced by ilSkillProfileGUI\confirmLevelAssignmentRemoval(), ilBasicSkillGUI\confirmLevelDeletion(), ilSkillProfileLevelsTableGUI\fillRow(), ilContSkillMemberTableGUI\fillRow(), ilPersonalSkillsGUI\getAllSuggestedResources(), ilSkillLearningHistoryProvider\getEntries(), ilSkillNotifications\sendMail(), ilBasicSkillTemplateGUI\setLevelHead(), and ilBasicSkillGUI\setLevelHead().
ilBasicSkill::read | ( | ) |
Read data from database.
Definition at line 74 of file class.ilBasicSkill.php.
|
static |
Definition at line 376 of file class.ilBasicSkill.php.
Referenced by ilSkillObjDeletionHandler\processDeletion().
|
static |
Definition at line 353 of file class.ilBasicSkill.php.
Referenced by ilContainerMemberSkills\publish(), and ilContainerMemberSkills\removeAllSkillLevels().
|
static |
Definition at line 213 of file class.ilBasicSkill.php.
References $DIC, $ilDB, and $update.
Referenced by ilPersonalSkill\saveSelfEvaluation().
ilBasicSkill::updateLevelOrder | ( | array | $order | ) |
Definition at line 185 of file class.ilBasicSkill.php.
|
static |
|
static |
|
static |
Definition at line 292 of file class.ilBasicSkill.php.
References $DIC, $ilDB, $update, and lookupLevelSkillId().
Referenced by ilSkillAppEventListener\handleEvent(), ilTestSkillEvaluation\invokeSkillLevelTrigger(), ilContainerMemberSkills\publish(), ilPersonalSkill\saveSelfEvaluation(), ilSurveySkill\writeAndAddAppraiseeSkills(), ilSurveySkill\writeAndAddIndFeedbackSkills(), and ilSurveySkill\writeAndAddSelfEvalSkills().
|
protected |
Definition at line 27 of file class.ilBasicSkill.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file class.ilBasicSkill.php.
Referenced by __construct().
|
protected |
Definition at line 28 of file class.ilBasicSkill.php.
Referenced by __construct().
|
protected |
Definition at line 26 of file class.ilBasicSkill.php.
const ilBasicSkill::ACHIEVED = 1 |
Definition at line 32 of file class.ilBasicSkill.php.
Referenced by ilSkillUserLevelDBRepository\getNewAchievementsPerUser(), ilSkillUserLevelDBRepository\hasRecentSelfEvaluation(), ilTestSkillEvaluation\invokeSkillLevelTrigger(), ilContainerMemberSkills\publish(), ilSkillUserLevelDBRepository\resetUserSkillLevelStatus(), ilPersonalSkill\saveSelfEvaluation(), ilSurveySkill\writeAndAddAppraiseeSkills(), ilSurveySkill\writeAndAddIndFeedbackSkills(), ilSurveySkill\writeAndAddSelfEvalSkills(), and ilSkillUserLevelDBRepository\writeUserSkillLevelStatus().
const ilBasicSkill::EVAL_BY_ALL = 2 |
Definition at line 37 of file class.ilBasicSkill.php.
Referenced by ilSkillUserLevelDBRepository\getAllHistoricLevelEntriesOfUser(), and ilPersonalSkillsGUI\renderSkillHTML().
const ilBasicSkill::EVAL_BY_OTHERS = 0 |
Definition at line 35 of file class.ilBasicSkill.php.
Referenced by ilPersonalSkillsGUI\renderSkillHTML().
const ilBasicSkill::EVAL_BY_SELF = 1 |
Definition at line 36 of file class.ilBasicSkill.php.
Referenced by ilPersonalSkillsGUI\getLatestEntriesForSkillHTML(), ilPersonalSkillsGUI\getNonLatestEntriesForSkillHTML(), ilPersonalSkillsGUI\getSkillEntriesHeader(), and ilPersonalSkillsGUI\renderSkillHTML().
const ilBasicSkill::NOT_ACHIEVED = 0 |
Definition at line 33 of file class.ilBasicSkill.php.