ILIAS
release_4-3 Revision
|
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. | |
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 | |
setDraft ($a_val) | |
Set draft. | |
getDraft () | |
Get draft. | |
update () | |
Update Node. | |
clipboardCut ($a_tree_id, $a_ids) | |
Cut and copy a set of skills/skill categories into the clipboard. | |
getIconPath ($a_obj_id, $a_type, $a_size="", $a_draft=false) | |
Get icon path. |
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_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 Public Member Functions inherited from ilSkillTreeNode | |
static | _lookupTitle ($a_obj_id) |
Lookup Title. | |
static | _lookupSelfEvaluation ($a_obj_id) |
Lookup self evaluation. | |
static | _lookupDraft ($a_obj_id) |
Lookup Draft. | |
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 | getSkillTreeNodes ($a_node_id, $a_only_basic=false) |
Get basic skills under node. | |
static | saveChildsOrder ($a_par_id, $a_childs_order, $a_templates=false) |
Save childs order. |
Data Fields | |
const | ACHIEVED = 1 |
const | NOT_ACHIEVED = 0 |
$id | |
Data Fields inherited from ilSkillTreeNode | |
$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 26 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 832 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 104 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and getMaxLevelNr().
|
static |
Get trigger completion.
@return |
Definition at line 644 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 70 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 44 of file class.ilBasicSkill.php.
ilBasicSkill::delete | ( | ) |
Delete skill.
Reimplemented from ilSkillTreeNode.
Definition at line 52 of file class.ilBasicSkill.php.
ilBasicSkill::deleteLevel | ( | $a_id | ) |
Delete level.
@return |
Definition at line 315 of file class.ilBasicSkill.php.
ilBasicSkill::fixLevelNumbering | ( | ) |
Fix level numbering.
@return |
Definition at line 331 of file class.ilBasicSkill.php.
|
static |
Get trigger completion.
@return |
Definition at line 548 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 141 of file class.ilBasicSkill.php.
Referenced by ilBasicSkillTemplate\copy(), and copy().
ilBasicSkill::getLevelTitleForCertificate | ( | $a_level_id | ) |
Get title for certificate.
@return |
Definition at line 798 of file class.ilBasicSkill.php.
References lookupLevelTitle().
ilBasicSkill::getMaxLevelNr | ( | ) |
Get maximum level nr.
Definition at line 125 of file class.ilBasicSkill.php.
Referenced by addLevel().
ilBasicSkill::getShortTitleForCertificate | ( | ) |
Get short title for certificate.
@return |
Definition at line 821 of file class.ilBasicSkill.php.
ilBasicSkill::getSkillForLevelId | ( | $a_level_id | ) |
Get skill for level id.
@return |
Definition at line 377 of file class.ilBasicSkill.php.
References ilSkillTreeNode\isInTree().
|
static |
Get assigned skill levels for trigger.
@return |
Definition at line 758 of file class.ilBasicSkill.php.
Referenced by ilObjSkillManagementGUI\testLevels().
ilBasicSkill::getTitleForCertificate | ( | ) |
Get title for certificate.
@return |
Definition at line 787 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getTitle().
|
static |
Get trigger completion.
@return |
Definition at line 715 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 809 of file class.ilBasicSkill.php.
References ilSkillTreeNode\_lookupTitle(), and lookupLevelTrigger().
ilBasicSkill::lookupLevelAchievementDate | ( | $a_user_id, | |
$a_level_id | |||
) |
Lookup level achievement date.
@return |
Definition at line 693 of file class.ilBasicSkill.php.
Referenced by ilSkillCertificateAdapter\getCertificateVariablesForPresentation().
|
static |
Lookup level description.
int | level id |
Definition at line 201 of file class.ilBasicSkill.php.
References lookupLevelProperty().
|
staticprotected |
Lookup level property.
id | level id |
Definition at line 173 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 356 of file class.ilBasicSkill.php.
|
static |
Lookup level skill id.
int | level id |
Definition at line 225 of file class.ilBasicSkill.php.
References lookupLevelProperty().
Referenced by writeUserSkillLevelStatus().
|
static |
Lookup level title.
int | level id |
Definition at line 190 of file class.ilBasicSkill.php.
References lookupLevelProperty().
Referenced by ilBasicSkillGUI\confirmLevelDeletion(), getLevelTitleForCertificate(), ilBasicSkillTemplateGUI\setLevelHead(), and ilBasicSkillGUI\setLevelHead().
|
static |
Lookup level trigger.
int | level id |
Definition at line 212 of file class.ilBasicSkill.php.
References $ref_id, and lookupLevelProperty().
Referenced by ilBasicSkillGUI\editLevelTrigger(), getTriggerTitleForCertificate(), and writeUserSkillLevelStatus().
ilBasicSkill::read | ( | ) |
Read data from database.
Reimplemented from ilSkillTreeNode.
Definition at line 35 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 406 of file class.ilBasicSkill.php.
References ilObject\_hasUntrashedReference(), ilLPStatusWrapper\_lookupCompletedForObject(), ACHIEVED, and writeUserSkillLevelStatus().
ilBasicSkill::updateLevelOrder | ( | $order | ) |
Update level order.
@return |
Definition at line 292 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 435 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 264 of file class.ilBasicSkill.php.
References writeLevelProperty().
|
staticprotected |
Write level property.
@return |
Definition at line 236 of file class.ilBasicSkill.php.
Referenced by writeLevelDescription(), writeLevelTitle(), and writeLevelTrigger().
|
static |
Write level title.
int | level id |
text | level title |
Definition at line 253 of file class.ilBasicSkill.php.
References writeLevelProperty().
|
static |
Write trigger.
int | level id |
text | level description |
Definition at line 275 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 470 of file class.ilBasicSkill.php.
References ilSkillTreeNode\_lookupTitle(), ACHIEVED, lookupLevelSkillId(), lookupLevelTrigger(), and ilUtil\now().
Referenced by updateAllUserSkillLevels(), and updateSkillLevelsByTriggerRef().
ilBasicSkill::$id |
Definition at line 20 of file class.ilBasicSkill.php.
Referenced by updateLevelOrder().
const ilBasicSkill::ACHIEVED = 1 |
Definition at line 17 of file class.ilBasicSkill.php.
Referenced by updateAllUserSkillLevels(), updateSkillLevelsByTriggerRef(), and writeUserSkillLevelStatus().
const ilBasicSkill::NOT_ACHIEVED = 0 |
Definition at line 18 of file class.ilBasicSkill.php.