19declare(strict_types=1);
27 public const string TYPE =
'etal';
52 public function __construct(
int $a_id = 0,
bool $a_call_by_reference =
true)
74 public function read(): void
84 $this->data->setObjectId($this->
getId());
89 $app->setSubtitle(
'');
90 $app->setFullday($this->data->isAllDay());
93 $app->setStart($this->data->getStartDate());
94 $app->setEnd($this->data->getEndDate());
95 $app->setLocation($this->data->getLocation());
104 'components/ILIAS/EmployeeTalk',
107 'obj_id' => $this->
getId(),
108 'appointments' => $apps
112 return $this->
getId();
117 public function update(): bool
125 $app->setFullday($this->data->isAllDay());
128 $app->setStart($this->data->getStartDate());
129 $app->setEnd($this->data->getEndDate());
130 $app->setLocation($this->data->getLocation());
139 'components/ILIAS/EmployeeTalk',
142 'obj_id' => $this->
getId(),
143 'appointments' => $apps
172 if (self::$root_ref_id === -1 || self::$root_id === -1) {
175 $q =
"SELECT o.obj_id, r.ref_id FROM object_data o
176 INNER JOIN object_reference r ON r.obj_id = o.obj_id
177 WHERE title = " .
$ilDB->quote(
'__TalkTemplateAdministration',
'text');
180 self::$root_id = (
int)
$res[
"obj_id"];
181 self::$root_ref_id = (
int)
$res[
"ref_id"];
190 public static function _exists(
int $id,
bool $reference =
false, ?
string $type =
null): bool
192 return parent::_exists(
$id, $reference,
"etal");
200 public function delete():
bool
208 'components/ILIAS/EmployeeTalk',
212 'obj_id' => $this->
getId(),
221 $result = parent::delete();
223 if (!$parent_series->hasChildren()) {
224 $parent_series->delete();
244 $this->data = clone
$data;
248 public function cloneObject(
int $target_id,
int $copy_id = 0,
bool $omit_tree =
false):
ilObjEmployeeTalk
253 $talkClone = parent::cloneObject($target_id, $copy_id, $omit_tree);
254 $data = $this->
getData()->setObjectId($talkClone->getId());
256 $talkClone->setData(
$data);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Apointment templates are used for automatic generated apointments.
@classDescription Date and time handling
static loadRootOrgRefIdAndId()
__construct(int $a_id=0, bool $a_call_by_reference=true)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
setData(EmployeeTalk $data)
Class ilObject Basic functions for all objects.
getLongDescription()
get object long description (stored in object_description)
create()
note: title, description and type should be set when this function is called
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc