ILIAS
release_4-3 Revision
|
A node in the skill tree. More...
Public Member Functions | |
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. | |
read () | |
Read Data of Node. | |
setDataRecord ($a_record) | |
this method should only be called by class ilSCORM2004NodeFactory | |
setDraft ($a_val) | |
Set draft. | |
getDraft () | |
Get draft. | |
create () | |
Create Node. | |
update () | |
Update Node. | |
delete () | |
Delete 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 | _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 | |
$type | |
$id | |
$title |
Static Protected Member Functions | |
static | _lookup ($a_obj_id, $a_field) |
Lookup Title. |
|
staticprotected |
Lookup Title.
int | Node ID |
Definition at line 171 of file class.ilSkillTreeNode.php.
References $query.
Referenced by _lookupDraft(), _lookupSelfEvaluation(), and _lookupTitle().
|
static |
Lookup Draft.
int | node ID |
Definition at line 215 of file class.ilSkillTreeNode.php.
References _lookup().
Referenced by ilPersonalSkillExplorer\buildSelectableTree(), ilSkillCatTableGUI\fillRow(), ilSkillExplorer\getChildsOfNode(), and ilSkillTreeNodeGUI\setTitleIcon().
|
static |
Lookup self evaluation.
int | node ID |
Definition at line 202 of file class.ilSkillTreeNode.php.
References _lookup().
Referenced by ilPersonalSkillExplorer\buildSelectableTree(), ilSkillExplorer\buildTitle(), and ilPersonalSkillExplorer\isClickable().
|
static |
Lookup Title.
int | node ID |
Definition at line 189 of file class.ilSkillTreeNode.php.
References _lookup().
Referenced by ilPersonalSkillsGUI\assignMaterials(), clipboardCopy(), ilSkillSelfEvaluationGUI\confirmSelfEvaluationDeletion(), ilPersonalSkillsGUI\confirmSkillRemove(), ilSelfEvaluationTableGUI\fillRow(), ilPersonalSkill\getSelectedUserSkills(), ilPersonalSkillsGUI\getSkillHTML(), ilBasicSkill\getTriggerTitleForCertificate(), ilSkillTemplateReferenceGUI\listItems(), ilPortfolioPageGUI\renderSkillsTeaser(), ilPersonalSkillsGUI\selfEvaluation(), and ilBasicSkill\writeUserSkillLevelStatus().
|
static |
Lookup Type.
int | Node ID |
Definition at line 228 of file class.ilSkillTreeNode.php.
References $query.
Referenced by ilPersonalSkillsGUI\assignMaterials(), clipboardCopy(), getIconPath(), ilSkillTreeNodeGUI\ilSkillTreeNodeGUI(), pasteTree(), putInTree(), ilSkillCategoryGUI\redirectToParent(), ilSkillTreeNodeGUI\redirectToParent(), ilBasicSkillGUI\redirectToParent(), ilPersonalSkillsGUI\selfEvaluation(), and uniqueTypesCheck().
|
static |
Write Order Nr.
int | Node ID |
string | Order Nr |
Definition at line 283 of file class.ilSkillTreeNode.php.
References $query.
Referenced by saveChildsOrder().
|
static |
Write Title.
int | Node ID |
string | Title |
Definition at line 266 of file class.ilSkillTreeNode.php.
References $query.
Referenced by ilObjSkillManagementGUI\saveAllTemplateTitles(), and ilObjSkillManagementGUI\saveAllTitles().
|
static |
Remove all skill items from clipboard.
@return |
Definition at line 573 of file class.ilSkillTreeNode.php.
References $ilUser, and ilEditClipboard\clear().
Referenced by clipboardCopy(), clipboardCut(), and insertItemsFromClip().
|
static |
Copy a set of skills/skill categories into the clipboard.
Definition at line 488 of file class.ilSkillTreeNode.php.
References $id, $ilUser, _lookupTitle(), _lookupType(), and clearClipboard().
Referenced by clipboardCut(), and ilSkillTreeNodeGUI\copyItems().
ilSkillTreeNode::clipboardCut | ( | $a_tree_id, | |
$a_ids | |||
) |
Cut and copy a set of skills/skill categories into the clipboard.
Definition at line 437 of file class.ilSkillTreeNode.php.
References $id, $path, clearClipboard(), and clipboardCopy().
Referenced by ilSkillTreeNodeGUI\cutItems().
ilSkillTreeNode::create | ( | ) |
Create Node.
boolean | Upload Mode |
Reimplemented in ilSkillTemplateReference, ilBasicSkill, ilSkillCategory, and ilSkillRoot.
Definition at line 298 of file class.ilSkillTreeNode.php.
References $id, $query, getDraft(), getOrderNr(), getSelfEvaluation(), getTitle(), getType(), and setId().
ilSkillTreeNode::delete | ( | ) |
Delete Node.
Reimplemented in ilSkillTemplateReference, ilBasicSkill, ilSkillCategory, and ilSkillRoot.
Definition at line 338 of file class.ilSkillTreeNode.php.
References $query, and getId().
|
static |
Get all self evaluation nodes.
@return |
Definition at line 680 of file class.ilSkillTreeNode.php.
Referenced by ilSkillSelfEvaluationGUI\listSelfEvaluations().
ilSkillTreeNode::getDraft | ( | ) |
Get draft.
Definition at line 255 of file class.ilSkillTreeNode.php.
Referenced by create(), and update().
ilSkillTreeNode::getIconPath | ( | $a_obj_id, | |
$a_type, | |||
$a_size = "" , |
|||
$a_draft = false |
|||
) |
Get icon path.
@return |
Definition at line 892 of file class.ilSkillTreeNode.php.
References $type, ilSkillTemplateReference\_lookupTemplateId(), _lookupType(), ilUtil\getImagePath(), and ILIAS_VERSION.
Referenced by ilSkillCatTableGUI\fillRow(), ilSkillExplorer\getImage(), and ilSkillTreeNodeGUI\setTitleIcon().
ilSkillTreeNode::getId | ( | ) |
Get Node ID.
int | Node ID |
Definition at line 91 of file class.ilSkillTreeNode.php.
References $id.
Referenced by ilBasicSkill\addLevel(), delete(), and update().
ilSkillTreeNode::getOrderNr | ( | ) |
Get order nr.
Definition at line 131 of file class.ilSkillTreeNode.php.
Referenced by ilBasicSkillTemplate\copy(), ilSkillTemplateCategory\copy(), ilSkillCategory\copy(), ilBasicSkill\copy(), ilSkillTemplateReference\copy(), create(), and update().
|
static |
Get selectable skills.
@return |
Definition at line 715 of file class.ilSkillTreeNode.php.
ilSkillTreeNode::getSelfEvaluation | ( | ) |
Get self evaluation.
Definition at line 111 of file class.ilSkillTreeNode.php.
Referenced by ilSkillCategory\copy(), ilBasicSkill\copy(), ilSkillTemplateReference\copy(), create(), and update().
|
static |
Get basic skills under node.
@return |
Definition at line 739 of file class.ilSkillTreeNode.php.
Referenced by ilPersonalSkillsGUI\assignMaterials(), ilCOPageHTMLExport\collectPageElements(), ilPersonalSkillsGUI\getSkillHTML(), ilSkillTemplateReferenceGUI\listItems(), and ilPersonalSkillsGUI\selfEvaluation().
ilSkillTreeNode::getTitle | ( | ) |
Get title.
Definition at line 51 of file class.ilSkillTreeNode.php.
References $title.
Referenced by ilBasicSkillTemplate\copy(), ilSkillTemplateCategory\copy(), ilSkillCategory\copy(), ilBasicSkill\copy(), ilSkillTemplateReference\copy(), create(), ilBasicSkill\getTitleForCertificate(), and update().
|
static |
Get top skill templates and template categories.
@return |
Definition at line 701 of file class.ilSkillTreeNode.php.
Referenced by ilSkillTemplateReferenceGUI\initForm().
|
static |
Get scorm module editing tree.
int | scorm module object id |
Definition at line 405 of file class.ilSkillTreeNode.php.
ilSkillTreeNode::getType | ( | ) |
Get type.
Definition at line 71 of file class.ilSkillTreeNode.php.
References $type.
Referenced by ilBasicSkillTemplate\copy(), ilSkillTemplateCategory\copy(), ilSkillCategory\copy(), ilBasicSkill\copy(), ilSkillTemplateReference\copy(), and create().
ilSkillTreeNode::ilSkillTreeNode | ( | $a_id = 0 | ) |
int | node id |
Definition at line 24 of file class.ilSkillTreeNode.php.
References read().
Referenced by ilBasicSkillTemplate\__construct(), ilSkillTemplateReference\__construct(), ilSkillTemplateCategory\__construct(), ilSkillRoot\__construct(), ilSkillCategory\__construct(), and ilBasicSkill\__construct().
|
static |
Insert basic skills from clipboard.
Definition at line 528 of file class.ilSkillTreeNode.php.
References $ilCtrl, $ilUser, clearClipboard(), ilEditClipboard\getAction(), IL_LAST_NODE, pasteTree(), and saveChildsOrder().
Referenced by ilSkillTreeNodeGUI\insertBasicSkillClip(), ilSkillTreeNodeGUI\insertSkillCategoryClip(), ilSkillTreeNodeGUI\insertSkillTemplateClip(), ilSkillTreeNodeGUI\insertTemplateCategoryClip(), and ilSkillTreeNodeGUI\insertTemplateReferenceClip().
|
static |
Is id in tree?
@return |
Definition at line 664 of file class.ilSkillTreeNode.php.
Referenced by ilBasicSkill\getSkillForLevelId().
|
static |
Paste item (tree) from clipboard to skill tree.
Definition at line 590 of file class.ilSkillTreeNode.php.
References $ilLog, $ilUser, $lng, _lookupType(), IL_LAST_NODE, and putInTree().
Referenced by insertItemsFromClip().
|
static |
Put this object into the skill tree.
Definition at line 350 of file class.ilSkillTreeNode.php.
References _lookupType(), and IL_FIRST_NODE.
Referenced by ilObjSkillManagementGUI\insertBasicSkill(), ilObjSkillManagementGUI\insertBasicSkillTemplate(), ilObjSkillManagementGUI\insertSkillCategory(), ilObjSkillManagementGUI\insertSkillTemplateCategory(), pasteTree(), ilBasicSkillGUI\saveItem(), ilSkillTemplateCategoryGUI\saveItem(), ilSkillCategoryGUI\saveItem(), ilBasicSkillTemplateGUI\saveItem(), and ilSkillTemplateReferenceGUI\saveItem().
ilSkillTreeNode::read | ( | ) |
Read Data of Node.
Reimplemented in ilSkillTemplateReference, ilBasicSkill, ilSkillCategory, and ilSkillRoot.
Definition at line 139 of file class.ilSkillTreeNode.php.
References $ilBench, $query, setDraft(), setOrderNr(), setSelfEvaluation(), setTitle(), and setType().
Referenced by ilSkillTreeNode().
|
static |
Save childs order.
@return |
Definition at line 845 of file class.ilSkillTreeNode.php.
References _writeOrderNr(), and ilUtil\sortArray().
Referenced by ilSkillTreeNodeGUI\confirmedDelete(), ilSkillTreeNodeGUI\cutItems(), insertItemsFromClip(), ilSkillTreeNodeGUI\save(), and ilSkillTreeNodeGUI\saveOrder().
ilSkillTreeNode::setDataRecord | ( | $a_record | ) |
this method should only be called by class ilSCORM2004NodeFactory
Definition at line 160 of file class.ilSkillTreeNode.php.
ilSkillTreeNode::setDraft | ( | $a_val | ) |
Set draft.
boolean | $a_val | draft |
Definition at line 245 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setId | ( | $a_id | ) |
Set Node ID.
int | Node ID |
Definition at line 81 of file class.ilSkillTreeNode.php.
Referenced by create().
ilSkillTreeNode::setOrderNr | ( | $a_val | ) |
Set order nr.
int | $a_val | order nr |
Definition at line 121 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setSelfEvaluation | ( | $a_val | ) |
Set self evaluation.
boolean | self evaluation |
Definition at line 101 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setTitle | ( | $a_title | ) |
Set title.
string | $a_title | title |
Definition at line 41 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setType | ( | $a_type | ) |
Set type.
string | Type |
Definition at line 61 of file class.ilSkillTreeNode.php.
Referenced by ilBasicSkillTemplate\__construct(), ilSkillRoot\__construct(), ilSkillTemplateReference\__construct(), ilSkillTemplateCategory\__construct(), ilSkillCategory\__construct(), ilBasicSkill\__construct(), and read().
|
static |
Check for unique types.
Definition at line 415 of file class.ilSkillTreeNode.php.
References $type, and _lookupType().
Referenced by ilSkillTreeNodeGUI\copyItems(), and ilSkillTreeNodeGUI\cutItems().
ilSkillTreeNode::update | ( | ) |
Update Node.
Reimplemented in ilSkillTemplateReference.
Definition at line 321 of file class.ilSkillTreeNode.php.
References $query, getDraft(), getId(), getOrderNr(), getSelfEvaluation(), and getTitle().
ilSkillTreeNode::$id |
Definition at line 18 of file class.ilSkillTreeNode.php.
Referenced by clipboardCopy(), clipboardCut(), create(), and getId().
ilSkillTreeNode::$title |
Definition at line 19 of file class.ilSkillTreeNode.php.
Referenced by getTitle().
ilSkillTreeNode::$type |
Definition at line 17 of file class.ilSkillTreeNode.php.
Referenced by getIconPath(), getType(), and uniqueTypesCheck().