ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
A node in the skill tree. More...
Public Member Functions | |
__construct ($a_id=0) | |
setTitle ($a_title) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
setType ($a_type) | |
Set type. More... | |
getType () | |
Get type. More... | |
setId ($a_id) | |
Set Node ID. More... | |
getId () | |
Get Node ID. More... | |
setSelfEvaluation ($a_val) | |
Set self evaluation. More... | |
getSelfEvaluation () | |
Get self evaluation. More... | |
setOrderNr ($a_val) | |
Set order nr. More... | |
getOrderNr () | |
Get order nr. More... | |
setImportId ($a_val) | |
Set import id. More... | |
getImportId () | |
Get import id. More... | |
getCreationDate () | |
Get creation date. More... | |
read () | |
Read Data of Node. More... | |
setDataRecord ($a_record) | |
this method should only be called by class ilSCORM2004NodeFactory More... | |
setStatus ($a_val) | |
Set status. More... | |
getStatus () | |
Get status. More... | |
create () | |
Create Node. More... | |
update () | |
Update Node. More... | |
delete () | |
Delete Node. More... | |
Static Public Member Functions | |
static | getAllStatus () |
Get all status. More... | |
static | getStatusInfo ($a_status) |
Get status info. More... | |
static | _lookupTitle ($a_obj_id, $a_tref_id=0) |
Lookup Title. More... | |
static | _lookupSelfEvaluation ($a_obj_id) |
Lookup self evaluation. More... | |
static | _lookupStatus ($a_obj_id) |
Lookup Status. More... | |
static | _lookupType ($a_obj_id) |
Lookup Type. More... | |
static | _writeTitle ($a_obj_id, $a_title) |
Write Title. More... | |
static | _writeOrderNr ($a_obj_id, $a_nr) |
Write Order Nr. More... | |
static | putInTree ($a_obj, $a_parent_id="", $a_target_node_id="") |
Put this object into the skill tree. More... | |
static | getTree ($a_slm_obj_id) |
Get scorm module editing tree. More... | |
static | uniqueTypesCheck ($a_items) |
Check for unique types. More... | |
static | clipboardCut ($a_tree_id, $a_ids) |
Cut and copy a set of skills/skill categories into the clipboard. More... | |
static | clipboardCopy ($a_tree_id, $a_ids) |
Copy a set of skills/skill categories into the clipboard. More... | |
static | insertItemsFromClip ($a_type, $a_obj_id) |
Insert basic skills from clipboard. More... | |
static | clearClipboard () |
Remove all skill items from clipboard. More... | |
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. More... | |
static | isInTree ($a_id) |
Is id in tree? More... | |
static | getAllSelfEvaluationNodes () |
Get all self evaluation nodes. More... | |
static | getTopTemplates () |
Get top skill templates and template categories. More... | |
static | getSelectableSkills () |
Get selectable skills. More... | |
static | saveChildsOrder ($a_par_id, $a_childs_order, $a_templates=false) |
Save childs order. More... | |
static | getIconPath ($a_obj_id, $a_type, $a_size="", $a_status=0) |
Get icon path. More... | |
static | findSkills ($a_term) |
Find skills. More... | |
static | getAllCSkillIdsForNodeIds (array $a_node_ids) |
Get all possible common skill IDs for node IDs. More... | |
Data Fields | |
const | STATUS_PUBLISH = 0 |
const | STATUS_DRAFT = 1 |
const | STATUS_OUTDATED = 2 |
$type | |
$id | |
$title | |
Protected Member Functions | |
setCreationDate ($a_val) | |
Set creation date. More... | |
Static Protected Member Functions | |
static | _lookup ($a_obj_id, $a_field) |
Lookup Title. More... | |
ilSkillTreeNode::__construct | ( | $a_id = 0 | ) |
int | node id |
Definition at line 27 of file class.ilSkillTreeNode.php.
References read().
|
staticprotected |
Lookup Title.
int | Node ID |
Definition at line 251 of file class.ilSkillTreeNode.php.
|
static |
Lookup self evaluation.
int | node ID |
Definition at line 287 of file class.ilSkillTreeNode.php.
References $ilDB.
Referenced by ilPersonalSkillExplorerGUI\buildSelectableTree(), ilSkillTreeExplorerGUI\getNodeContent(), ilSkillTemplateTreeExplorerGUI\getNodeContent(), and ilPersonalSkillExplorerGUI\isNodeClickable().
|
static |
Lookup Status.
int | $a_obj_id | node ID |
Definition at line 300 of file class.ilSkillTreeNode.php.
References $ilDB.
Referenced by ilPersonalSkillExplorerGUI\buildSelectableTree(), ilSkillCatTableGUI\fillRow(), ilSkillTemplateTreeExplorerGUI\getChildsOfNode(), ilVirtualSkillTree\getChildsOfNode(), and ilSkillTreeNodeGUI\setTitleIcon().
|
static |
Lookup Title.
int | node ID |
Definition at line 269 of file class.ilSkillTreeNode.php.
References $ilDB, and ilSkillTemplateReference\_lookupTemplateId().
Referenced by ilSurveySkillThresholdsTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilPersonalSkillsGUI\assignMaterials(), clipboardCopy(), ilTestSkillLevelThresholdsTableGUI\completeCompetenceTitles(), ilSkillProfileGUI\confirmLevelAssignmentRemoval(), ilSkillSelfEvaluationGUI\confirmSelfEvaluationDeletion(), ilPersonalSkillsGUI\confirmSkillRemove(), ilSelfEvaluationTableGUI\fillRow(), ilSurveySkillTableGUI\fillRow(), ilSurveySkillAssignmentTableGUI\fillRow(), ilSurveySkill\getAllAssignedSkillsAsOptions(), ilTestSkillLevelThresholdImportFails\getFailedImportsMessage(), ilPersonalSkillsGUI\getGapAnalysisHTML(), ilPersonalSkill\getSelectedUserSkills(), ilSurveySkillTableGUI\getSkills(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilAssQuestionSkillAssignment\loadAdditionalSkillData(), ilPersonalSkillsGUI\renderSkillHTML(), ilPortfolioPageGUI\renderSkillsTeaser(), and ilPersonalSkillsGUI\selfEvaluation().
|
static |
Lookup Type.
int | Node ID |
Definition at line 313 of file class.ilSkillTreeNode.php.
Referenced by ilSkillTreeNodeGUI\__construct(), ilVirtualSkillTree\__getSubTreeRec(), ilPersonalSkillsGUI\assignMaterials(), clipboardCopy(), ilCOPageHTMLExport\collectPageElements(), ilObjSkillManagementGUI\deleteNodes(), getAllCSkillIdsForNodeIds(), ilSkillDataSet\getDependencies(), getIconPath(), ilVirtualSkillTreeExplorerGUI\getNodeIcon(), ilVirtualSkillTree\getSubTreeForCSkillId(), ilSkillDataSet\importRecord(), ilSkillTemplateReferenceGUI\listItems(), ilSkillSelectorGUI\nodeHasAction(), pasteTree(), ilSkillCategoryGUI\redirectToParent(), ilSkillTreeNodeGUI\redirectToParent(), ilBasicSkillGUI\redirectToParent(), ilPersonalSkillsGUI\renderSkillHTML(), ilPersonalSkillsGUI\selfEvaluation(), ilSkillTemplateReferenceGUI\setTabs(), ilObjSkillManagementGUI\showTree(), and uniqueTypesCheck().
|
static |
Write Order Nr.
int | Node ID |
string | Order Nr |
Definition at line 368 of file class.ilSkillTreeNode.php.
Referenced by saveChildsOrder().
|
static |
Write Title.
int | Node ID |
string | Title |
Definition at line 351 of file class.ilSkillTreeNode.php.
Referenced by ilObjSkillManagementGUI\saveAllTemplateTitles(), and ilObjSkillManagementGUI\saveAllTitles().
|
static |
Remove all skill items from clipboard.
Definition at line 661 of file class.ilSkillTreeNode.php.
References $ilUser, and ilEditClipboard\clear().
|
static |
Copy a set of skills/skill categories into the clipboard.
Definition at line 576 of file class.ilSkillTreeNode.php.
References $ilUser, _lookupTitle(), _lookupType(), date, and time.
Referenced by clipboardCut(), and ilSkillTreeNodeGUI\copyItems().
|
static |
Cut and copy a set of skills/skill categories into the clipboard.
Definition at line 525 of file class.ilSkillTreeNode.php.
References $id, $path, and clipboardCopy().
Referenced by ilSkillTreeNodeGUI\cutItems().
ilSkillTreeNode::create | ( | ) |
Create Node.
boolean | Upload Mode |
Definition at line 383 of file class.ilSkillTreeNode.php.
References $ilDB, $query, getImportId(), getOrderNr(), getSelfEvaluation(), getStatus(), getTitle(), getType(), and setId().
ilSkillTreeNode::delete | ( | ) |
Delete Node.
Definition at line 426 of file class.ilSkillTreeNode.php.
References $ilDB, $query, and getId().
|
static |
Find skills.
Definition at line 912 of file class.ilSkillTreeNode.php.
References $ilDB, $path, $res, $row, ilSkillTemplateReference\_lookupTemplateId(), ilSkillTemplateReference\_lookupTrefIdsForTopTemplateId(), and array.
Referenced by ilPublicUserProfileGUI\getAutocompleteResult().
|
static |
Get all possible common skill IDs for node IDs.
array | $a_node_ids | array of node ids |
Definition at line 994 of file class.ilSkillTreeNode.php.
References $id, ilSkillTemplateReference\_lookupTemplateId(), ilSkillTemplateReference\_lookupTrefIdsForTemplateId(), _lookupType(), and array.
Referenced by ilSkillTreeNodeGUI\isInUse().
|
static |
Get all self evaluation nodes.
Definition at line 768 of file class.ilSkillTreeNode.php.
Referenced by ilSkillSelfEvaluationGUI\listSelfEvaluations().
|
static |
Get all status.
Definition at line 184 of file class.ilSkillTreeNode.php.
Referenced by ilSkillTreeNodeGUI\addStatusInput().
ilSkillTreeNode::getCreationDate | ( | ) |
Get creation date.
Definition at line 174 of file class.ilSkillTreeNode.php.
|
static |
Get icon path.
int | $a_obj_id | node id |
string | $a_type | node type |
string | $a_size | size |
int | $a_status | status |
Definition at line 876 of file class.ilSkillTreeNode.php.
References $a_type, ilSkillTemplateReference\_lookupTemplateId(), _lookupType(), array, ilUtil\getImagePath(), and ILIAS_VERSION.
Referenced by ilSkillCatTableGUI\fillRow(), ilSkillTreeExplorerGUI\getNodeIcon(), ilSkillTemplateTreeExplorerGUI\getNodeIcon(), ilBasicSkillTemplateGUI\setLevelHead(), and ilSkillTreeNodeGUI\setTitleIcon().
ilSkillTreeNode::getId | ( | ) |
Get Node ID.
int | Node ID |
Definition at line 94 of file class.ilSkillTreeNode.php.
References $id.
Referenced by ilBasicSkill\addLevel(), delete(), ilBasicSkill\getLastLevelPerObject(), ilBasicSkill\getLastUpdatePerObject(), ilBasicSkill\getMaxLevelPerObject(), ilBasicSkill\getMaxLevelPerType(), and update().
ilSkillTreeNode::getImportId | ( | ) |
Get import id.
Definition at line 154 of file class.ilSkillTreeNode.php.
Referenced by create(), and update().
ilSkillTreeNode::getOrderNr | ( | ) |
Get order nr.
Definition at line 134 of file class.ilSkillTreeNode.php.
Referenced by ilBasicSkillTemplate\copy(), ilSkillTemplateCategory\copy(), ilSkillCategory\copy(), ilBasicSkill\copy(), ilSkillTemplateReference\copy(), create(), and update().
|
static |
ilSkillTreeNode::getSelfEvaluation | ( | ) |
Get self evaluation.
Definition at line 114 of file class.ilSkillTreeNode.php.
Referenced by ilSkillCategory\copy(), ilBasicSkill\copy(), ilSkillTemplateReference\copy(), create(), and update().
ilSkillTreeNode::getStatus | ( | ) |
Get status.
Definition at line 340 of file class.ilSkillTreeNode.php.
Referenced by create(), and update().
|
static |
Get status info.
int | $a_status | status |
Definition at line 201 of file class.ilSkillTreeNode.php.
References $lng.
Referenced by ilSkillTreeNodeGUI\addStatusInput().
ilSkillTreeNode::getTitle | ( | ) |
Get title.
Definition at line 54 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.
Definition at line 789 of file class.ilSkillTreeNode.php.
References array.
Referenced by ilSkillTemplateReferenceGUI\initForm().
|
static |
Get scorm module editing tree.
int | scorm module object id |
Definition at line 493 of file class.ilSkillTreeNode.php.
ilSkillTreeNode::getType | ( | ) |
Get type.
Definition at line 74 of file class.ilSkillTreeNode.php.
References $type.
Referenced by ilBasicSkillTemplate\copy(), ilSkillTemplateCategory\copy(), ilSkillCategory\copy(), ilBasicSkill\copy(), ilSkillTemplateReference\copy(), and create().
|
static |
Insert basic skills from clipboard.
Definition at line 616 of file class.ilSkillTreeNode.php.
References $a_type, $ilCtrl, $ilUser, $target, array, 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?
Definition at line 752 of file class.ilSkillTreeNode.php.
Referenced by ilBasicSkill\getSkillForLevelId().
|
static |
Paste item (tree) from clipboard to skill tree.
Definition at line 678 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 438 of file class.ilSkillTreeNode.php.
References $target, array, and IL_FIRST_NODE.
Referenced by ilSkillDataSet\importRecord(), pasteTree(), ilBasicSkillGUI\saveItem(), ilSkillCategoryGUI\saveItem(), ilSkillTemplateCategoryGUI\saveItem(), ilBasicSkillTemplateGUI\saveItem(), and ilSkillTemplateReferenceGUI\saveItem().
ilSkillTreeNode::read | ( | ) |
Read Data of Node.
Definition at line 217 of file class.ilSkillTreeNode.php.
References $ilBench, $ilDB, $query, setCreationDate(), setImportId(), setOrderNr(), setSelfEvaluation(), setStatus(), setTitle(), and setType().
Referenced by __construct().
|
static |
Save childs order.
Definition at line 826 of file class.ilSkillTreeNode.php.
References _writeOrderNr(), array, and ilUtil\sortArray().
Referenced by ilSkillTreeNodeGUI\confirmedDelete(), ilSkillTreeNodeGUI\cutItems(), insertItemsFromClip(), ilSkillTreeNodeGUI\save(), and ilSkillTreeNodeGUI\saveOrder().
|
protected |
Set creation date.
string | $a_val | creation date |
Definition at line 164 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setDataRecord | ( | $a_record | ) |
this method should only be called by class ilSCORM2004NodeFactory
Definition at line 240 of file class.ilSkillTreeNode.php.
ilSkillTreeNode::setId | ( | $a_id | ) |
Set Node ID.
int | Node ID |
Definition at line 84 of file class.ilSkillTreeNode.php.
Referenced by create().
ilSkillTreeNode::setImportId | ( | $a_val | ) |
Set import id.
string | $a_val | import id |
Definition at line 144 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setOrderNr | ( | $a_val | ) |
Set order nr.
int | $a_val | order nr |
Definition at line 124 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setSelfEvaluation | ( | $a_val | ) |
Set self evaluation.
boolean | self evaluation |
Definition at line 104 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setStatus | ( | $a_val | ) |
Set status.
boolean | $a_val | status |
Definition at line 330 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setTitle | ( | $a_title | ) |
Set title.
string | $a_title | title |
Definition at line 44 of file class.ilSkillTreeNode.php.
Referenced by read().
ilSkillTreeNode::setType | ( | $a_type | ) |
Set type.
string | Type |
Definition at line 64 of file class.ilSkillTreeNode.php.
References $a_type.
Referenced by ilBasicSkillTemplate\__construct(), ilSkillRoot\__construct(), ilSkillTemplateReference\__construct(), ilSkillTemplateCategory\__construct(), ilSkillCategory\__construct(), ilBasicSkill\__construct(), and read().
|
static |
Check for unique types.
Definition at line 503 of file class.ilSkillTreeNode.php.
References $type, _lookupType(), and array.
Referenced by ilSkillTreeNodeGUI\copyItems(), and ilSkillTreeNodeGUI\cutItems().
ilSkillTreeNode::update | ( | ) |
Update Node.
Definition at line 408 of file class.ilSkillTreeNode.php.
References $ilDB, $query, getId(), getImportId(), getOrderNr(), getSelfEvaluation(), getStatus(), and getTitle().
ilSkillTreeNode::$id |
Definition at line 21 of file class.ilSkillTreeNode.php.
Referenced by clipboardCut(), getAllCSkillIdsForNodeIds(), and getId().
ilSkillTreeNode::$title |
Definition at line 22 of file class.ilSkillTreeNode.php.
Referenced by getTitle().
ilSkillTreeNode::$type |
Definition at line 20 of file class.ilSkillTreeNode.php.
Referenced by getType(), and uniqueTypesCheck().
const ilSkillTreeNode::STATUS_DRAFT = 1 |
Definition at line 18 of file class.ilSkillTreeNode.php.
Referenced by ilPersonalSkillExplorerGUI\buildSelectableTree(), ilSkillTemplateTreeExplorerGUI\getChildsOfNode(), ilVirtualSkillTree\getChildsOfNode(), ilPersonalSkillsGUI\getGapAnalysisHTML(), ilSkillDataSet\importRecord(), ilPersonalSkillsGUI\listSkills(), ilPersonalSkillsGUI\renderSkillHTML(), and ilSkillTreeNodeGUI\setTitleIcon().
const ilSkillTreeNode::STATUS_OUTDATED = 2 |
Definition at line 19 of file class.ilSkillTreeNode.php.
Referenced by ilPersonalSkillExplorerGUI\buildSelectableTree(), and ilVirtualSkillTree\getChildsOfNode().
const ilSkillTreeNode::STATUS_PUBLISH = 0 |
Definition at line 17 of file class.ilSkillTreeNode.php.