ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 = $this->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)
static http()
Fetches the global http state from ILIAS.
__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\FileDelivery\http(), 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 340 of file class.ilObjEmployeeTalkGUI.php.

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

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

217 : void
218 {
219 if (!$this->talkAccess->canDelete($this->ref_id)) {
220 ilSession::clear("saved_post");
221 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
222 $this->redirectToParentGUI();
223
224 return;
225 }
226
227 if ($this->post_wrapper->has("interruptive_items")) {
228 $ref_id = $this->post_wrapper->retrieve(
229 "interruptive_items",
230 $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
231 );
232 $saved_post = array_unique(array_merge(ilSession::get('saved_post') ?? [], $ref_id));
233 ilSession::set('saved_post', $saved_post);
234 }
235
236 $ru = new ilRepositoryTrashGUI($this);
237 $ref_ids = ilSession::get("saved_post");
238 $talks = [];
239
240 foreach ($ref_ids as $refId) {
241 $talks[] = new ilObjEmployeeTalk(intval($refId), true);
242 }
243
244 $this->sendNotification(...$talks);
245
246 $ru->deleteObjects($this->requested_ref_id, $ref_ids);
247 $trashEnabled = boolval($this->settings->get('enable_trash'));
248
249 if ($trashEnabled) {
251 }
252
253 ilSession::clear("saved_post");
254
255 $this->redirectToParentGUI();
256 }
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 get(string $a_var)
static clear(string $a_var)
static set(string $a_var, $a_val)
Set a value.

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

+ Here is the call graph for this function:

◆ editObject()

ilObjEmployeeTalkGUI::editObject ( )

Reimplemented from ilObjectGUI.

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

165 : void
166 {
167 $this->tabs_gui->activateTab('settings');
168
169 $form = $this->initEditForm();
170 $values = $this->getEditFormValues();
171 if ($values) {
172 $form->setValuesByArray($values);
173 }
174
176 $this->tpl->setContent($form->getHTML());
177 }
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->object
148 );
149 $this->ctrl->forwardCommand($appointmentGUI);
150 break;
151 case strtolower(ilPropertyFormGUI::class):
152 /*
153 * Only used for async loading of the repository tree in custom md
154 * internal links (see #43636). This is necessary since EmployeeTalks don't
155 * use ilObjectMetaDataGUI.
156 */
157 $form = $this->getMetadataForm()->getFormGUI();
158 $this->ctrl->forwardCommand($form);
159 break;
160 default:
161 parent::executeCommand();
162 }
163 }
Class ilEmployeeTalkAppointmentGUI.
Class ilInfoScreenGUI.

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

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

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

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

258 : void
259 {
260 $this->notif_handler->send(NotificationType::CANCELLATION, ...$talks);
261 }

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

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

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

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

179 : bool
180 {
181 $refId = $this->object->getRefId();
182 $settings = $this->repository->readEmployeeTalkSerieSettings($this->object->getId());
183 $oldLockSettings = $settings->isLockedEditing();
184 $lockEdititngForOthers = boolval(
185 intval($form->getInput('etal_settings_locked_for_others'))
186 );
187 if ($oldLockSettings === $lockEdititngForOthers) {
188 return true;
189 }
190
191 return $this->talkAccess->canEditTalkLockStatus($refId);
192 }
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 470 of file class.ilObjEmployeeTalkGUI.php.

470 : void
471 {
472 $this->tabs_gui->activateTab('view_content');
473 $form = $this->getMetadataForm();
474 $this->tpl->setContent($form->render());
475 }

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: