ILIAS  Release_5_0_x_branch Revision 61816
 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.
 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.

Data Fields

 $id
- Data Fields inherited from ilBasicSkill
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

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_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 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: