ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilSkillTemplateCategory.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
28 {
29  public function __construct(int $a_id = 0)
30  {
31  parent::__construct($a_id);
32  $this->setType("sctp");
33  }
34 
35  public function copy(): ilSkillTemplateCategory
36  {
37  $sctp = new ilSkillTemplateCategory();
38  $sctp->setTitle($this->getTitle());
39  $sctp->setDescription($this->getDescription());
40  $sctp->setType($this->getType());
41  $sctp->setOrderNr($this->getOrderNr());
42  $sctp->create();
43 
44  return $sctp;
45  }
46 
47  public function delete(): void
48  {
49  $ilDB = $this->db;
50 
51  $ilDB->manipulate(
52  "DELETE FROM skl_templ_ref WHERE "
53  . " templ_id = " . $ilDB->quote($this->getId(), "integer")
54  );
55 
56  parent::delete();
57  }
58 }
setType(string $a_type)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...