ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilBasicSkillTemplate Class Reference

Basic Skill Template. More...

+ Inheritance diagram for ilBasicSkillTemplate:
+ Collaboration diagram for ilBasicSkillTemplate:

Public Member Functions

 __construct ($a_id=0)
 Constructor public.
 copy ()
 Copy basic skill template.
- Public Member Functions inherited from ilBasicSkill
 read ()
 Read data from database.
 create ()
 Create skill.
 delete ()
 Delete 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.

Data Fields

 $id
- Data Fields inherited from ilBasicSkill
const ACHIEVED = 1
const NOT_ACHIEVED = 0
 $id
- Data Fields inherited from ilSkillTreeNode
 $type
 $id
 $title

Additional Inherited Members

- Static Public Member Functions inherited from ilBasicSkill
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 Protected Member Functions inherited from ilBasicSkill
static lookupLevelProperty ($a_id, $a_prop)
 Lookup level property.
static writeLevelProperty ($a_id, $a_prop, $a_value, $a_type)
 Write level property.

Detailed Description

Basic Skill Template.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 15 of file class.ilBasicSkillTemplate.php.

Constructor & Destructor Documentation

ilBasicSkillTemplate::__construct (   $a_id = 0)

Constructor public.

Reimplemented from ilBasicSkill.

Definition at line 23 of file class.ilBasicSkillTemplate.php.

References ilSkillTreeNode\ilSkillTreeNode(), and ilSkillTreeNode\setType().

{
$this->setType("sktp");
}

+ Here is the call graph for this function:

Member Function Documentation

ilBasicSkillTemplate::copy ( )

Copy basic skill template.

Reimplemented from ilBasicSkill.

Definition at line 32 of file class.ilBasicSkillTemplate.php.

References ilBasicSkill\getLevelData(), ilSkillTreeNode\getOrderNr(), ilSkillTreeNode\getTitle(), and ilSkillTreeNode\getType().

{
$skill = new ilBasicSkillTemplate();
$skill->setTitle($this->getTitle());
$skill->setType($this->getType());
$skill->setOrderNr($this->getOrderNr());
$skill->create();
$levels = $this->getLevelData();
if (sizeof($levels))
{
foreach($levels as $item)
{
$skill->addLevel($item["title"], $item["description"]);
}
}
$skill->update();
return $skill;
}

+ Here is the call graph for this function:

Field Documentation

ilBasicSkillTemplate::$id

Definition at line 17 of file class.ilBasicSkillTemplate.php.


The documentation for this class was generated from the following file: