32 $sctp->setType($this->
getType());
39 public function delete()
43 $sctp_id = $this->
getId();
44 $childs = $this->skill_tree->getChildsByTypeFilter(
48 foreach ($childs as $node) {
49 switch ($node[
"type"]) {
64 $node_data = $this->skill_tree->getNodeData($tref_id);
65 if (is_object($obj)) {
68 if ($this->skill_tree->isInTree($tref_id)) {
69 $this->skill_tree->deleteTree($node_data);
74 "DELETE FROM skl_templ_ref WHERE " 75 .
" templ_id = " .
$ilDB->quote($this->getId(),
"integer")
setType($a_type)
Set type.
getDescription()
Get description.
__construct($a_id=0)
Constructor public.
getOrderNr()
Get order nr.
static getInstance($a_id=0)
copy()
Copy skill category.
__construct(Container $dic, ilPlugin $plugin)
static _lookupTrefIdsForTopTemplateId($a_template_id)
Lookup tref ids for template id.
A node in the skill tree.