ILIAS  release_8 Revision v8.24
ilObjEmployeeTalkGUI Class Reference

Class ilObjEmployeeTalkGUI. More...

+ Inheritance diagram for ilObjEmployeeTalkGUI:
+ Collaboration diagram for ilObjEmployeeTalkGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 editObject ()
 
 updateObject ()
 updates object entry in object_data More...
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 getAdminTabs ()
 
- Public Member Functions inherited from ilObjectGUI
 __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
 
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 if true, a creation screen is displayed the current [ref_id] don't belong to the current class! The mode is determined in ilRepositoryGUI More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen. More...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Protected Member Functions

 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms (string $new_type)
 Init creation forms. More...
 
 getCreationFormsHTML (array $forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm (string $new_type)
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm (string $new_type)
 
 importFileObject (int $parent_id=null)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 fillCloneTemplate (?string $tpl_name, string $type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 showCustomIconsEditing ( $input_colspan=1, ilPropertyFormGUI $form=null, $as_section=true)
 show edit section of custom icons for container More...
 

Private Member Functions

 checkAccessOrFail ()
 
 sendNotification (array $talks)
 
 sendUpdateNotification (array $talks)
 

Private Attributes

ILIAS DI Container $container
 
ilPropertyFormGUI $form
 
bool $isReadonly
 
ilObjEmployeeTalkAccess $talkAccess
 
IliasDBEmployeeTalkSeriesRepository $repository
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 
- Data Fields inherited from ilObjectGUI
const ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Factory $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjEmployeeTalkGUI::__construct ( )

Definition at line 47 of file class.ilObjEmployeeTalkGUI.php.

48 {
49 $this->container = $GLOBALS["DIC"];
50
51 $refId = $this->container
52 ->http()
53 ->wrapper()
54 ->query()
55 ->retrieve("ref_id", $this->container->refinery()->kindlyTo()->int());
56 parent::__construct([], $refId, true, false);
57
58 $this->container->language()->loadLanguageModule('mst');
59 $this->container->language()->loadLanguageModule('trac');
60 $this->container->language()->loadLanguageModule('etal');
61 $this->container->language()->loadLanguageModule('dateplaner');
62
63 $this->type = 'etal';
64
65 $this->setReturnLocation("save", strtolower(ilEmployeeTalkMyStaffListGUI::class));
66
67 $this->omitLocator();
68 $this->container->ui()->mainTemplate()->setTitle($this->container->language()->txt('mst_my_staff'));
69 $this->talkAccess = ilObjEmployeeTalkAccess::getInstance();
70 $this->repository = new IliasDBEmployeeTalkSeriesRepository($this->user, $this->container->database());
71 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
setReturnLocation(string $cmd, string $location)
set specific return location for command
omitLocator(bool $omit=true)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$refId
Definition: xapitoken.php:58

References $GLOBALS, $refId, ILIAS\GlobalScreen\Provider\__construct(), ilObjEmployeeTalkAccess\getInstance(), ilObjectGUI\omitLocator(), ILIAS\UI\examples\Deck\repository(), ilObjectGUI\setReturnLocation(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ cancelDeleteObject()

ilObjEmployeeTalkGUI::cancelDeleteObject ( )

cancel deletion of object

Reimplemented from ilObjectGUI.

Definition at line 347 of file class.ilObjEmployeeTalkGUI.php.

347 : void
348 {
349 ilSession::clear("saved_post");
350
351 $this->ctrl->redirectByClass(strtolower(ilEmployeeTalkMyStaffListGUI::class), ControlFlowCommand::DEFAULT, "", false);
352 }
static clear(string $a_var)

References ilSession\clear(), and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ checkAccessOrFail()

ilObjEmployeeTalkGUI::checkAccessOrFail ( )
private

Definition at line 73 of file class.ilObjEmployeeTalkGUI.php.

73 : void
74 {
75 if (!$this->talkAccess->canRead(intval($this->object->getRefId()))) {
76 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
77 $this->ctrl->redirectByClass(ilDashboardGUI::class, "");
78 }
79 }

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmedDeleteObject()

ilObjEmployeeTalkGUI::confirmedDeleteObject ( )

confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled

Reimplemented from ilObjectGUI.

Definition at line 181 of file class.ilObjEmployeeTalkGUI.php.

181 : void
182 {
183 if (!$this->talkAccess->canDelete($this->ref_id)) {
184 ilSession::clear("saved_post");
185 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
186 $this->ctrl->redirectByClass(strtolower(ilEmployeeTalkMyStaffListGUI::class), ControlFlowCommand::DEFAULT, "", false);
187
188 return;
189 }
190
191 if ($this->post_wrapper->has("mref_id")) {
192 $mref_id = $this->post_wrapper->retrieve(
193 "mref_id",
194 $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
195 );
196 $saved_post = array_unique(array_merge(ilSession::get('saved_post'), $mref_id));
197 ilSession::set('saved_post', $saved_post);
198 }
199
200 $ru = new ilRepositoryTrashGUI($this);
201 $refIds = ilSession::get("saved_post");
202 $talks = [];
203
204 foreach ($refIds as $refId) {
205 $talks[] = new ilObjEmployeeTalk(intval($refId), true);
206 }
207
208 $ru->deleteObjects($this->requested_ref_id, $refIds);
209 $trashEnabled = boolval($this->container->settings()->get('enable_trash'));
210
211 $this->sendNotification($talks);
212 if ($trashEnabled) {
213 foreach ($talks as $talk) {
214 $talk->delete();
215 }
216 }
217
218 ilSession::clear("saved_post");
219
220 $this->ctrl->redirectByClass(strtolower(ilEmployeeTalkMyStaffListGUI::class), ControlFlowCommand::DEFAULT, "", false);
221 }
Repository GUI Utilities.
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.

References $refId, ilSession\clear(), ILIAS\Repository\ctrl(), ilSession\get(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), sendNotification(), and ilSession\set().

+ Here is the call graph for this function:

◆ editObject()

ilObjEmployeeTalkGUI::editObject ( )

Reimplemented from ilObjectGUI.

Definition at line 129 of file class.ilObjEmployeeTalkGUI.php.

129 : void
130 {
131 $this->tabs_gui->activateTab('view_content');
132
133 $form = $this->initEditForm();
134 $values = $this->getEditFormValues();
135 if ($values) {
136 $form->setValuesByArray($values);
137 }
138
140
141 $this->tpl->setContent($form->getHTML());
142 }
addExternalEditFormCustom(ilPropertyFormGUI $form)
setValuesByArray(array $a_values, bool $a_restrict_to_value_keys=false)

References $form, ilObjectGUI\addExternalEditFormCustom(), ilObjectGUI\getEditFormValues(), ilPropertyFormGUI\getHTML(), ilObjectGUI\initEditForm(), and ilPropertyFormGUI\setValuesByArray().

Referenced by viewObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjEmployeeTalkGUI::executeCommand ( )

Reimplemented from ilObjectGUI.

Definition at line 81 of file class.ilObjEmployeeTalkGUI.php.

81 : void
82 {
83 $this->checkAccessOrFail();
84 $this->isReadonly = !$this->talkAccess->canEdit(intval($this->object->getRefId()));
85
86 // determine next class in the call structure
87 $next_class = $this->container->ctrl()->getNextClass($this);
88
89 switch ($next_class) {
90 case 'ilpermissiongui':
91 parent::prepareOutput();
92 $this->tabs_gui->activateTab('perm_settings');
93 $ilPermissionGUI = new ilPermissionGUI($this);
94 $this->ctrl->forwardCommand($ilPermissionGUI);
95 break;
96 case 'ilinfoscreengui':
97 parent::prepareOutput();
98 $this->tabs_gui->activateTab('info_short');
99 $ilInfoScreenGUI = new ilInfoScreenGUI($this);
100 $this->ctrl->forwardCommand($ilInfoScreenGUI);
101 break;
102 case strtolower(ilRepositorySearchGUI::class):
103 $repo = new ilRepositorySearchGUI();
104 //TODO: Add user filter
106 //$repo->addUserAccessFilterCallable(function () {
107 // $orgUnitUser = ilOrgUnitUser::getInstanceById($this->container->user()->getId());
108 // $orgUnitUser->addPositions() ;
109 //});
110 $this->container->ctrl()->forwardCommand($repo);
111 break;
112 case strtolower(ilEmployeeTalkAppointmentGUI::class):
113 $appointmentGUI = new ilEmployeeTalkAppointmentGUI(
114 $this->tpl,
115 $this->lng,
116 $this->ctrl,
117 $this->container->http(),
118 $this->container->refinery(),
119 $this->container->tabs(),
120 $this->object
121 );
122 $this->container->ctrl()->forwardCommand($appointmentGUI);
123 break;
124 default:
125 parent::executeCommand();
126 }
127 }
Class ilEmployeeTalkAppointmentGUI.
Class ilInfoScreenGUI.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static http()
Fetches the global http state from ILIAS.

References checkAccessOrFail(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ilUserAutoComplete\PRIVACY_MODE_IGNORE_USER_SETTING.

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjEmployeeTalkGUI::getAdminTabs ( )
Parameters
ilTabsGUI$tabs_gui

Reimplemented from ilObjectGUI.

Definition at line 576 of file class.ilObjEmployeeTalkGUI.php.

576 : void
577 {
578 $this->getTabs();
579
580 if ($this->checkPermissionBool("edit_permission")) {
581 $this->tabs_gui->addTab(
582 'perm_settings',
583 $this->lng->txt('perm_settings'),
584 $this->ctrl->getLinkTargetByClass(
585 [
586 get_class($this),
587 'ilpermissiongui'
588 ],
589 'perm'
590 )
591 );
592 }
593 }
getTabs()
@abstract overwrite in derived GUI class of your object type
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)

References ilObjectGUI\checkPermissionBool(), getTabs(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getTabs()

ilObjEmployeeTalkGUI::getTabs ( )
protected

@abstract overwrite in derived GUI class of your object type

Reimplemented from ilObjectGUI.

Definition at line 566 of file class.ilObjEmployeeTalkGUI.php.

566 : void
567 {
568 $this->tabs_gui->addTab('view_content', $this->lng->txt("content"), $this->ctrl->getLinkTarget($this, ControlFlowCommand::UPDATE));
569 $this->tabs_gui->addTab("info_short", "Info", $this->ctrl->getLinkTargetByClass(strtolower(ilInfoScreenGUI::class), "showSummary"));
570 //$this->tabs_gui->addTab('settings', $this->lng->txt("settings"), $this->ctrl->getLinkTarget($this, "edit"));
571 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by getAdminTabs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendNotification()

ilObjEmployeeTalkGUI::sendNotification ( array  $talks)
private
Parameters
ilObjEmployeeTalk[]$talks

Definition at line 226 of file class.ilObjEmployeeTalkGUI.php.

226 : void
227 {
228 $firstTalk = $talks[0];
229 $talk_title = $firstTalk->getTitle();
230 $superior = new ilObjUser($firstTalk->getOwner());
231 $employee = new ilObjUser($firstTalk->getData()->getEmployee());
232 $superiorName = $superior->getFullname();
233 $series = $firstTalk->getParent();
234
235 $dates = array_map(
236 fn (ilObjEmployeeTalk $t) => $t->getData()->getStartDate(),
237 $talks
238 );
239 usort($dates, function (ilDateTime $a, ilDateTime $b) {
240 $a = $a->getUnixTime();
241 $b = $b->getUnixTime();
242 if ($a === $b) {
243 return 0;
244 }
245 return $a < $b ? -1 : 1;
246 });
247
248 $add_time = $firstTalk->getData()->isAllDay() ? 0 : 1;
250 $timezone = $employee->getTimeZone();
251 $dates = array_map(function (ilDateTime $d) use ($add_time, $format, $timezone) {
252 return $d->get(IL_CAL_FKT_DATE, $format, $timezone);
253 }, $dates);
254
256 $firstTalk->getRefId(),
257 $talk_title,
258 $firstTalk->getDescription(),
259 $firstTalk->getData()->getLocation(),
260 'notification_talks_subject_update',
261 'notification_talks_removed',
262 $superiorName,
263 $dates,
264 false
265 );
266
267 // Check if we deleted the last talk of the series
268 $vCalSender = null;
269 if ($series->hasChildren()) {
270 $vCalSender = new EmployeeTalkEmailNotificationService(
271 $message,
272 $talk_title,
273 $employee,
274 $superior,
275 VCalendarFactory::getInstanceFromTalks($series)
276 );
277 } else {
278 $vCalSender = new EmployeeTalkEmailNotificationService(
279 $message,
280 $talk_title,
281 $employee,
282 $superior,
283 VCalendarFactory::getEmptyInstance($series, $talk_title)
284 );
285 }
286
287 $vCalSender->send();
288 }
const IL_CAL_FKT_DATE
static getUserDateFormat(int $a_add_time=0, bool $a_for_parsing=false)
Parse current user setting into date/time format.
@classDescription Date and time handling
User class.
for( $i=6;$i< 13;$i++) for($i=1; $i< 13; $i++) $d
Definition: date.php:296
$format
Definition: metadata.php:235
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
$message
Definition: xapiexit.php:32

References Vendor\Package\$a, Vendor\Package\$b, $d, $format, $message, ilObjEmployeeTalk\getData(), ilCalendarUtil\getUserDateFormat(), and IL_CAL_FKT_DATE.

Referenced by confirmedDeleteObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendUpdateNotification()

ilObjEmployeeTalkGUI::sendUpdateNotification ( array  $talks)
private
Parameters
ilObjEmployeeTalk[]$talks

Definition at line 293 of file class.ilObjEmployeeTalkGUI.php.

293 : void
294 {
295 if (count($talks) === 0) {
296 return;
297 }
298
299 $firstTalk = $talks[0];
300 $talk_title = $firstTalk->getTitle();
301 $superior = new ilObjUser($firstTalk->getOwner());
302 $employee = new ilObjUser($firstTalk->getData()->getEmployee());
303 $superiorName = $superior->getFullname();
304
305 $dates = array_map(
306 fn (ilObjEmployeeTalk $t) => $t->getData()->getStartDate(),
307 $talks
308 );
309 usort($dates, function (ilDateTime $a, ilDateTime $b) {
310 $a = $a->getUnixTime();
311 $b = $b->getUnixTime();
312 if ($a === $b) {
313 return 0;
314 }
315 return $a < $b ? -1 : 1;
316 });
317
318 $add_time = $firstTalk->getData()->isAllDay() ? 0 : 1;
320 $timezone = $employee->getTimeZone();
321 $dates = array_map(function (ilDateTime $d) use ($add_time, $format, $timezone) {
322 return $d->get(IL_CAL_FKT_DATE, $format, $timezone);
323 }, $dates);
324
326 $firstTalk->getRefId(),
327 $talk_title,
328 $firstTalk->getDescription(),
329 $firstTalk->getData()->getLocation(),
330 'notification_talks_subject_update',
331 'notification_talks_updated',
332 $superiorName,
333 $dates
334 );
335
336 $vCalSender = new EmployeeTalkEmailNotificationService(
337 $message,
338 $talk_title,
339 $employee,
340 $superior,
341 VCalendarFactory::getInstanceFromTalks($firstTalk->getParent())
342 );
343
344 $vCalSender->send();
345 }

References Vendor\Package\$a, Vendor\Package\$b, $d, $format, $message, ilObjEmployeeTalk\getData(), ilCalendarUtil\getUserDateFormat(), and IL_CAL_FKT_DATE.

+ Here is the call graph for this function:

◆ updateObject()

ilObjEmployeeTalkGUI::updateObject ( )

updates object entry in object_data

Reimplemented from ilObjectGUI.

Definition at line 159 of file class.ilObjEmployeeTalkGUI.php.

159 : void
160 {
161 $form = $this->initEditForm();
163 if ($form->checkInput() &&
164 $this->validateCustom($form) &&
165 !$this->isReadonly) {
166 $this->object->setTitle($form->getInput("title"));
167 $this->object->setDescription($form->getInput("desc"));
168 $this->updateCustom($form);
169 $this->object->update();
170
171 $this->afterUpdate();
172 return;
173 }
174
175 // display form again to correct errors
176 $this->tabs_gui->activateTab("view_content");
178 $this->tpl->setContent($form->getHtml());
179 }
afterUpdate()
Post (successful) object update hook.
updateCustom(ilPropertyFormGUI $form)
Insert custom update form values into object.
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...

References $form, ilObjectGUI\addExternalEditFormCustom(), ilObjectGUI\afterUpdate(), ilPropertyFormGUI\checkInput(), ilPropertyFormGUI\getInput(), ilObjectGUI\initEditForm(), ilPropertyFormGUI\setValuesByPost(), and ilObjectGUI\updateCustom().

+ Here is the call graph for this function:

◆ validateCustom()

ilObjEmployeeTalkGUI::validateCustom ( ilPropertyFormGUI  $form)
protected

Validate custom values (if not possible with checkInput())

Reimplemented from ilObjectGUI.

Definition at line 144 of file class.ilObjEmployeeTalkGUI.php.

144 : bool
145 {
146 $refId = intval($this->object->getRefId());
147 $settings = $this->repository->readEmployeeTalkSerieSettings(intval($this->object->getId()));
148 $oldLockSettings = $settings->isLockedEditing();
149 $lockEdititngForOthers = boolval(
150 intval($a_form->getInput('etal_settings_locked_for_others'))
151 );
152 if ($oldLockSettings === $lockEdititngForOthers) {
153 return true;
154 }
155
156 return $this->talkAccess->canEditTalkLockStatus($refId);
157 }
ilSetting $settings

References $refId, ilObjectGUI\$settings, ilPropertyFormGUI\getInput(), ILIAS\Repository\object(), and ILIAS\UI\examples\Deck\repository().

+ Here is the call graph for this function:

◆ viewObject()

ilObjEmployeeTalkGUI::viewObject ( )

viewObject container presentation for "administration -> repository, trash, permissions"

Reimplemented from ilObjectGUI.

Definition at line 560 of file class.ilObjEmployeeTalkGUI.php.

560 : void
561 {
562 $this->tabs_gui->activateTab('view_content');
563 $this->editObject();
564 }

References editObject().

+ Here is the call graph for this function:

Field Documentation

◆ $container

ILIAS DI Container ilObjEmployeeTalkGUI::$container
private

Definition at line 41 of file class.ilObjEmployeeTalkGUI.php.

◆ $form

ilPropertyFormGUI ilObjEmployeeTalkGUI::$form
private

Definition at line 42 of file class.ilObjEmployeeTalkGUI.php.

Referenced by editObject(), and updateObject().

◆ $isReadonly

bool ilObjEmployeeTalkGUI::$isReadonly
private

Definition at line 43 of file class.ilObjEmployeeTalkGUI.php.

◆ $repository

IliasDBEmployeeTalkSeriesRepository ilObjEmployeeTalkGUI::$repository
private

Definition at line 45 of file class.ilObjEmployeeTalkGUI.php.

◆ $talkAccess

ilObjEmployeeTalkAccess ilObjEmployeeTalkGUI::$talkAccess
private

Definition at line 44 of file class.ilObjEmployeeTalkGUI.php.


The documentation for this class was generated from the following file: