32 $skill->setType($this->
getType());
37 if (
sizeof($levels)) {
38 foreach ($levels as $item) {
39 $skill->addLevel($item[
"title"], $item[
"description"]);
47 public function delete():
void 53 $node_data = $this->skill_tree->getNodeData($tref_id);
54 if (is_object($obj)) {
57 if ($this->skill_tree->isInTree($tref_id)) {
58 $this->skill_tree->deleteTree($node_data);
63 "DELETE FROM skl_templ_ref WHERE " 64 .
" templ_id = " .
$ilDB->quote($this->getId(),
"integer")
setType($a_type)
Set type.
getDescription()
Get description.
getOrderNr()
Get order nr.
static getInstance($a_id=0)
getLevelData(int $a_id=0)
__construct(Container $dic, ilPlugin $plugin)
static _lookupTrefIdsForTopTemplateId($a_template_id)
Lookup tref ids for template id.
copy()
Copy basic skill template.
__construct($a_id=0)
Constructor public.