ILIAS
Release_5_0_x_branch Revision 61816
|
Basic Skill. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor public. | |
read () | |
Read data from database. | |
create () | |
Create skill. | |
delete () | |
Delete skill. | |
copy () | |
Copy basic skill. | |
addLevel ($a_title, $a_description) | |
Add new level. | |
getMaxLevelNr () | |
Get maximum level nr. | |
getLevelData ($a_id=0) | |
Get level data. | |
updateLevelOrder ($order) | |
Update level order. | |
deleteLevel ($a_id) | |
Delete level. | |
fixLevelNumbering () | |
Fix level numbering. | |
lookupLevelsForTriggerRefId ($a_ref_id) | |
Lookup levels for trigger. | |
getSkillForLevelId ($a_level_id) | |
Get skill for level id. | |
getMaxLevelPerType ($a_tref_id, $a_type, $a_user_id=0, $a_self_eval=0) | |
Get max levels per type. | |
getAllLevelEntriesOfUser ($a_tref_id, $a_user_id=0, $a_self_eval=0) | |
Get all level entries. | |
getAllHistoricLevelEntriesOfUser ($a_tref_id, $a_user_id=0, $a_eval_by=0) | |
Get all historic level entries. | |
getMaxLevelPerObject ($a_tref_id, $a_object_id, $a_user_id=0, $a_self_eval=0) | |
Get max levels per object. | |
getLastLevelPerObject ($a_tref_id, $a_object_id, $a_user_id=0, $a_self_eval=0) | |
Get last level set per object. | |
getLastUpdatePerObject ($a_tref_id, $a_object_id, $a_user_id=0, $a_self_eval=0) | |
Get last update per object. | |
lookupLevelAchievementDate ($a_user_id, $a_level_id, $a_self_eval=0) | |
Lookup level achievement date. | |
getTitleForCertificate () | |
Get title for certificate. | |
getLevelTitleForCertificate ($a_level_id) | |
Get title for certificate. | |
getTriggerTitleForCertificate ($a_level_id) | |
Get trigger title for certificate. | |
getShortTitleForCertificate () | |
Get short title for certificate. | |
Public Member Functions inherited from ilSkillTreeNode | |
ilSkillTreeNode ($a_id=0) | |
setTitle ($a_title) | |
Set title. | |
getTitle () | |
Get title. | |
setType ($a_type) | |
Set type. | |
getType () | |
Get type. | |
setId ($a_id) | |
Set Node ID. | |
getId () | |
Get Node ID. | |
setSelfEvaluation ($a_val) | |
Set self evaluation. | |
getSelfEvaluation () | |
Get self evaluation. | |
setOrderNr ($a_val) | |
Set order nr. | |
getOrderNr () | |
Get order nr. | |
setDataRecord ($a_record) | |
this method should only be called by class ilSCORM2004NodeFactory | |
setStatus ($a_val) | |
Set status. | |
getStatus () | |
Get status. | |
update () | |
Update Node. | |
clipboardCut ($a_tree_id, $a_ids) | |
Cut and copy a set of skills/skill categories into the clipboard. |
Static Public Member Functions | |
static | lookupLevelTitle ($a_id) |
Lookup level title. | |
static | lookupLevelDescription ($a_id) |
Lookup level description. | |
static | lookupLevelTrigger ($a_id) |
Lookup level trigger. | |
static | lookupLevelSkillId ($a_id) |
Lookup level skill id. | |
static | writeLevelTitle ($a_id, $a_title) |
Write level title. | |
static | writeLevelDescription ($a_id, $a_description) |
Write level description. | |
static | writeLevelTrigger ($a_id, $a_trigger_ref_id) |
Write trigger. | |
static | updateAllUserSkillLevels () |
Look for all skill level that have a trigger and update the user skill level information, if it has changed. | |
static | updateSkillLevelsByTriggerRef ($a_user_id, $a_ref_id) |
Look for all skill level that have a trigger and update the user skill level information, if it has changed. | |
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=0) |
Write skill level status. | |
static | getCompletionDateForTriggerRefId ($a_user_id, $a_ref_id=null, $a_self_eval=0) |
Get trigger completion. | |
static | checkUserCertificateForTriggerRefId ($a_user_id, $a_ref_id, $a_self_eval=0) |
Get trigger completion. | |
static | getTriggerOfAllCertificates ($a_user_id, $a_self_eval=0) |
Get trigger completion. | |
static | getSkillLevelsForTrigger ($a_ref_id) |
Get assigned skill levels for trigger. | |
static | _lookupCertificate ($a_skill_id, $a_skill_level_id) |
Checks whether a skill level has a certificate or not. | |
static | getUsageInfo ($a_cskill_ids, &$a_usages) |
Get usage info. | |
Static Public Member Functions inherited from ilSkillTreeNode | |
static | getAllStatus () |
Get all status. | |
static | getStatusInfo ($a_status) |
Get status info. | |
static | _lookupTitle ($a_obj_id, $a_tref_id=0) |
Lookup Title. | |
static | _lookupSelfEvaluation ($a_obj_id) |
Lookup self evaluation. | |
static | _lookupStatus ($a_obj_id) |
Lookup Status. | |
static | _lookupType ($a_obj_id) |
Lookup Type. | |
static | _writeTitle ($a_obj_id, $a_title) |
Write Title. | |
static | _writeOrderNr ($a_obj_id, $a_nr) |
Write Order Nr. | |
static | putInTree ($a_obj, $a_parent_id="", $a_target_node_id="") |
Put this object into the skill tree. | |
static | getTree ($a_slm_obj_id) |
Get scorm module editing tree. | |
static | uniqueTypesCheck ($a_items) |
Check for unique types. | |
static | clipboardCopy ($a_tree_id, $a_ids) |
Copy a set of skills/skill categories into the clipboard. | |
static | insertItemsFromClip ($a_type, $a_obj_id) |
Insert basic skills from clipboard. | |
static | clearClipboard () |
Remove all skill items from clipboard. | |
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. | |
static | isInTree ($a_id) |
Is id in tree? | |
static | getAllSelfEvaluationNodes () |
Get all self evaluation nodes. | |
static | getTopTemplates () |
Get top skill templates and template categories. | |
static | getSelectableSkills () |
Get selectable skills. | |
static | saveChildsOrder ($a_par_id, $a_childs_order, $a_templates=false) |
Save childs order. | |
static | getIconPath ($a_obj_id, $a_type, $a_size="", $a_status=0) |
Get icon path. | |
static | findSkills ($a_term) |
Find skills. |
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 | |
Data Fields inherited from ilSkillTreeNode | |
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. | |
static | writeLevelProperty ($a_id, $a_prop, $a_value, $a_type) |
Write level property. | |
Static Protected Member Functions inherited from ilSkillTreeNode | |
static | _lookup ($a_obj_id, $a_field) |
Lookup Title. |
ilBasicSkill::__construct | ( | $a_id = 0 | ) |
Constructor public.
Reimplemented in ilBasicSkillTemplate.
Definition at line 31 of file class.ilBasicSkill.php.
References ilSkillTreeNode\ilSkillTreeNode(), and ilSkillTreeNode\setType().
|
static |
Checks whether a skill level has a certificate or not.
int | skill id |
int | skill level id |
Definition at line 1088 of file class.ilBasicSkill.php.
Referenced by checkUserCertificateForTriggerRefId(), and getTriggerOfAllCertificates().
ilBasicSkill::addLevel | ( | $a_title, | |
$a_description | |||
) |
Add new level.
string | title |
string | description |
Definition at line 109 of file class.ilBasicSkill.php.
References $ilDB, ilSkillTreeNode\getId(), and getMaxLevelNr().
|
static |
Get trigger completion.
@return |
Definition at line 898 of file class.ilBasicSkill.php.
References $ilDB, $ref_id, and _lookupCertificate().
Referenced by ilObjSkillManagementGUI\testCert().
ilBasicSkill::copy | ( | ) |
Copy basic skill.
Reimplemented in ilBasicSkillTemplate.
Definition at line 75 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 49 of file class.ilBasicSkill.php.
ilBasicSkill::delete | ( | ) |
Delete skill.
Reimplemented from ilSkillTreeNode.
Definition at line 57 of file class.ilBasicSkill.php.
References $ilDB.
ilBasicSkill::deleteLevel | ( | $a_id | ) |
Delete level.
@return |
Definition at line 322 of file class.ilBasicSkill.php.
References $ilDB.
ilBasicSkill::fixLevelNumbering | ( | ) |
Fix level numbering.
@return |
Definition at line 338 of file class.ilBasicSkill.php.
References $ilDB.
ilBasicSkill::getAllHistoricLevelEntriesOfUser | ( | $a_tref_id, | |
$a_user_id = 0 , |
|||
$a_eval_by = 0 |
|||
) |
Get all historic level entries.
@return |
Definition at line 668 of file class.ilBasicSkill.php.
References $ilDB, $ilUser, 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 637 of file class.ilBasicSkill.php.
References $ilDB, and $ilUser.
|
static |
Get trigger completion.
@return |
Definition at line 802 of file class.ilBasicSkill.php.
References $ilDB, $ref_id, and ilParticipants\_getMembershipByType().
Referenced by ilObjSkillManagementGUI\test().
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 742 of file class.ilBasicSkill.php.
References $ilDB, $ilUser, and ilSkillTreeNode\getId().
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 772 of file class.ilBasicSkill.php.
References $ilDB, $ilUser, and ilSkillTreeNode\getId().
ilBasicSkill::getLevelData | ( | $a_id = 0 | ) |
Get level data.
Definition at line 146 of file class.ilBasicSkill.php.
References $ilDB.
Referenced by ilBasicSkillTemplate\copy(), copy(), getMaxLevelPerObject(), and getMaxLevelPerType().
ilBasicSkill::getLevelTitleForCertificate | ( | $a_level_id | ) |
Get title for certificate.
@return |
Definition at line 1052 of file class.ilBasicSkill.php.
References lookupLevelTitle().
ilBasicSkill::getMaxLevelNr | ( | ) |
Get maximum level nr.
Definition at line 130 of file class.ilBasicSkill.php.
References $ilDB.
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 703 of file class.ilBasicSkill.php.
References $ilDB, $ilUser, ilSkillTreeNode\getId(), 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 598 of file class.ilBasicSkill.php.
References $ilDB, $ilUser, ilSkillTreeNode\getId(), and getLevelData().
ilBasicSkill::getShortTitleForCertificate | ( | ) |
Get short title for certificate.
@return |
Definition at line 1077 of file class.ilBasicSkill.php.
ilBasicSkill::getSkillForLevelId | ( | $a_level_id | ) |
Get skill for level id.
@return |
Definition at line 384 of file class.ilBasicSkill.php.
References $ilDB, and ilSkillTreeNode\isInTree().
|
static |
Get assigned skill levels for trigger.
@return |
Definition at line 1012 of file class.ilBasicSkill.php.
References $ilDB.
Referenced by ilObjSkillManagementGUI\testLevels().
ilBasicSkill::getTitleForCertificate | ( | ) |
Get title for certificate.
@return |
Definition at line 1041 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getTitle().
|
static |
Get trigger completion.
@return |
Definition at line 969 of file class.ilBasicSkill.php.
References $ilDB, and _lookupCertificate().
Referenced by ilObjSkillManagementGUI\testAllCert().
ilBasicSkill::getTriggerTitleForCertificate | ( | $a_level_id | ) |
Get trigger title for certificate.
@return |
Definition at line 1064 of file class.ilBasicSkill.php.
References ilSkillTreeNode\_lookupTitle(), and lookupLevelTrigger().
|
static |
Get usage info.
@return |
Implements ilSkillUsageInfo.
Definition at line 1108 of file class.ilBasicSkill.php.
References $ilDB, ilSkillUsage\getUsageInfoGeneric(), and ilSkillUsage\USER_ASSIGNED.
ilBasicSkill::lookupLevelAchievementDate | ( | $a_user_id, | |
$a_level_id, | |||
$a_self_eval = 0 |
|||
) |
Lookup level achievement date.
@return |
Definition at line 947 of file class.ilBasicSkill.php.
References $ilDB.
Referenced by ilSkillCertificateAdapter\getCertificateVariablesForPresentation().
|
static |
Lookup level description.
int | level id |
Definition at line 206 of file class.ilBasicSkill.php.
References lookupLevelProperty().
|
staticprotected |
Lookup level property.
id | level id |
Definition at line 178 of file class.ilBasicSkill.php.
References $ilDB.
Referenced by lookupLevelDescription(), lookupLevelSkillId(), lookupLevelTitle(), and lookupLevelTrigger().
ilBasicSkill::lookupLevelsForTriggerRefId | ( | $a_ref_id | ) |
Lookup levels for trigger.
@return |
Definition at line 363 of file class.ilBasicSkill.php.
References $ilDB.
|
static |
Lookup level skill id.
int | level id |
Definition at line 231 of file class.ilBasicSkill.php.
References lookupLevelProperty().
Referenced by writeUserSkillLevelStatus().
|
static |
Lookup level title.
int | level id |
Definition at line 195 of file class.ilBasicSkill.php.
References lookupLevelProperty().
Referenced by ilSkillProfileGUI\confirmLevelAssignmentRemoval(), ilBasicSkillGUI\confirmLevelDeletion(), ilSkillProfileLevelsTableGUI\fillRow(), getLevelTitleForCertificate(), ilPersonalSkillsGUI\renderSuggestedResources(), ilBasicSkillTemplateGUI\setLevelHead(), and ilBasicSkillGUI\setLevelHead().
|
static |
Lookup level trigger.
int | level id |
Definition at line 217 of file class.ilBasicSkill.php.
References $ref_id, and lookupLevelProperty().
Referenced by ilBasicSkillGUI\editLevelTrigger(), and getTriggerTitleForCertificate().
ilBasicSkill::read | ( | ) |
Read data from database.
Reimplemented from ilSkillTreeNode.
Definition at line 40 of file class.ilBasicSkill.php.
|
static |
Look for all skill level that have a trigger and update the user skill level information, if it has changed.
Definition at line 413 of file class.ilBasicSkill.php.
References $ilDB, ilObject\_hasUntrashedReference(), ilLPStatusWrapper\_lookupCompletedForObject(), ACHIEVED, and writeUserSkillLevelStatus().
ilBasicSkill::updateLevelOrder | ( | $order | ) |
|
static |
Look for all skill level that have a trigger and update the user skill level information, if it has changed.
Definition at line 442 of file class.ilBasicSkill.php.
References $ilDB, ilObject\_hasUntrashedReference(), ilLPStatusWrapper\_lookupCompletedForObject(), ACHIEVED, and writeUserSkillLevelStatus().
|
static |
Write level description.
int | level id |
text | level description |
Definition at line 270 of file class.ilBasicSkill.php.
References writeLevelProperty().
|
staticprotected |
Write level property.
@return |
Definition at line 242 of file class.ilBasicSkill.php.
References $ilDB.
Referenced by writeLevelDescription(), writeLevelTitle(), and writeLevelTrigger().
|
static |
Write level title.
int | level id |
text | level title |
Definition at line 259 of file class.ilBasicSkill.php.
References writeLevelProperty().
|
static |
Write trigger.
int | level id |
text | level description |
Definition at line 281 of file class.ilBasicSkill.php.
References ilObject\_lookupObjId(), and writeLevelProperty().
Referenced by ilBasicSkillGUI\removeLevelTrigger(), and ilBasicSkillGUI\saveLevelTrigger().
|
static |
Write skill level status.
int | skill level id |
int | user id |
int | status |
Definition at line 477 of file class.ilBasicSkill.php.
References $ilDB, ilObject\_lookupObjId(), ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), ACHIEVED, lookupLevelSkillId(), and ilUtil\now().
Referenced by ilTestSkillEvaluation\invokeSkillLevelTrigger(), ilPersonalSkill\saveSelfEvaluation(), updateAllUserSkillLevels(), updateSkillLevelsByTriggerRef(), ilSurveySkill\writeAppraiseeSkills(), and ilSurveySkillDeterminationGUI\writeSkills().
ilBasicSkill::$id |
Definition at line 25 of file class.ilBasicSkill.php.
Referenced by updateLevelOrder().
const ilBasicSkill::ACHIEVED = 1 |
Definition at line 18 of file class.ilBasicSkill.php.
Referenced by ilTestSkillEvaluation\invokeSkillLevelTrigger(), ilPersonalSkill\saveSelfEvaluation(), updateAllUserSkillLevels(), updateSkillLevelsByTriggerRef(), ilSurveySkill\writeAppraiseeSkills(), ilSurveySkillDeterminationGUI\writeSkills(), and writeUserSkillLevelStatus().
const ilBasicSkill::EVAL_BY_ALL = 2 |
Definition at line 23 of file class.ilBasicSkill.php.
Referenced by getAllHistoricLevelEntriesOfUser(), and ilPersonalSkillsGUI\getSkillHTML().
const ilBasicSkill::EVAL_BY_OTHERS_ = 0 |
Definition at line 21 of file class.ilBasicSkill.php.
const ilBasicSkill::EVAL_BY_SELF = 1 |
Definition at line 22 of file class.ilBasicSkill.php.
const ilBasicSkill::NOT_ACHIEVED = 0 |
Definition at line 19 of file class.ilBasicSkill.php.