19declare(strict_types=1);
27 public const string TYPE =
'etal';
39 public function __construct(
int $a_id = 0,
bool $a_call_by_reference =
true)
61 public function read(): void
71 $this->data->setObjectId($this->
getId());
76 $app->setSubtitle(
'');
77 $app->setFullday($this->data->isAllDay());
80 $app->setStart($this->data->getStartDate());
81 $app->setEnd($this->data->getEndDate());
82 $app->setLocation($this->data->getLocation());
91 'components/ILIAS/EmployeeTalk',
94 'obj_id' => $this->
getId(),
95 'appointments' => $apps
99 return $this->
getId();
104 public function update(): bool
121 $app->setFullday($this->data->isAllDay());
124 $app->setStart($this->data->getStartDate());
125 $app->setEnd($this->data->getEndDate());
126 $app->setLocation($this->data->getLocation());
135 'components/ILIAS/EmployeeTalk',
138 'obj_id' => $this->
getId(),
139 'appointments' => $apps
168 if (self::$root_ref_id === -1 || self::$root_id === -1) {
171 $q =
"SELECT o.obj_id, r.ref_id FROM object_data o
172 INNER JOIN object_reference r ON r.obj_id = o.obj_id
173 WHERE title = " .
$ilDB->quote(
'__TalkTemplateAdministration',
'text');
176 self::$root_id = (
int)
$res[
"obj_id"];
177 self::$root_ref_id = (
int)
$res[
"ref_id"];
186 public static function _exists(
int $id,
bool $reference =
false, ?
string $type =
null): bool
188 return parent::_exists(
$id, $reference,
"etal");
196 public function delete():
bool
204 'components/ILIAS/EmployeeTalk',
208 'obj_id' => $this->
getId(),
217 $result = parent::delete();
219 if (!$parent_series->hasChildren()) {
220 $parent_series->delete();
240 $this->data = clone
$data;
244 public function cloneObject(
int $target_id,
int $copy_id = 0,
bool $omit_tree =
false):
ilObjEmployeeTalk
249 $talkClone = parent::cloneObject($target_id, $copy_id, $omit_tree);
250 $data = $this->
getData()->setObjectId($talkClone->getId());
252 $talkClone->setData(
$data);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Apointment templates are used for automatic generated apointments.
@classDescription Date and time handling
EmployeeTalkRepository $repository
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