3 declare(strict_types=1);
33 public function __construct(
int $a_id = 0,
bool $a_call_by_reference =
true)
40 public function read(): void
48 return parent::create();
54 return parent::update();
63 self::loadRootOrgRefIdAndId();
65 return self::$root_ref_id;
74 self::loadRootOrgRefIdAndId();
76 return self::$root_id;
82 if (self::$root_ref_id === -1 || self::$root_id === -1) {
85 $q =
"SELECT o.obj_id, r.ref_id FROM object_data o 86 INNER JOIN object_reference r ON r.obj_id = o.obj_id 87 WHERE title = '__TalkTemplateAdministration' 89 $set =
$ilDB->query($q);
91 self::$root_id = (
int)
$res[
"obj_id"];
92 self::$root_ref_id = (
int)
$res[
"ref_id"];
98 if (parent::getTitle() !==
"__TalkTemplateAdministration") {
99 return parent::getTitle();
101 return $this->
lng->txt(
"objs_tala");
111 public static function _exists(
int $a_id,
bool $a_reference =
false, ?
string $type = null): bool
113 return parent::_exists($a_id, $a_reference,
"tala");
122 public function delete():
bool 124 return parent::delete();
__construct(int $a_id=0, bool $a_call_by_reference=true)
static _exists(int $a_id, bool $a_reference=false, ?string $type=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
static loadRootOrgRefIdAndId()