3declare(strict_types=1);
23 public const TYPE =
'talt';
40 public function read(): void
52 return $this->
getId();
58 return parent::update();
86 if (self::$root_ref_id === -1 || self::$root_id === -1) {
89 $q =
"SELECT o.obj_id, r.ref_id FROM object_data o
90 INNER JOIN object_reference r ON r.obj_id = o.obj_id
91 WHERE title = " .
$ilDB->quote(
'__TalkTemplateAdministration',
'text') .
"";
92 $set =
$ilDB->query($q);
94 self::$root_id = (
int)
$res[
"obj_id"];
95 self::$root_ref_id = (
int)
$res[
"ref_id"];
105 public static function _exists(
int $id,
bool $reference =
false, ?
string $type =
null): bool
107 return parent::_exists(
$id, $reference, self::TYPE);
116 public function delete():
bool
118 return parent::delete();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _writeContainerSetting(int $a_id, string $a_keyword, string $a_value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
create()
note: title, description and type should be set when this function is called
__construct(int $id=0, bool $a_call_by_reference=true)
static _exists(int $id, bool $reference=false, ?string $type=null)
static loadRootOrgRefIdAndId()
setOfflineStatus(bool $status)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc