ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilObjEmployeeTalkGUI Class Reference

Class ilObjEmployeeTalkGUI. More...

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

Public Member Functions

 __construct ()
 
 setLinkToParentGUI (string $link)
 
 redirectToParentGUI ()
 
 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...
 
 addChangeDateButtonsToToolbar ()
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 getAdminTabs ()
 
- Public Member Functions inherited from ilObjectGUI
 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] does belong to the parent 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...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 editAvailabilityPeriodObject ()
 
 saveAvailabilityPeriodObject ()
 
 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)
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Protected Member Functions

 validateCustom (ilPropertyFormGUI $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 ()
 
 createActionDispatcherGUI ()
 
 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...
 
 getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form)
 
 getTitleForCreationFormPage ()
 
 getCreationFormTitle ()
 
 initCreateForm (string $new_type)
 
 didacticTemplatesToForm ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 retrieveAdditionalDidacticTemplateOptions ()
 
 addAdoptContentLinkToToolbar ()
 
 addImportButtonToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 parseDidacticTemplateVar (string $var, string $type)
 
 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...
 
 routeImportCmdObject ()
 
 importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir)
 
 deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir)
 
 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...
 
 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...
 
 getCreatableObjectTypes ()
 
 buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
 
 buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
 

Protected Attributes

Refinery $refinery
 
UIFactory $ui_factory
 
ilPropertyFormGUI $form
 
bool $isReadonly
 
ilObjEmployeeTalkAccess $talkAccess
 
IliasDBEmployeeTalkSeriesRepository $repository
 
MetadataHandlerInterface $md_handler
 
NotificationHandlerInterface $notif_handler
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
GlobalHttpState $http
 
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
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
CustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
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 = ""
 

Private Member Functions

 checkAccessOrFail ()
 
 sendNotification (ilObjEmployeeTalk ... $talks)
 
 sendUpdateNotification (ilObjEmployeeTalk ... $talks)
 

Private Attributes

string $link_to_parent
 

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 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
 
const SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED]
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjEmployeeTalkGUI::__construct ( )

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

59 {
60 global $DIC;
61
62 $this->refinery = $DIC->refinery();
63 $refId = $DIC->http()->wrapper()->query()->retrieve(
64 "ref_id",
65 $this->refinery->kindlyTo()->int()
66 );
67 parent::__construct([], $refId, true, false);
68
69 $DIC->language()->loadLanguageModule('mst');
70 $DIC->language()->loadLanguageModule('trac');
71 $DIC->language()->loadLanguageModule('etal');
72 $DIC->language()->loadLanguageModule('dateplaner');
73 $this->lng = $DIC->language();
74 $this->ui_factory = $DIC->ui()->factory();
75
76 $this->type = 'etal';
77
78 $this->omitLocator();
79 $DIC->ui()->mainTemplate()->setTitle($this->lng->txt('mst_my_staff'));
80 $this->talkAccess = ilObjEmployeeTalkAccess::getInstance();
81 $this->repository = new IliasDBEmployeeTalkSeriesRepository($this->user, $DIC->database());
82 $this->md_handler = new MetadataHandler();
83 $this->notif_handler = new NotificationHandler(new VCalendarGenerator($DIC->language()));
84 }
omitLocator(bool $omit=true)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26
$refId
Definition: xapitoken.php:58

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

+ Here is the call graph for this function:

Member Function Documentation

◆ addChangeDateButtonsToToolbar()

ilObjEmployeeTalkGUI::addChangeDateButtonsToToolbar ( )

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

344 : void
345 {
346 if ($this->isReadonly) {
347 return;
348 }
349 $appointment_class = strtolower(ilEmployeeTalkAppointmentGUI::class);
350 $this->ctrl->setParameterByClass($appointment_class, 'ref_id', $this->ref_id);
351
352 $this->ctrl->setParameterByClass(
353 $appointment_class,
356 );
357 $link_single = $this->ctrl->getLinkTargetByClass(
358 $appointment_class,
359 ControlFlowCommand::UPDATE_INDEX
360 );
361 $button_single = $this->ui_factory->button()->standard(
362 $this->lng->txt('change_date_of_talk'),
363 $link_single
364 );
365
366 $this->ctrl->setParameterByClass(
367 $appointment_class,
370 );
371 $link_all = $this->ctrl->getLinkTargetByClass(
372 $appointment_class,
373 ControlFlowCommand::UPDATE_INDEX
374 );
375 $button_all = $this->ui_factory->button()->standard(
376 $this->lng->txt('change_date_of_series'),
377 $link_all
378 );
379
380 $this->ctrl->clearParametersByClass($appointment_class);
381
382 $this->toolbar->addComponent($button_single);
383 $this->toolbar->addComponent($button_all);
384 }

References ILIAS\Repository\ctrl(), ilEmployeeTalkAppointmentGUI\EDIT_MODE, ilEmployeeTalkAppointmentGUI\EDIT_MODE_APPOINTMENT, ilEmployeeTalkAppointmentGUI\EDIT_MODE_SERIES, ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().

Referenced by editObject(), and updateObject().

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

◆ checkAccessOrFail()

ilObjEmployeeTalkGUI::checkAccessOrFail ( )
private

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

86 : void
87 {
88 if (!$this->talkAccess->canRead($this->object->getRefId())) {
89 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
90 $this->ctrl->redirectByClass(ilDashboardGUI::class, "");
91 }
92 }

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

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 218 of file class.ilObjEmployeeTalkGUI.php.

218 : void
219 {
220 if (!$this->talkAccess->canDelete($this->ref_id)) {
221 ilSession::clear("saved_post");
222 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
223 $this->redirectToParentGUI();
224
225 return;
226 }
227
228 $ref_ids = [];
229 if ($this->post_wrapper->has("interruptive_items")) {
230 $ref_ids = $this->post_wrapper->retrieve(
231 "interruptive_items",
232 $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
233 );
234 }
235
236 if ($ref_ids === []) {
237 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_checkbox'), true);
238 $this->redirectToParentGUI();
239 }
240
241 $ru = new ilRepositoryTrashGUI($this);
242 $talks = [];
243
244 foreach ($ref_ids as $refId) {
245 $talks[] = new ilObjEmployeeTalk(intval($refId), true);
246 }
247
248 $this->sendNotification(...$talks);
249
250 $ru->deleteObjects($this->requested_ref_id, $ref_ids);
251 $trashEnabled = boolval($this->settings->get('enable_trash'));
252
253 if ($trashEnabled) {
255 }
256
257 ilSession::clear("saved_post");
258
259 $this->redirectToParentGUI();
260 }
sendNotification(ilObjEmployeeTalk ... $talks)
static removeObjectsFromSystem(array $a_ref_ids, bool $a_from_recovery_folder=false)
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() ...
Repository GUI Utilities.
static clear(string $a_var)

References $refId, ilSession\clear(), ILIAS\Repository\lng(), redirectToParentGUI(), ILIAS\Repository\refinery(), ilRepUtil\removeObjectsFromSystem(), sendNotification(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ editObject()

ilObjEmployeeTalkGUI::editObject ( )

Reimplemented from ilObjectGUI.

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

166 : void
167 {
168 $this->tabs_gui->activateTab('settings');
169
170 $form = $this->initEditForm();
171 $values = $this->getEditFormValues();
172 if ($values) {
173 $form->setValuesByArray($values);
174 }
175
177 $this->tpl->setContent($form->getHTML());
178 }
setValuesByArray(array $a_values, bool $a_restrict_to_value_keys=false)

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

+ Here is the call graph for this function:

◆ executeCommand()

ilObjEmployeeTalkGUI::executeCommand ( )

Reimplemented from ilObjectGUI.

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

107 : void
108 {
109 $this->checkAccessOrFail();
110 $this->isReadonly = !$this->talkAccess->canEdit($this->object->getRefId());
111
112 // determine next class in the call structure
113 $next_class = $this->ctrl->getNextClass($this);
114
115 switch ($next_class) {
116 case 'ilpermissiongui':
117 parent::prepareOutput();
118 $this->tabs_gui->activateTab('perm_settings');
119 $ilPermissionGUI = new ilPermissionGUI($this);
120 $this->ctrl->forwardCommand($ilPermissionGUI);
121 break;
122 case 'ilinfoscreengui':
123 parent::prepareOutput();
124 $this->tabs_gui->activateTab('info_short');
125 $ilInfoScreenGUI = new ilInfoScreenGUI($this);
126 $this->ctrl->forwardCommand($ilInfoScreenGUI);
127 break;
128 case strtolower(ilRepositorySearchGUI::class):
129 $repo = new ilRepositorySearchGUI();
130 //TODO: Add user filter
132 //$repo->addUserAccessFilterCallable(function () {
133 // $orgUnitUser = ilOrgUnitUser::getInstanceById($this->container->user()->getId());
134 // $orgUnitUser->addPositions() ;
135 //});
136 $this->ctrl->forwardCommand($repo);
137 break;
138 case strtolower(ilEmployeeTalkAppointmentGUI::class):
139 $appointmentGUI = new ilEmployeeTalkAppointmentGUI(
140 $this->tpl,
141 $this->lng,
142 $this->ctrl,
143 $this->http,
144 $this->refinery,
145 $this->tabs_gui,
146 $this->notif_handler,
147 $this->tree,
148 $this->object
149 );
150 $this->ctrl->forwardCommand($appointmentGUI);
151 break;
152 case strtolower(ilPropertyFormGUI::class):
153 /*
154 * Only used for async loading of the repository tree in custom md
155 * internal links (see #43636). This is necessary since EmployeeTalks don't
156 * use ilObjectMetaDataGUI.
157 */
158 $form = $this->getMetadataForm()->getFormGUI();
159 $this->ctrl->forwardCommand($form);
160 break;
161 default:
162 parent::executeCommand();
163 }
164 }
Class ilEmployeeTalkAppointmentGUI.
Class ilInfoScreenGUI.
static http()
Fetches the global http state from ILIAS.

References $form, checkAccessOrFail(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilUserAutoComplete\PRIVACY_MODE_IGNORE_USER_SETTING, and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjEmployeeTalkGUI::getAdminTabs ( )
Parameters
ilTabsGUI$tabs_gui

Reimplemented from ilObjectGUI.

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

524 : void
525 {
526 $this->getTabs();
527
528 if ($this->checkPermissionBool("edit_permission")) {
529 $this->tabs_gui->addTab(
530 'perm_settings',
531 $this->lng->txt('perm_settings'),
532 $this->ctrl->getLinkTargetByClass(
533 [
534 get_class($this),
535 'ilpermissiongui'
536 ],
537 'perm'
538 )
539 );
540 }
541 }
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 502 of file class.ilObjEmployeeTalkGUI.php.

502 : void
503 {
504 $this->tabs_gui->addTab(
505 'view_content',
506 $this->lng->txt("content"),
507 $this->ctrl->getLinkTarget($this, ControlFlowCommand::INDEX)
508 );
509 $this->tabs_gui->addTab(
510 "info_short",
511 "Info",
512 $this->ctrl->getLinkTargetByClass(strtolower(ilInfoScreenGUI::class), "showSummary")
513 );
514 $this->tabs_gui->addTab(
515 'settings',
516 $this->lng->txt("settings"),
517 $this->ctrl->getLinkTarget($this, ControlFlowCommand::UPDATE)
518 );
519 }

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:

◆ redirectToParentGUI()

ilObjEmployeeTalkGUI::redirectToParentGUI ( )

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

99 : void
100 {
101 if (isset($this->link_to_parent)) {
102 $this->ctrl->redirectToURL($this->link_to_parent);
103 }
104 $this->ctrl->redirectByClass(strtolower(ilEmployeeTalkMyStaffListGUI::class));
105 }

References ILIAS\Repository\ctrl().

Referenced by confirmedDeleteObject().

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

◆ sendNotification()

ilObjEmployeeTalkGUI::sendNotification ( ilObjEmployeeTalk ...  $talks)
private

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

262 : void
263 {
264 $this->notif_handler->send(NotificationType::CANCELLATION, ...$talks);
265 }

References ILIAS\EmployeeTalk\Notification\CANCELLATION.

Referenced by confirmedDeleteObject().

+ Here is the caller graph for this function:

◆ sendUpdateNotification()

ilObjEmployeeTalkGUI::sendUpdateNotification ( ilObjEmployeeTalk ...  $talks)
private

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

267 : void
268 {
269 $this->notif_handler->send(NotificationType::UPDATE, ...$talks);
270 }

◆ setLinkToParentGUI()

ilObjEmployeeTalkGUI::setLinkToParentGUI ( string  $link)

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

94 : void
95 {
96 $this->link_to_parent = $link;
97 }

◆ updateObject()

ilObjEmployeeTalkGUI::updateObject ( )

updates object entry in object_data

Reimplemented from ilObjectGUI.

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

195 : void
196 {
197 $form = $this->initEditForm();
199 if ($form->checkInput() &&
200 $this->validateCustom($form) &&
201 !$this->isReadonly) {
202 $this->object->setTitle($form->getInput("title"));
203 $this->object->setDescription($form->getInput("desc"));
204 $this->updateCustom($form);
205 $this->object->update();
206
207 $this->afterUpdate();
208 return;
209 }
210
211 // display form again to correct errors
212 $this->tabs_gui->activateTab("settings");
215 $this->tpl->setContent($form->getHtml());
216 }
addExternalEditFormCustom(ilPropertyFormGUI $form)
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, addChangeDateButtonsToToolbar(), 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 180 of file class.ilObjEmployeeTalkGUI.php.

180 : bool
181 {
182 $refId = $this->object->getRefId();
183 $settings = $this->repository->readEmployeeTalkSerieSettings($this->object->getId());
184 $oldLockSettings = $settings->isLockedEditing();
185 $lockEdititngForOthers = boolval(
186 intval($form->getInput('etal_settings_locked_for_others'))
187 );
188 if ($oldLockSettings === $lockEdititngForOthers) {
189 return true;
190 }
191
192 return $this->talkAccess->canEditTalkLockStatus($refId);
193 }
ilSetting $settings

References $form, $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 474 of file class.ilObjEmployeeTalkGUI.php.

474 : void
475 {
476 $this->tabs_gui->activateTab('view_content');
477 $form = $this->getMetadataForm();
478 $this->tpl->setContent($form->render());
479 }

References $form.

Field Documentation

◆ $form

ilPropertyFormGUI ilObjEmployeeTalkGUI::$form
protected

◆ $isReadonly

bool ilObjEmployeeTalkGUI::$isReadonly
protected

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

◆ $link_to_parent

string ilObjEmployeeTalkGUI::$link_to_parent
private

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

◆ $md_handler

MetadataHandlerInterface ilObjEmployeeTalkGUI::$md_handler
protected

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

◆ $notif_handler

NotificationHandlerInterface ilObjEmployeeTalkGUI::$notif_handler
protected

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

◆ $refinery

Refinery ilObjEmployeeTalkGUI::$refinery
protected

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

◆ $repository

IliasDBEmployeeTalkSeriesRepository ilObjEmployeeTalkGUI::$repository
protected

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

◆ $talkAccess

ilObjEmployeeTalkAccess ilObjEmployeeTalkGUI::$talkAccess
protected

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

◆ $ui_factory

UIFactory ilObjEmployeeTalkGUI::$ui_factory
protected

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


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