ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilSkillTemplateCategory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 public function __construct(int $a_id = 0)
29 {
31 $this->setType("sctp");
32 }
33
34 public function copy(): ilSkillTemplateCategory
35 {
36 $sctp = new ilSkillTemplateCategory();
37 $sctp->setTitle($this->getTitle());
38 $sctp->setDescription($this->getDescription());
39 $sctp->setType($this->getType());
40 $sctp->setOrderNr($this->getOrderNr());
41 $sctp->create();
42
43 return $sctp;
44 }
45
46 public function delete(): void
47 {
49
50 $ilDB->manipulate(
51 "DELETE FROM skl_templ_ref WHERE "
52 . " templ_id = " . $ilDB->quote($this->getId(), "integer")
53 );
54
55 parent::delete();
56 }
57}
A node in the skill tree.
setType(string $a_type)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc