ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Basic Skill. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor @access public. More... | |
read () | |
Read data from database. More... | |
create () | |
Create skill. More... | |
delete () | |
Delete skill. More... | |
copy () | |
Copy basic skill. More... | |
addLevel ($a_title, $a_description, $a_import_id="") | |
Add new level. More... | |
getMaxLevelNr () | |
Get maximum level nr. More... | |
getLevelData ($a_id=0) | |
Get level data. More... | |
updateLevelOrder ($order) | |
Update level order. More... | |
deleteLevel ($a_id) | |
Delete level. More... | |
fixLevelNumbering () | |
Fix level numbering. More... | |
getSkillForLevelId ($a_level_id) | |
Get skill for level id. More... | |
getMaxLevelPerType ($a_tref_id, $a_type, $a_user_id=0, $a_self_eval=0) | |
Get max levels per type. More... | |
getAllLevelEntriesOfUser ($a_tref_id, $a_user_id=0, $a_self_eval=0) | |
Get all level entries. More... | |
getAllHistoricLevelEntriesOfUser ($a_tref_id, $a_user_id=0, $a_eval_by=0) | |
Get all historic level entries. More... | |
getMaxLevelPerObject ($a_tref_id, $a_object_id, $a_user_id=0, $a_self_eval=0) | |
Get max levels per object. More... | |
getMaxLevel ($a_tref_id, $a_user_id=0, $a_self_eval=0) | |
Get max levels per object. More... | |
getLastLevelPerObject ($a_tref_id, $a_object_id, $a_user_id=0, $a_self_eval=0) | |
Get last level set per object. More... | |
getLastUpdatePerObject ($a_tref_id, $a_object_id, $a_user_id=0, $a_self_eval=0) | |
Get last update per object. More... | |
getTitleForCertificate () | |
Get title for certificate. More... | |
getShortTitleForCertificate () | |
Get short title for certificate. More... | |
![]() | |
__construct ($a_id=0) | |
setTitle ($a_title) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
setType ($a_type) | |
Set type. More... | |
getType () | |
Get type. More... | |
setId ($a_id) | |
Set Node ID. More... | |
getId () | |
Get Node ID. More... | |
setSelfEvaluation ($a_val) | |
Set self evaluation. More... | |
getSelfEvaluation () | |
Get self evaluation. More... | |
setOrderNr ($a_val) | |
Set order nr. More... | |
getOrderNr () | |
Get order nr. More... | |
setImportId ($a_val) | |
Set import id. More... | |
getImportId () | |
Get import id. More... | |
getCreationDate () | |
Get creation date. More... | |
read () | |
Read Data of Node. More... | |
setDataRecord ($a_record) | |
this method should only be called by class ilSCORM2004NodeFactory More... | |
setStatus ($a_val) | |
Set status. More... | |
getStatus () | |
Get status. More... | |
create () | |
Create Node. More... | |
update () | |
Update Node. More... | |
delete () | |
Delete Node. More... | |
Static Public Member Functions | |
static | lookupLevelTitle ($a_id) |
Lookup level title. More... | |
static | lookupLevelDescription ($a_id) |
Lookup level description. More... | |
static | lookupLevelSkillId ($a_id) |
Lookup level skill id. More... | |
static | writeLevelTitle ($a_id, $a_title) |
Write level title. More... | |
static | writeLevelDescription ($a_id, $a_description) |
Write level description. More... | |
static | resetUserSkillLevelStatus ($a_user_id, $a_skill_id, $a_tref_id=0, $a_trigger_ref_id=0, $a_self_eval=false) |
Reset skill level status. More... | |
static | getNewAchievementsPerUser ($a_timestamp) |
Get new achievements. More... | |
static | writeUserSkillLevelStatus ( $a_level_id, $a_user_id, $a_trigger_ref_id, $a_tref_id=0, $a_status=ilBasicSkill::ACHIEVED, $a_force=false, $a_self_eval=false, $a_unique_identifier="") |
Write skill level status. More... | |
static | removeAllUserSkillLevelStatusOfObject ($a_user_id, $a_trigger_obj_id, $a_self_eval=false, $a_unique_identifier="") |
Remove a user skill completely. More... | |
static | removeAllUserData ($a_user_id) |
Remove all data of a user. More... | |
static | hasSelfEvaluated ($a_user_id, $a_skill_id, $a_tref_id) |
Has use self evaluated a skill? More... | |
static | _lookupCertificate ($a_skill_id, $a_skill_level_id) |
Checks whether a skill level has a certificate or not. More... | |
static | getUsageInfo ($a_cskill_ids, &$a_usages) |
Get usage info. More... | |
static | getCommonSkillIdForImportId ($a_source_inst_id, $a_skill_import_id, $a_tref_import_id=0) |
Get common skill ids for import IDs (newest first) More... | |
static | getLevelIdForImportId ($a_source_inst_id, $a_level_import_id) |
Get level ids for import IDs (newest first) More... | |
static | getLevelIdForImportIdMatchSkill ($a_source_inst_id, $a_level_import_id, $a_skill_import_id, $a_tref_import_id=0) |
Get level ids for import Ids matching common skills. More... | |
![]() | |
static | getAllStatus () |
Get all status. More... | |
static | getStatusInfo ($a_status) |
Get status info. More... | |
static | _lookupTitle ($a_obj_id, $a_tref_id=0) |
Lookup Title. More... | |
static | _lookupSelfEvaluation ($a_obj_id) |
Lookup self evaluation. More... | |
static | _lookupStatus ($a_obj_id) |
Lookup Status. More... | |
static | _lookupType ($a_obj_id) |
Lookup Type. More... | |
static | _writeTitle ($a_obj_id, $a_title) |
Write Title. More... | |
static | _writeOrderNr ($a_obj_id, $a_nr) |
Write Order Nr. More... | |
static | putInTree ($a_obj, $a_parent_id="", $a_target_node_id="") |
Put this object into the skill tree. More... | |
static | getTree ($a_slm_obj_id) |
Get scorm module editing tree. More... | |
static | uniqueTypesCheck ($a_items) |
Check for unique types. More... | |
static | clipboardCut ($a_tree_id, $a_ids) |
Cut and copy a set of skills/skill categories into the clipboard. More... | |
static | clipboardCopy ($a_tree_id, $a_ids) |
Copy a set of skills/skill categories into the clipboard. More... | |
static | insertItemsFromClip ($a_type, $a_obj_id) |
Insert basic skills from clipboard. More... | |
static | clearClipboard () |
Remove all skill items from clipboard. More... | |
static | pasteTree ( $a_item_id, $a_parent_id, $a_target, $a_insert_time, &$a_copied_nodes, $a_as_copy=false, $a_add_suffix=false) |
Paste item (tree) from clipboard to skill tree. More... | |
static | isInTree ($a_id) |
Is id in tree? More... | |
static | getAllSelfEvaluationNodes () |
Get all self evaluation nodes. More... | |
static | getTopTemplates () |
Get top skill templates and template categories. More... | |
static | getSelectableSkills () |
Get selectable skills. More... | |
static | saveChildsOrder ($a_par_id, $a_childs_order, $a_templates=false) |
Save childs order. More... | |
static | getIconPath ($a_obj_id, $a_type, $a_size="", $a_status=0) |
Get icon path. More... | |
static | findSkills ($a_term) |
Find skills. More... | |
static | getAllCSkillIdsForNodeIds (array $a_node_ids) |
Get all possible common skill IDs for node IDs. More... | |
static | getUsageInfo ($a_cskill_ids, &$a_usages) |
Get title of an assigned item. 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 |
$id | |
![]() | |
const | STATUS_PUBLISH = 0 |
const | STATUS_DRAFT = 1 |
const | STATUS_OUTDATED = 2 |
$type | |
$id | |
$title | |
Static Protected Member Functions | |
static | lookupLevelProperty ($a_id, $a_prop) |
Lookup level property. More... | |
static | writeLevelProperty ($a_id, $a_prop, $a_value, $a_type) |
Write level property. More... | |
static | hasRecentSelfEvaluation ($a_user_id, $a_skill_id, $a_tref_id=0, $a_trigger_ref_id=0) |
Has recent self evaluation. More... | |
![]() | |
static | _lookup ($a_obj_id, $a_field) |
Lookup Title. More... | |
Protected Attributes | |
$db | |
$user | |
![]() | |
$db | |
Additional Inherited Members | |
![]() | |
setCreationDate ($a_val) | |
Set creation date. More... | |
ilBasicSkill::__construct | ( | $a_id = 0 | ) |
Constructor @access public.
Reimplemented from ilSkillTreeNode.
Reimplemented in ilBasicSkillTemplate.
Definition at line 41 of file class.ilBasicSkill.php.
References $DIC, ilSkillTreeNode\setType(), and user().
|
static |
Checks whether a skill level has a certificate or not.
int | skill id |
int | skill level id |
Definition at line 1006 of file class.ilBasicSkill.php.
ilBasicSkill::addLevel | ( | $a_title, | |
$a_description, | |||
$a_import_id = "" |
|||
) |
Add new level.
string | title |
string | description |
Definition at line 123 of file class.ilBasicSkill.php.
References $db, $ilDB, ilSkillTreeNode\getId(), getMaxLevelNr(), and ilUtil\now().
ilBasicSkill::copy | ( | ) |
Copy basic skill.
Reimplemented in ilBasicSkillTemplate.
Definition at line 91 of file class.ilBasicSkill.php.
References getLevelData(), ilSkillTreeNode\getOrderNr(), ilSkillTreeNode\getSelfEvaluation(), ilSkillTreeNode\getTitle(), and ilSkillTreeNode\getType().
ilBasicSkill::create | ( | ) |
Create skill.
Reimplemented from ilSkillTreeNode.
Definition at line 63 of file class.ilBasicSkill.php.
ilBasicSkill::delete | ( | ) |
Delete skill.
Reimplemented from ilSkillTreeNode.
Definition at line 71 of file class.ilBasicSkill.php.
ilBasicSkill::deleteLevel | ( | $a_id | ) |
ilBasicSkill::fixLevelNumbering | ( | ) |
Fix level numbering.
return
Definition at line 325 of file class.ilBasicSkill.php.
ilBasicSkill::getAllHistoricLevelEntriesOfUser | ( | $a_tref_id, | |
$a_user_id = 0 , |
|||
$a_eval_by = 0 |
|||
) |
Get all historic level entries.
return
Definition at line 779 of file class.ilBasicSkill.php.
References $db, $ilDB, $ilUser, $user, and EVAL_BY_ALL.
ilBasicSkill::getAllLevelEntriesOfUser | ( | $a_tref_id, | |
$a_user_id = 0 , |
|||
$a_self_eval = 0 |
|||
) |
Get all level entries.
return
Definition at line 748 of file class.ilBasicSkill.php.
|
static |
Get common skill ids for import IDs (newest first)
int | $a_source_inst_id | source installation id, must be <>0 |
int | $a_skill_import_id | source skill id (type basic skill ("skll") or basic skill template ("sktp")) |
int | $a_tref_import_id | source template reference id (if > 0 skill_import_id will be of type "sktp") |
Definition at line 1047 of file class.ilBasicSkill.php.
References $DIC, $ilDB, $results, $t, and ilSkillTemplateReference\_lookupTemplateId().
Referenced by getLevelIdForImportIdMatchSkill(), ilAssQuestionSkillAssignmentImporter\getSkillIdMapping(), ilSurveyDataSet\importRecord(), and ilSkillDataSet\importRecord().
ilBasicSkill::getLastLevelPerObject | ( | $a_tref_id, | |
$a_object_id, | |||
$a_user_id = 0 , |
|||
$a_self_eval = 0 |
|||
) |
Get last level set per object.
return
Definition at line 916 of file class.ilBasicSkill.php.
ilBasicSkill::getLastUpdatePerObject | ( | $a_tref_id, | |
$a_object_id, | |||
$a_user_id = 0 , |
|||
$a_self_eval = 0 |
|||
) |
Get last update per object.
return
Definition at line 947 of file class.ilBasicSkill.php.
ilBasicSkill::getLevelData | ( | $a_id = 0 | ) |
Get level data.
Definition at line 162 of file class.ilBasicSkill.php.
Referenced by copy(), ilBasicSkillTemplate\copy(), getMaxLevel(), getMaxLevelPerObject(), and getMaxLevelPerType().
|
static |
Get level ids for import IDs (newest first)
int | $a_source_inst_id | source installation id, must be <>0 |
int | $a_skill_import_id | source skill id (type basic skill ("skll") or basic skill template ("sktp")) |
Definition at line 1110 of file class.ilBasicSkill.php.
References $DIC, $ilDB, and $results.
Referenced by getLevelIdForImportIdMatchSkill(), ilTestSkillLevelThresholdImporter\getLevelIdMapping(), and ilSkillDataSet\importRecord().
|
static |
Get level ids for import Ids matching common skills.
return
Definition at line 1132 of file class.ilBasicSkill.php.
References $l, $s, getCommonSkillIdForImportId(), getLevelIdForImportId(), and lookupLevelSkillId().
Referenced by ilSurveyDataSet\importRecord().
ilBasicSkill::getMaxLevel | ( | $a_tref_id, | |
$a_user_id = 0 , |
|||
$a_self_eval = 0 |
|||
) |
Get max levels per object.
return
Definition at line 851 of file class.ilBasicSkill.php.
References $db, $ilDB, $ilUser, $l, $user, and getLevelData().
ilBasicSkill::getMaxLevelNr | ( | ) |
Get maximum level nr.
Definition at line 145 of file class.ilBasicSkill.php.
Referenced by addLevel().
ilBasicSkill::getMaxLevelPerObject | ( | $a_tref_id, | |
$a_object_id, | |||
$a_user_id = 0 , |
|||
$a_self_eval = 0 |
|||
) |
Get max levels per object.
return
Definition at line 814 of file class.ilBasicSkill.php.
References $db, $ilDB, $ilUser, $l, $user, and getLevelData().
ilBasicSkill::getMaxLevelPerType | ( | $a_tref_id, | |
$a_type, | |||
$a_user_id = 0 , |
|||
$a_self_eval = 0 |
|||
) |
Get max levels per type.
return
Definition at line 711 of file class.ilBasicSkill.php.
References $a_type, $db, $ilDB, $ilUser, $l, $user, and getLevelData().
|
static |
Get new achievements.
string | $a_timestamp |
Definition at line 499 of file class.ilBasicSkill.php.
References $db, $DIC, and ACHIEVED.
Referenced by ilSkillNotifications\run().
ilBasicSkill::getShortTitleForCertificate | ( | ) |
Get short title for certificate.
return
Definition at line 995 of file class.ilBasicSkill.php.
ilBasicSkill::getSkillForLevelId | ( | $a_level_id | ) |
Get skill for level id.
return
Definition at line 351 of file class.ilBasicSkill.php.
References $db, $ilDB, and ilSkillTreeNode\isInTree().
ilBasicSkill::getTitleForCertificate | ( | ) |
Get title for certificate.
return
Definition at line 984 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getTitle().
|
static |
Get usage info.
return
Implements ilSkillUsageInfo.
Definition at line 1023 of file class.ilBasicSkill.php.
References $DIC, $ilDB, ilSkillUsage\getUsageInfoGeneric(), and ilSkillUsage\USER_ASSIGNED.
|
staticprotected |
Has recent self evaluation.
Check if self evaluation for user/object has been done on the same day already
return
Definition at line 461 of file class.ilBasicSkill.php.
References $db, $DIC, ilObject\_lookupObjId(), ACHIEVED, and ilUtil\now().
Referenced by resetUserSkillLevelStatus(), and writeUserSkillLevelStatus().
|
static |
Has use self evaluated a skill?
int | $a_user_id | |
int | $a_skill_id | |
int | $a_tref_id |
Definition at line 890 of file class.ilBasicSkill.php.
Referenced by ilPersonalSkillsGUI\renderSkillHTML().
|
static |
Lookup level description.
int | level id |
Definition at line 223 of file class.ilBasicSkill.php.
References lookupLevelProperty().
|
staticprotected |
Lookup level property.
id | level id |
Definition at line 192 of file class.ilBasicSkill.php.
Referenced by lookupLevelDescription(), lookupLevelSkillId(), and lookupLevelTitle().
|
static |
Lookup level skill id.
int | level id |
Definition at line 234 of file class.ilBasicSkill.php.
References lookupLevelProperty().
Referenced by getLevelIdForImportIdMatchSkill(), ilSkillDataSet\importRecord(), and writeUserSkillLevelStatus().
|
static |
Lookup level title.
int | level id |
Definition at line 212 of file class.ilBasicSkill.php.
References lookupLevelProperty().
Referenced by ilSkillProfileGUI\confirmLevelAssignmentRemoval(), ilBasicSkillGUI\confirmLevelDeletion(), ilContSkillMemberTableGUI\fillRow(), ilSkillProfileLevelsTableGUI\fillRow(), ilPersonalSkillsGUI\getSuggestedResources(), ilSkillNotifications\sendMail(), ilBasicSkillGUI\setLevelHead(), and ilBasicSkillTemplateGUI\setLevelHead().
ilBasicSkill::read | ( | ) |
Read data from database.
Reimplemented from ilSkillTreeNode.
Definition at line 54 of file class.ilBasicSkill.php.
|
static |
Remove all data of a user.
int | $a_user_id |
Definition at line 688 of file class.ilBasicSkill.php.
Referenced by ilSkillObjDeletionHandler\processDeletion().
|
static |
Remove a user skill completely.
int | $a_user_id | user id |
int | $a_trigger_obj_id | triggering repository object obj id |
bool | $a_self_eval | currently needs to be set to true |
string | $a_unique_identifier | unique identifier string |
Definition at line 648 of file class.ilBasicSkill.php.
References $changed, $db, and $DIC.
Referenced by ilContainerMemberSkills\publish(), and ilContainerMemberSkills\removeAllSkillLevels().
|
static |
Reset skill level status.
This is currently only used for self evaluations with a "no competence" level. It has to be discussed, how this should be provided for non-self-evaluations.
int | $a_user_id | user id |
int | $a_skill_id | skill id |
int | $a_tref_id | skill tref id |
int | $a_trigger_ref_id | triggering repository object ref id |
bool | $a_self_eval | currently needs to be set to true |
ilSkillException |
Definition at line 387 of file class.ilBasicSkill.php.
References $db, $DIC, ilObject\_lookupObjId(), hasRecentSelfEvaluation(), and ilUtil\now().
Referenced by ilPersonalSkill\saveSelfEvaluation().
ilBasicSkill::updateLevelOrder | ( | $order | ) |
Update level order.
return
Definition at line 286 of file class.ilBasicSkill.php.
|
static |
Write level description.
int | level id |
text | level description |
Definition at line 275 of file class.ilBasicSkill.php.
References writeLevelProperty().
|
staticprotected |
Write level property.
return
Definition at line 245 of file class.ilBasicSkill.php.
References $a_type, $DIC, and $ilDB.
Referenced by writeLevelDescription(), and writeLevelTitle().
|
static |
Write level title.
int | level id |
text | level title |
Definition at line 264 of file class.ilBasicSkill.php.
References writeLevelProperty().
|
static |
Write skill level status.
int | $a_level_id | skill level id |
int | $a_user_id | user id |
int | $a_trigger_ref_id | trigger repository object ref id |
int | $a_tref_id | skill tref id |
int | $a_status | DEPRECATED, always use ilBasicSkill::ACHIEVED |
bool | $a_force | DEPRECATED |
bool | $a_self_eval | self evaluation |
string | $a_unique_identifier | a unique identifier (should be used with trigger_ref_id > 0) |
Definition at line 532 of file class.ilBasicSkill.php.
References $DIC, $ilDB, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ACHIEVED, hasRecentSelfEvaluation(), lookupLevelSkillId(), and ilUtil\now().
Referenced by ilSkillAppEventListener\handleEvent(), ilTestSkillEvaluation\invokeSkillLevelTrigger(), ilContainerMemberSkills\publish(), ilPersonalSkill\saveSelfEvaluation(), ilSurveySkill\writeAppraiseeSkills(), and ilSurveySkillDeterminationGUI\writeSkills().
|
protected |
Definition at line 21 of file class.ilBasicSkill.php.
Referenced by addLevel(), delete(), deleteLevel(), fixLevelNumbering(), getAllHistoricLevelEntriesOfUser(), getAllLevelEntriesOfUser(), getLastLevelPerObject(), getLastUpdatePerObject(), getLevelData(), getMaxLevel(), getMaxLevelNr(), getMaxLevelPerObject(), getMaxLevelPerType(), getNewAchievementsPerUser(), getSkillForLevelId(), hasRecentSelfEvaluation(), hasSelfEvaluated(), removeAllUserData(), removeAllUserSkillLevelStatusOfObject(), resetUserSkillLevelStatus(), and updateLevelOrder().
ilBasicSkill::$id |
Definition at line 35 of file class.ilBasicSkill.php.
Referenced by updateLevelOrder().
|
protected |
Definition at line 26 of file class.ilBasicSkill.php.
Referenced by getAllHistoricLevelEntriesOfUser(), getAllLevelEntriesOfUser(), getLastLevelPerObject(), getLastUpdatePerObject(), getMaxLevel(), getMaxLevelPerObject(), and getMaxLevelPerType().
const ilBasicSkill::ACHIEVED = 1 |
Definition at line 28 of file class.ilBasicSkill.php.
Referenced by getNewAchievementsPerUser(), hasRecentSelfEvaluation(), ilTestSkillEvaluation\invokeSkillLevelTrigger(), ilContainerMemberSkills\publish(), ilPersonalSkill\saveSelfEvaluation(), ilSurveySkill\writeAppraiseeSkills(), ilSurveySkillDeterminationGUI\writeSkills(), and writeUserSkillLevelStatus().
const ilBasicSkill::EVAL_BY_ALL = 2 |
Definition at line 33 of file class.ilBasicSkill.php.
Referenced by getAllHistoricLevelEntriesOfUser(), and ilPersonalSkillsGUI\renderSkillHTML().
const ilBasicSkill::EVAL_BY_OTHERS_ = 0 |
Definition at line 31 of file class.ilBasicSkill.php.
const ilBasicSkill::EVAL_BY_SELF = 1 |
Definition at line 32 of file class.ilBasicSkill.php.
const ilBasicSkill::NOT_ACHIEVED = 0 |
Definition at line 29 of file class.ilBasicSkill.php.