19declare(strict_types=1);
26 public const string TYPE =
'tals';
30 public function __construct(
int $a_id = 0,
bool $a_call_by_reference =
true)
52 'components/ILIAS/EmployeeTalk',
55 'obj_id' => $this->
getId(),
60 return $this->
getId();
65 public function update(): bool
67 $ret = parent::update();
75 'components/ILIAS/EmployeeTalk',
78 'obj_id' => $this->
getId(),
85 public static function _exists(
int $id,
bool $reference =
false, ?
string $type =
null): bool
87 return parent::_exists(
$id, $reference, self::TYPE);
95 public function delete():
bool
103 'components/ILIAS/EmployeeTalk',
107 'obj_id' => $this->
getId(),
113 $node_data = $this->tree->getNodeData($this->
getRefId());
114 $result = parent::delete();
115 $this->tree->deleteNode($node_data[
'tree'], $this->
getRefId());
122 $children = $this->tree->getChildIds($this->
getRefId());
123 return count($children) > 0;
131 $child_ids = $this->tree->getChildIds($this->
getRefId());
133 foreach ($child_ids as
$id) {
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static _writeContainerSetting(int $a_id, string $a_keyword, string $a_value)
create()
note: title, description and type should be set when this function is called
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
__construct(int $a_id=0, bool $a_call_by_reference=true)
IliasDBEmployeeTalkSeriesRepository $repository
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc