ILIAS
Release_4_4_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) | |
Get max levels per type. | |
getAllLevelEntriesOfUser ($a_tref_id, $a_user_id=0) | |
Get all level entries. | |
getMaxLevelPerObject ($a_tref_id, $a_object_id, $a_user_id=0) | |
Get max levels per object. | |
lookupLevelAchievementDate ($a_user_id, $a_level_id) | |
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) |
Write skill level status. | |
static | getCompletionDateForTriggerRefId ($a_user_id, $a_ref_id=null) |
Get trigger completion. | |
static | checkUserCertificateForTriggerRefId ($a_user_id, $a_ref_id) |
Get trigger completion. | |
static | getTriggerOfAllCertificates ($a_user_id) |
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. |
Data Fields | |
const | ACHIEVED = 1 |
const | NOT_ACHIEVED = 0 |
$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 27 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 951 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 105 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and getMaxLevelNr().
|
static |
Get trigger completion.
@return |
Definition at line 761 of file class.ilBasicSkill.php.
References $ref_id, and _lookupCertificate().
Referenced by ilObjSkillManagementGUI\testCert().
ilBasicSkill::copy | ( | ) |
Copy basic skill.
Reimplemented in ilBasicSkillTemplate.
Definition at line 71 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 45 of file class.ilBasicSkill.php.
ilBasicSkill::delete | ( | ) |
Delete skill.
Reimplemented from ilSkillTreeNode.
Definition at line 53 of file class.ilBasicSkill.php.
ilBasicSkill::deleteLevel | ( | $a_id | ) |
Delete level.
@return |
Definition at line 318 of file class.ilBasicSkill.php.
ilBasicSkill::fixLevelNumbering | ( | ) |
Fix level numbering.
@return |
Definition at line 334 of file class.ilBasicSkill.php.
ilBasicSkill::getAllLevelEntriesOfUser | ( | $a_tref_id, | |
$a_user_id = 0 |
|||
) |
Get all level entries.
@return |
Definition at line 597 of file class.ilBasicSkill.php.
References $ilUser.
|
static |
Get trigger completion.
@return |
Definition at line 665 of file class.ilBasicSkill.php.
References $ref_id, and ilParticipants\_getMembershipByType().
Referenced by ilObjSkillManagementGUI\test().
ilBasicSkill::getLevelData | ( | $a_id = 0 | ) |
Get level data.
Definition at line 142 of file class.ilBasicSkill.php.
Referenced by ilBasicSkillTemplate\copy(), copy(), getMaxLevelPerObject(), and getMaxLevelPerType().
ilBasicSkill::getLevelTitleForCertificate | ( | $a_level_id | ) |
Get title for certificate.
@return |
Definition at line 915 of file class.ilBasicSkill.php.
References lookupLevelTitle().
ilBasicSkill::getMaxLevelNr | ( | ) |
Get maximum level nr.
Definition at line 126 of file class.ilBasicSkill.php.
Referenced by addLevel().
ilBasicSkill::getMaxLevelPerObject | ( | $a_tref_id, | |
$a_object_id, | |||
$a_user_id = 0 |
|||
) |
Get max levels per object.
@return |
Definition at line 627 of file class.ilBasicSkill.php.
References $ilUser, ilSkillTreeNode\getId(), and getLevelData().
ilBasicSkill::getMaxLevelPerType | ( | $a_tref_id, | |
$a_type, | |||
$a_user_id = 0 |
|||
) |
Get max levels per type.
@return |
Definition at line 559 of file class.ilBasicSkill.php.
References $ilUser, ilSkillTreeNode\getId(), and getLevelData().
ilBasicSkill::getShortTitleForCertificate | ( | ) |
Get short title for certificate.
@return |
Definition at line 940 of file class.ilBasicSkill.php.
ilBasicSkill::getSkillForLevelId | ( | $a_level_id | ) |
Get skill for level id.
@return |
Definition at line 380 of file class.ilBasicSkill.php.
References ilSkillTreeNode\isInTree().
|
static |
Get assigned skill levels for trigger.
@return |
Definition at line 875 of file class.ilBasicSkill.php.
Referenced by ilObjSkillManagementGUI\testLevels().
ilBasicSkill::getTitleForCertificate | ( | ) |
Get title for certificate.
@return |
Definition at line 904 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getTitle().
|
static |
Get trigger completion.
@return |
Definition at line 832 of file class.ilBasicSkill.php.
References _lookupCertificate().
Referenced by ilObjSkillManagementGUI\testAllCert().
ilBasicSkill::getTriggerTitleForCertificate | ( | $a_level_id | ) |
Get trigger title for certificate.
@return |
Definition at line 927 of file class.ilBasicSkill.php.
References ilSkillTreeNode\_lookupTitle(), and lookupLevelTrigger().
|
static |
Get usage info.
@return |
Implements ilSkillUsageInfo.
Definition at line 971 of file class.ilBasicSkill.php.
References ilSkillUsage\getUsageInfoGeneric(), and ilSkillUsage\USER_ASSIGNED.
ilBasicSkill::lookupLevelAchievementDate | ( | $a_user_id, | |
$a_level_id | |||
) |
Lookup level achievement date.
@return |
Definition at line 810 of file class.ilBasicSkill.php.
Referenced by ilSkillCertificateAdapter\getCertificateVariablesForPresentation().
|
static |
Lookup level description.
int | level id |
Definition at line 202 of file class.ilBasicSkill.php.
References lookupLevelProperty().
|
staticprotected |
Lookup level property.
id | level id |
Definition at line 174 of file class.ilBasicSkill.php.
Referenced by lookupLevelDescription(), lookupLevelSkillId(), lookupLevelTitle(), and lookupLevelTrigger().
ilBasicSkill::lookupLevelsForTriggerRefId | ( | $a_ref_id | ) |
Lookup levels for trigger.
@return |
Definition at line 359 of file class.ilBasicSkill.php.
|
static |
Lookup level skill id.
int | level id |
Definition at line 227 of file class.ilBasicSkill.php.
References lookupLevelProperty().
Referenced by writeUserSkillLevelStatus().
|
static |
Lookup level title.
int | level id |
Definition at line 191 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 213 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 36 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 409 of file class.ilBasicSkill.php.
References ilObject\_hasUntrashedReference(), ilLPStatusWrapper\_lookupCompletedForObject(), ACHIEVED, and writeUserSkillLevelStatus().
ilBasicSkill::updateLevelOrder | ( | $order | ) |
Update level order.
@return |
Definition at line 295 of file class.ilBasicSkill.php.
References $id.
|
static |
Look for all skill level that have a trigger and update the user skill level information, if it has changed.
Definition at line 438 of file class.ilBasicSkill.php.
References ilObject\_hasUntrashedReference(), ilLPStatusWrapper\_lookupCompletedForObject(), ACHIEVED, and writeUserSkillLevelStatus().
|
static |
Write level description.
int | level id |
text | level description |
Definition at line 266 of file class.ilBasicSkill.php.
References writeLevelProperty().
|
staticprotected |
Write level property.
@return |
Definition at line 238 of file class.ilBasicSkill.php.
Referenced by writeLevelDescription(), writeLevelTitle(), and writeLevelTrigger().
|
static |
Write level title.
int | level id |
text | level title |
Definition at line 255 of file class.ilBasicSkill.php.
References writeLevelProperty().
|
static |
Write trigger.
int | level id |
text | level description |
Definition at line 277 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 473 of file class.ilBasicSkill.php.
References ilObject\_lookupObjId(), ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), ACHIEVED, lookupLevelSkillId(), and ilUtil\now().
Referenced by updateAllUserSkillLevels(), updateSkillLevelsByTriggerRef(), ilSurveySkill\writeAppraiseeSkills(), and ilSurveySkillDeterminationGUI\writeSkills().
ilBasicSkill::$id |
Definition at line 21 of file class.ilBasicSkill.php.
Referenced by updateLevelOrder().
const ilBasicSkill::ACHIEVED = 1 |
Definition at line 18 of file class.ilBasicSkill.php.
Referenced by updateAllUserSkillLevels(), updateSkillLevelsByTriggerRef(), ilSurveySkill\writeAppraiseeSkills(), ilSurveySkillDeterminationGUI\writeSkills(), and writeUserSkillLevelStatus().
const ilBasicSkill::NOT_ACHIEVED = 0 |
Definition at line 19 of file class.ilBasicSkill.php.