ILIAS  release_8 Revision v8.24
ilObjStudyProgrammeGUI Class Reference

Class ilObjStudyProgrammeGUI class @ilCtrl_Calls ilObjStudyProgrammeGUI: ilPermissionGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilInfoScreenGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilCommonActionDispatcherGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilColumnGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjStudyProgrammeSettingsGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjStudyProgrammeTreeGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjStudyProgrammeMembersGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjStudyProgrammeAutoMembershipsGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjectCopyGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjectTranslationGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilCertificateGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjStudyProgrammeAutoCategoriesGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilPropertyFormGUI. More...

+ Inheritance diagram for ilObjStudyProgrammeGUI:
+ Collaboration diagram for ilObjStudyProgrammeGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 isActiveAdministrationPanel ()
 
 getAsyncCreationForm ()
 Method for implementing async windows-output Should be moved into core to enable async requests on creation-form. More...
 
 getSubTabs (string $parent_tab)
 Adds subtabs based on the parent tab. More...
 
 setContentSubTabs ()
 Disable default content subtabs. More...
 
 addToNavigationHistory ()
 
- Public Member Functions inherited from ilContainerGUI
 executeCommand ()
 
 forwardToPageObject ()
 
 addPageTabs ()
 
 getContainerPageHTML ()
 
 prepareOutput (bool $show_subobjects=true)
 
 getContentGUI ()
 
 renderObject ()
 
 renderBlockAsynchObject ()
 render the object More...
 
 setContentSubTabs ()
 
 showAdministrationPanel ()
 
 showPermanentLink ()
 
 editPageFrameObject ()
 
 cancelPageContentObject ()
 
 showLinkListObject ()
 
 clearAdminCommandsDetermination ()
 
 addHeaderRow (ilTemplate $a_tpl, string $a_type, bool $a_show_image=true)
 
 addMessageRow (ilTemplate $a_tpl, string $a_message, string $a_type)
 
 setPageEditorTabs ()
 
 addStandardContainerSubTabs (bool $a_include_view=true)
 Add standard container subtabs for view, manage, oderdering and text/media editor link. More...
 
 enableAdministrationPanelObject ()
 
 disableAdministrationPanelObject ()
 
 editOrderObject ()
 
 isActiveOrdering ()
 
 isActiveItemOrdering ()
 
 enableMultiDownloadObject ()
 
 isMultiDownloadEnabled ()
 
 cutObject ()
 cut object(s) out from a container and write the information to clipboard @access public More...
 
 copyObject ()
 Copy object(s) out from a container and write the information to clipboard It is not possible to copy multiple objects at once. More...
 
 downloadObject ()
 
 getBucketTitle ()
 
 linkObject ()
 create an new reference of an object in tree it's like a hard link of unix More...
 
 clearObject ()
 clear clipboard and go back to last object More...
 
 performPasteIntoMultipleObjectsObject ()
 
 initAndDisplayLinkIntoMultipleObjectsObject ()
 
 showPasteTreeObject ()
 
 cancelMoveLinkObject ()
 Cancel move|link empty clipboard and return to parent. More...
 
 keepObjectsInClipboardObject ()
 
 initAndDisplayCopyIntoMultipleObjectsObject ()
 
 initAndDisplayMoveIntoObjectObject ()
 
 pasteObject ()
 paste object from clipboard to current place Depending on the chosen command the object(s) are linked, copied or moved More...
 
 clipboardObject ()
 
 isActiveAdministrationPanel ()
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 allowBlocksMoving ()
 Standard is to allow blocks moving. More...
 
 allowBlocksConfigure ()
 Standard is to allow blocks configuration. More...
 
 cloneAllObject ()
 Clone all object Overwritten method for copying container objects. More...
 
 saveSortingObject ()
 
 cloneNodes (int $srcRef, int $dstRef, array &$mapping, string $newName=null)
 Recursively clones all nodes of the RBAC tree. More...
 
 modifyItemGUI (ilObjectListGUI $a_item_list_gui, array $a_item_data)
 
 editStylePropertiesObject ()
 
 getAsynchItemListObject ()
 
 redrawListItemObject ()
 Redraw a list item (ajax) More...
 
 trashObject ()
 Show trash content of object. More...
 
 trashApplyFilterObject ()
 
 trashResetFilterObject ()
 
 removeFromSystemObject ()
 
 undeleteObject ()
 Get objects back from trash. More...
 
 confirmRemoveFromSystemObject ()
 
 setSideColumnReturn ()
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 competencesObject ()
 
- 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)
 
- Public Member Functions inherited from ilDesktopItemHandling
 addToDeskObject ()
 Add desktop item @access public. More...
 
 removeFromDeskObject ()
 Remove from desktop @access public. More...
 

Static Public Member Functions

static _goto (string $target)
 
- Static Public Member Functions inherited from ilContainerGUI
static _buildPath (int $a_ref_id, int $a_course_ref_id)
 build path More...
 
- 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

ilObject $object
 
- Data Fields inherited from ilContainerGUI
int $bl_cnt = 1
 
bool $multi_download_enabled = false
 
- 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 Member Functions

 create ()
 
 save ()
 
 cancel ()
 
 afterSave (ilObject $new_object)
 Sets the sorting of the container correctly. More...
 
 getPermissionsHelper ()
 
 view ()
 
 initAdvancedSettingsForm ()
 
 editAdvancedSettings ()
 
 updateAdvancedSettings ()
 
 initCreationForms ($new_type)
 Overwritten from ilObjectGUI since copy and import are not implemented. More...
 
 checkAccess (string $permission)
 
 denyAccessIfNot (string $permission)
 
 denyAccessIfNotAnyOf (array $permissions)
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 getLinkTarget (string $cmd)
 Generates a link based on a cmd. More...
 
 fillInfoScreen ($info_screen)
 Adding meta-data to the info-screen. More...
 
 edit ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 deliverCertificateObject ()
 
 initTreeJS ()
 
 supportsPageEditor ()
 
- Protected Member Functions inherited from ilContainerGUI
 getEditFormValues ()
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 setTitleAndDescription ()
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 supportsPageEditor ()
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 showContainerPageTabs ()
 
 showPasswordInstructionObject (bool $a_init=true)
 
 initFormPasswordInstruction ()
 Init password form. More...
 
 savePasswordObject ()
 
 initEditForm ()
 
 initSortingForm (ilPropertyFormGUI $form, array $a_sorting_settings)
 Append sorting settings to property form. More...
 
 initListPresentationForm (ilPropertyFormGUI $form)
 Add list presentation settings to form. More...
 
 saveListPresentation (ilPropertyFormGUI $form)
 
 initSortingDirectionForm (ilContainerSortingSettings $sorting_settings, ilRadioOption $element, string $a_prefix)
 Add sorting direction. More...
 
 initManualSortingOptionForm (ilContainerSortingSettings $settings, ilRadioOption $element, string $a_prefix, array $a_sorting_settings)
 Add manual sorting options. More...
 
 saveSortingSettings (ilPropertyFormGUI $form)
 
 trashHandleFilter (bool $action_apply, bool $action_reset)
 
 restoreToNewLocationObject (ilPropertyFormGUI $form=null)
 
 getTreeSelectorGUI (string $cmd)
 
 initFilter ()
 
 showContainerFilter ()
 
- 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...
 

Protected Attributes

ilLocatorGUI $ilLocator
 
ilComponentLogger $ilLog
 
ilHelpGUI $help
 
ilObjStudyProgrammeSettingsGUI $settings_gui
 
ilObjStudyProgrammeMembersGUI $members_gui
 
ilObjStudyProgrammeAutoMembershipsGUI $memberships_gui
 
ilObjStudyProgrammeTreeGUI $tree_gui
 
ilStudyProgrammeTypeGUI $type_gui
 
ilStudyProgrammeTypeRepository $type_repository
 
ilObjStudyProgrammeAutoCategoriesGUI $autocategories_gui
 
ilPRGPermissionsHelper $permissions = null
 
Refinery Factory $refinery
 
RequestWrapper $request_wrapper
 
ViewManager $container_view_manager
 
- Protected Attributes inherited from ilContainerGUI
ILIAS Style Content GUIService $content_style_gui
 
ilRbacSystem $rbacsystem
 
ilRbacReview $rbacreview
 
ilTabsGUI $tabs
 
ilErrorHandling $error
 
ilObjectDefinition $obj_definition
 
ilRbacAdmin $rbacadmin
 
ilPropertyFormGUI $form
 
ilLogger $log
 
ilObjectDataCache $obj_data_cache
 
Services $global_screen
 
ilAppEventHandler $app_event_handler
 
UIServices $ui
 
ilContainerFilterService $container_filter_service
 
ilContainerUserFilter $container_user_filter = null
 
Standard $ui_filter = null
 
bool $edit_order = false
 
bool $adminCommands = false
 
string $requested_redirectSource = ""
 
int $current_position = 0
 
ClipboardManager $clipboard
 
StandardGUIRequest $std_request
 
ViewManager $view_manager
 
ilComponentFactory $component_factory
 
ILIAS Style Content DomainService $content_style_domain
 
- 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 = ""
 

Private Attributes

const TAB_VIEW_CONTENT = "view_content"
 
const SUBTAB_VIEW_TREE = "view_tree"
 
const TAB_INFO = "info_short"
 
const TAB_SETTINGS = "settings"
 
const TAB_MEMBERS = "members"
 
const TAB_METADATA = "edit_advanced_settings"
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjStudyProgrammeGUI::__construct ( )

Definition at line 71 of file class.ilObjStudyProgrammeGUI.php.

72 {
73 global $DIC;
74 $this->tpl = $DIC['tpl'];
75 $this->ctrl = $DIC['ilCtrl'];
76 $this->ilLocator = $DIC['ilLocator'];
77 $this->tree = $DIC['tree'];
78 $this->toolbar = $DIC['ilToolbar'];
79 $this->ilLog = $DIC['ilLog'];
80 $this->ilias = $DIC['ilias'];
81 $this->type = "prg";
82 $this->help = $DIC['ilHelp'];
83 $this->user = $DIC['ilUser'];
84 $this->refinery = $DIC->refinery();
85 $this->request_wrapper = $DIC->http()->wrapper()->query();
86
87 $ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
88 parent::__construct(array(), $ref_id, true, false);
89
90 $lng = $DIC['lng'];
92
93 $this->settings_gui = ilStudyProgrammeDIC::dic()['ilObjStudyProgrammeSettingsGUI'];
94 $this->members_gui = ilStudyProgrammeDIC::dic()['ilObjStudyProgrammeMembersGUI'];
95 $this->memberships_gui = ilStudyProgrammeDIC::dic()['ilObjStudyProgrammeAutoMembershipsGUI'];
96 $this->tree_gui = ilStudyProgrammeDIC::dic()['ilObjStudyProgrammeTreeGUI'];
97 $this->type_gui = ilStudyProgrammeDIC::dic()['ilStudyProgrammeTypeGUI'];
98 $this->autocategories_gui = ilStudyProgrammeDIC::dic()['ilObjStudyProgrammeAutoCategoriesGUI'];
99 $this->type_repository = ilStudyProgrammeDIC::dic()['model.Type.ilStudyProgrammeTypeRepository'];
100
101 $this->container_view_manager = $DIC
102 ->container()
103 ->internal()
104 ->domain()
105 ->content()
106 ->view();
107 }
loadLanguageModule(string $a_module)
Load language module.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: class.ilLog.php:31
ilLanguage $lng
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
header include for all ilias files.

References $DIC, ilObjectGUI\$lng, ilObjectGUI\$ref_id, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ilStudyProgrammeDIC\dic(), ILIAS\Repository\help(), ilLanguage\loadLanguageModule(), ILIAS\Repository\refinery(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjStudyProgrammeGUI::_goto ( string  $target)
static

Definition at line 709 of file class.ilObjStudyProgrammeGUI.php.

709 : void
710 {
711 global $DIC;
712 $ilCtrl = $DIC['ilCtrl'];
713 $id = explode("_", $target);
714 $ilCtrl->setTargetScript('ilias.php');
715 $ilCtrl->setParameterByClass("ilobjstudyprogrammegui", "ref_id", $id[0]);
716 $ilCtrl->redirectByClass(array("ilRepositoryGUI", "ilobjstudyprogrammegui"), "view");
717 }

References $DIC, and ilObjectGUI\$id.

Referenced by ilObjStudyProgrammeReferenceGUI\_goto().

+ Here is the caller graph for this function:

◆ addToNavigationHistory()

ilObjStudyProgrammeGUI::addToNavigationHistory ( )

Definition at line 719 of file class.ilObjStudyProgrammeGUI.php.

719 : void
720 {
721 global $DIC;
722 $ilNavigationHistory = $DIC['ilNavigationHistory'];
723
725 $ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
726 $link = ilLink::_getLink($ref_id, "prg");
727 $ilNavigationHistory->addItem($ref_id, $link, 'prg');
728 }
729 }

References $DIC, ilObjectGUI\$ref_id, ilLink\_getLink(), checkAccess(), ilObjectGUI\getCreationMode(), ILIAS\Repository\refinery(), and ilPRGPermissionsHelper\ROLEPERM_READ.

Referenced by executeCommand().

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

◆ afterSave()

ilObjStudyProgrammeGUI::afterSave ( ilObject  $new_object)
protected

Sets the sorting of the container correctly.

If it's an async call, a json string is returned.

Reimplemented from ilObjectGUI.

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

347 : void
348 {
349 // set default sort to manual
350 $settings = new ilContainerSortingSettings($new_object->getId());
355 $settings->save();
356
358 "cmd" => "cancel",
359 "success" => true,
360 "message" => $this->lng->txt("object_added")
361 ]);
362
363 ilAsyncOutputHandler::handleAsyncOutput("", $async_response, false);
364
365 $this->tpl->setOnScreenMessage("success", $this->lng->txt("object_added"), true);
366
367 $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
368 $this->ctrl->redirectToURL($this->getReturnLocation(
369 "save",
370 $this->ctrl->getLinkTarget($this, "edit", "", false, false)
371 ));
372 }
static handleAsyncOutput(string $normal_content, string $async_content=null, bool $apply_to_tpl=true)
Handles async output.
static encodeAsyncResponse(array $data=array())
Encode data as json for async output.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const SORT_NEW_ITEMS_ORDER_CREATION
const SORT_NEW_ITEMS_POSITION_BOTTOM
const SORT_DIRECTION_ASC
ilSetting $settings
getReturnLocation(string $cmd, string $default_location="")
Get return location for command (command is method name without "Object", e.g.

References ilObjectGUI\$settings, ILIAS\Repository\ctrl(), ilAsyncOutputHandler\encodeAsyncResponse(), ilObject\getId(), ilObject\getRefId(), ilObjectGUI\getReturnLocation(), ilAsyncOutputHandler\handleAsyncOutput(), ILIAS\Repository\lng(), ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_NEW_ITEMS_ORDER_CREATION, and ilContainer\SORT_NEW_ITEMS_POSITION_BOTTOM.

+ Here is the call graph for this function:

◆ cancel()

ilObjStudyProgrammeGUI::cancel ( )
protected

Definition at line 335 of file class.ilObjStudyProgrammeGUI.php.

335 : void
336 {
337 $async_response = ilAsyncOutputHandler::encodeAsyncResponse(array("cmd" => "cancel", "success" => false));
338
339 ilAsyncOutputHandler::handleAsyncOutput("", $async_response, false);
340
341 parent::cancelCreation();
342 }

References ilAsyncOutputHandler\encodeAsyncResponse(), and ilAsyncOutputHandler\handleAsyncOutput().

+ Here is the call graph for this function:

◆ checkAccess()

ilObjStudyProgrammeGUI::checkAccess ( string  $permission)
protected

Definition at line 481 of file class.ilObjStudyProgrammeGUI.php.

481 : bool
482 {
483 return $this->getPermissionsHelper()->may($permission);
484 }

References getPermissionsHelper().

Referenced by addToNavigationHistory(), editAdvancedSettings(), getSubTabs(), getTabs(), and updateAdvancedSettings().

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

◆ create()

ilObjStudyProgrammeGUI::create ( )
protected

Definition at line 314 of file class.ilObjStudyProgrammeGUI.php.

314 : void
315 {
316 parent::createObject();
317 }

◆ deliverCertificateObject()

ilObjStudyProgrammeGUI::deliverCertificateObject ( )
protected

Definition at line 751 of file class.ilObjStudyProgrammeGUI.php.

751 : void
752 {
753 global $DIC;
754
755 $this->lng->loadLanguageModule('cert');
756
757 $user_id = (int) $this->user->getId();
758 $obj_id = $this->object->getId();
759
760 $validator = new ilCertificateDownloadValidator();
761 if (false === $validator->isCertificateDownloadable($user_id, $obj_id)) {
762 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
763 $this->ctrl->redirect($this);
764 }
765 $repository = new ilUserCertificateRepository();
766 $cert_logger = $DIC->logger()->cert();
767 $pdf_action = new ilCertificatePdfAction(
768 $cert_logger,
769 new ilPdfGenerator($repository, $cert_logger),
771 $this->lng->txt('error_creating_certificate_pdf')
772 );
773 $pdf_action->downloadPdf($user_id, $obj_id);
774 }
Validates if an active certificate is stored in the database and can be downloaded by the user.
Just a wrapper class to create Unit Test for other classes.
Class ilPdfGeneratorConstantsTest.

References $DIC, ilObjectGUI\$obj_id, ILIAS\Repository\ctrl(), ILIAS\Repository\int(), ILIAS\Repository\lng(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ denyAccessIfNot()

ilObjStudyProgrammeGUI::denyAccessIfNot ( string  $permission)
protected

Definition at line 486 of file class.ilObjStudyProgrammeGUI.php.

486 : void
487 {
488 $this->denyAccessIfNotAnyOf([$permission]);
489 }

References denyAccessIfNotAnyOf().

Referenced by edit(), executeCommand(), and view().

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

◆ denyAccessIfNotAnyOf()

ilObjStudyProgrammeGUI::denyAccessIfNotAnyOf ( array  $permissions)
protected

Definition at line 491 of file class.ilObjStudyProgrammeGUI.php.

491 : void
492 {
493 if (!$this->getPermissionsHelper()->mayAnyOf($permissions)) {
495 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("msg_no_perm_write"));
496 $this->ctrl->redirectByClass('ilinfoscreengui', '');
497 } else {
498 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->WARNING);
499 }
500 }
501 }
ilPRGPermissionsHelper $permissions

References $permissions, ILIAS\Repository\ctrl(), getPermissionsHelper(), ILIAS\Repository\lng(), and ilPRGPermissionsHelper\ROLEPERM_VIEW.

Referenced by denyAccessIfNot(), and executeCommand().

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

◆ edit()

ilObjStudyProgrammeGUI::edit ( )
protected

Definition at line 702 of file class.ilObjStudyProgrammeGUI.php.

702 : void
703 {
705 $link = $this->ctrl->getLinkTargetByClass(ilObjStudyProgrammeSettingsGUI::class, 'view');
706 $this->ctrl->redirectToURL($link);
707 }

References ILIAS\Repository\ctrl(), denyAccessIfNot(), and ilPRGPermissionsHelper\ROLEPERM_WRITE.

+ Here is the call graph for this function:

◆ editAdvancedSettings()

ilObjStudyProgrammeGUI::editAdvancedSettings ( )
protected

Definition at line 408 of file class.ilObjStudyProgrammeGUI.php.

408 : void
409 {
411 $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
412 $this->ctrl->redirect($this);
413 }
415 $gui = new ilAdvancedMDRecordGUI(
417 'prg',
418 $this->object->getId(),
419 'prg_type',
420 $this->object->getSettings()->getTypeSettings()->getTypeId()
421 );
422 $gui->setPropertyForm($form);
423 $gui->parse();
424 $this->tpl->setContent($form->getHTML());
425 }
ilPropertyFormGUI $form

References ilContainerGUI\$form, checkAccess(), ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), initAdvancedSettingsForm(), ILIAS\Repository\lng(), ilAdvancedMDRecordGUI\MODE_EDITOR, ILIAS\Repository\object(), and ilPRGPermissionsHelper\ROLEPERM_WRITE.

Referenced by executeCommand().

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

◆ executeCommand()

ilObjStudyProgrammeGUI::executeCommand ( )

Reimplemented from ilContainerGUI.

Definition at line 109 of file class.ilObjStudyProgrammeGUI.php.

109 : void
110 {
111 $cmd = $this->ctrl->getCmd();
112 $next_class = $this->ctrl->getNextClass($this);
113
114 if ($cmd == "" || $cmd === null) {
115 $cmd = "view";
116 }
117 $this->addToNavigationHistory();
118
119 parent::prepareOutput();
120
121 $this->addHeaderAction();
122
123 switch ($next_class) {
124 case "ilinfoscreengui":
125 $this->tabs_gui->activateTab(self::TAB_INFO);
126 $this->denyAccessIfNotAnyOf([
129 ]);
130 $info = new ilInfoScreenGUI($this);
131 $this->fillInfoScreen($info);
132 $this->ctrl->forwardCommand($info);
133
134 // I guess this is how it was supposed to work,
135 // but it doesn't... it won't respect our sub-id and sub-type when creating the objects!
136 // So we reimplemented the stuff in the method parseInfoScreen()
137 // $info = new ilInfoScreenGUI($this);
138 // $amd_gui = new ilAdvancedMDRecordGUI(
139 // ilAdvancedMDRecordGUI::MODE_INFO,
140 // 'orgu',
141 // $this->object->getId(),
142 // 'orgu_type',
143 // $this->object->getOrgUnitTypeId()
144 // );
145 // $amd_gui->setInfoObject($info);
146 // $amd_gui->setSelectedOnly(true);
147 // $amd_gui->parse();
148 // $this->ctrl->forwardCommand($info);
149 break;
150 case 'ilpermissiongui':
151 $this->tabs_gui->activateTab('perm_settings');
152 $ilPermissionGUI = new ilPermissionGUI($this);
153 $this->ctrl->forwardCommand($ilPermissionGUI);
154 break;
155 case "ilcommonactiondispatchergui":
157 $this->ctrl->forwardCommand($gui);
158 break;
159 case "ilobjstudyprogrammesettingsgui":
161 $this->getSubTabs('settings');
162 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
163 $this->tabs_gui->activateSubTab('settings');
164 $this->settings_gui->setRefId($this->ref_id);
165 $this->ctrl->forwardCommand($this->settings_gui);
166 break;
167 case "ilobjstudyprogrammeautocategoriesgui":
169 $this->getSubTabs('settings');
170 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
171 $this->tabs_gui->activateSubTab('auto_content');
172 $this->autocategories_gui->setRefId($this->ref_id);
173 $this->initTreeJS();
174 $this->ctrl->forwardCommand($this->autocategories_gui);
175 break;
176 case "ilobjstudyprogrammemembersgui":
178 $this->getSubTabs('members');
179 $this->tabs_gui->activateTab(self::TAB_MEMBERS);
180 $this->tabs_gui->activateSubTab('edit_participants');
181 $this->members_gui->setParentGUI($this);
182 $this->members_gui->setRefId($this->ref_id);
183 $this->ctrl->forwardCommand($this->members_gui);
184 break;
185 case "ilobjstudyprogrammeautomembershipsgui":
187 $this->getSubTabs('members');
188 $this->tabs_gui->activateTab(self::TAB_MEMBERS);
189 $this->tabs_gui->activateSubTab('auto_memberships');
190 $this->memberships_gui->setParentGUI($this);
191 $this->memberships_gui->setRefId($this->ref_id);
192 $this->ctrl->forwardCommand($this->memberships_gui);
193 break;
194 case "ilobjstudyprogrammetreegui":
196 $this->getSubTabs($cmd);
197 $this->setContentSubTabs();
198 $this->tabs_gui->activateTab(self::TAB_VIEW_CONTENT);
199 $this->tabs_gui->activateSubTab(self::SUBTAB_VIEW_TREE);
200
201 // disable admin panel
202 $this->container_view_manager->setContentView();
203
204 $this->tree_gui->setRefId($this->id);
205 $this->ctrl->forwardCommand($this->tree_gui);
206 break;
207 case 'ilstudyprogrammetypegui':
208 $this->tabs_gui->activateTab('subtypes');
209 $this->type_gui->setParentGUI($this);
210 $this->ctrl->forwardCommand($this->type_gui);
211 break;
212 case 'ilobjectcopygui':
213 $gui = new ilobjectcopygui($this);
214 $this->ctrl->forwardCommand($gui);
215 break;
216 case 'ilobjecttranslationgui':
218 $this->getSubTabs('settings');
219 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
220 $this->tabs_gui->activateSubTab('settings_trans');
221 $transgui = new ilObjectTranslationGUI($this);
222 $this->ctrl->forwardCommand($transgui);
223 break;
224 case "ilcertificategui":
225 $this->getSubTabs('settings');
227 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
228 $this->tabs_gui->activateSubTab('certificate');
229 $guiFactory = new ilCertificateGUIFactory();
230 $output_gui = $guiFactory->create($this->object);
231 $this->ctrl->forwardCommand($output_gui);
232 break;
233 case strtolower(ilPropertyFormGUI::class):
234 /*
235 * Only used for async loading of the repository tree in custom md
236 * internal links (see #28060, #37974). This is necessary since StudyProgrammes don't
237 * use ilObjectMetaDataGUI.
238 */
240 $gui = new ilAdvancedMDRecordGUI(
242 'prg',
243 $this->object->getId(),
244 'prg_type',
245 $this->object->getSettings()->getTypeSettings()->getTypeId()
246 );
247 $gui->setPropertyForm($form);
248 $gui->parse();
249 $this->ctrl->forwardCommand($form);
250 break;
251 case false:
252 $this->getSubTabs($cmd);
253 switch ($cmd) {
254 case "cancelDelete":
255 $cmd = "view";
256 // no break
257 case "create":
258 case "save":
259 case "view":
260 case "cancel":
261 case "edit":
262 $this->$cmd();
263 break;
264 case "delete":
265 $this->tabs_gui->clearTargets();
266 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
267 parent::deleteObject();
268 break;
269 case 'confirmedDelete':
270 parent::confirmedDeleteObject();
271 break;
272 case 'editAdvancedSettings':
273 $this->tabs_gui->activateTab('edit_advanced_settings');
274 $this->editAdvancedSettings();
275 break;
276 case 'updateAdvancedSettings':
277 $this->tabs_gui->activateTab('edit_advanced_settings');
278 $this->updateAdvancedSettings();
279 break;
280 case "infoScreen":
281 $this->ctrl->redirectByClass("ilInfoScreenGUI", "showSummary");
282 break;
283 case 'getAsynchItemList':
284 parent::getAsynchItemListObject();
285 break;
286 case 'trash':
287 case 'undelete':
288 case 'confirmRemoveFromSystem':
289 case 'removeFromSystem':
290 case 'deliverCertificate':
291 case 'addToDesk':
292 case 'removeFromDesk':
293
294 case 'cut':
295 case 'paste':
296 case 'clear':
297 case 'render':
298 case 'performPasteIntoMultipleObjects':
299 case 'cancelMoveLink':
300 case 'keepObjectsInClipboard':
301
302 $cmd .= "Object";
303 $this->$cmd();
304 break;
305 default:
306 throw new ilException("ilObjStudyProgrammeGUI: Command not supported: $cmd");
307 }
308 break;
309 default:
310 throw new ilException("ilObjStudyProgrammeGUI: Can't forward to next class $next_class");
311 }
312 }
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilInfoScreenGUI.
fillInfoScreen($info_screen)
Adding meta-data to the info-screen.
setContentSubTabs()
Disable default content subtabs.
getSubTabs(string $parent_tab)
Adds subtabs based on the parent tab.
addHeaderAction()
Add header action menu.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.

References ilContainerGUI\$form, ilObjectGUI\addHeaderAction(), addToNavigationHistory(), ILIAS\Repository\ctrl(), denyAccessIfNot(), denyAccessIfNotAnyOf(), editAdvancedSettings(), fillInfoScreen(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), getSubTabs(), initAdvancedSettingsForm(), initTreeJS(), ILIAS\Repository\lng(), ilAdvancedMDRecordGUI\MODE_EDITOR, ILIAS\Repository\object(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilOrgUnitOperation\OP_VIEW_MEMBERS, ilPRGPermissionsHelper\ROLEPERM_READ, ilPRGPermissionsHelper\ROLEPERM_VIEW, ilPRGPermissionsHelper\ROLEPERM_WRITE, setContentSubTabs(), and updateAdvancedSettings().

+ Here is the call graph for this function:

◆ fillInfoScreen()

ilObjStudyProgrammeGUI::fillInfoScreen (   $info_screen)
protected

Adding meta-data to the info-screen.

Definition at line 682 of file class.ilObjStudyProgrammeGUI.php.

682 : void
683 {
684 if (!$this->object->getSettings()->getTypeSettings()->getTypeId() ||
685 !ilStudyProgrammeDIC::dic()['model.Type.ilStudyProgrammeTypeRepository']
686 ->getType($this->object->getSettings()->getTypeSettings()->getTypeId())
687 ) {
688 return;
689 }
690
691 $record_gui = new ilAdvancedMDRecordGUI(
693 'prg',
694 $this->object->getId(),
695 'prg_type',
696 $this->object->getSettings()->getTypeSettings()->getTypeId()
697 );
698 $record_gui->setInfoObject($info_screen);
699 $record_gui->parse();
700 }

References ilStudyProgrammeDIC\dic(), ilAdvancedMDRecordGUI\MODE_INFO, and ILIAS\Repository\object().

Referenced by executeCommand().

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

◆ getAsyncCreationForm()

ilObjStudyProgrammeGUI::getAsyncCreationForm ( )

Method for implementing async windows-output Should be moved into core to enable async requests on creation-form.

Definition at line 466 of file class.ilObjStudyProgrammeGUI.php.

467 {
468 $asyncForm = new ilAsyncPropertyFormGUI($this->request_wrapper);
469
470 $tmp_forms = $this->initCreationForms('prg');
471 $asyncForm->cloneForm($tmp_forms[self::CFORM_NEW]);
472 $asyncForm->setAsync(true);
473
474 return $asyncForm;
475 }
Class ilAsyncPropertyFormGUI.
initCreationForms($new_type)
Overwritten from ilObjectGUI since copy and import are not implemented.

References initCreationForms().

Referenced by save().

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

◆ getLinkTarget()

ilObjStudyProgrammeGUI::getLinkTarget ( string  $cmd)
protected

Generates a link based on a cmd.

Definition at line 642 of file class.ilObjStudyProgrammeGUI.php.

642 : string
643 {
644 if ($cmd === "info_short") {
645 return $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary");
646 }
647 if ($cmd === "settings") {
648 return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammesettingsgui", "view");
649 }
650 if ($cmd === "auto_content") {
651 return $this->ctrl->getLinkTargetByClass("ilObjStudyProgrammeAutoCategoriesGUI", "view");
652 }
653
654 if ($cmd === self::SUBTAB_VIEW_TREE) {
655 return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammetreegui", "view");
656 }
657 if ($cmd === "members") {
658 return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammemembersgui", "view");
659 }
660 if ($cmd === "memberships") {
661 return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammeautomembershipsgui", "view");
662 }
663 if ($cmd === "subtypes") {
664 return $this->ctrl->getLinkTargetByClass("ilstudyprogrammetypegui", "listTypes");
665 }
666 if ($cmd === "commonSettings") {
667 return $this->ctrl->getLinkTargetByClass(
668 [
669 "ilobjstudyprogrammesettingsgui",
670 "ilStudyProgrammeCommonSettingsGUI"
671 ],
672 "editSettings"
673 );
674 }
675
676 return $this->ctrl->getLinkTarget($this, $cmd);
677 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getPermissionsHelper()

ilObjStudyProgrammeGUI::getPermissionsHelper ( )
protected

Definition at line 374 of file class.ilObjStudyProgrammeGUI.php.

375 {
376 if (!$this->permissions) {
377 if (!$this->object || !$this->object->getRefId()) {
378 throw new LogicException('Cannot ask for permission when not in tree!');
379 }
380
381 $this->permissions = ilStudyProgrammeDIC::specificDicFor($this->object)['permissionhelper'];
382 }
383 return $this->permissions;
384 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static specificDicFor(ilObjStudyProgramme $prg)

References $permissions, ILIAS\Repository\object(), and ilStudyProgrammeDIC\specificDicFor().

Referenced by checkAccess(), denyAccessIfNotAnyOf(), and getSubTabs().

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

◆ getSubTabs()

ilObjStudyProgrammeGUI::getSubTabs ( string  $parent_tab)

Adds subtabs based on the parent tab.

Parameters
$parent_tab| string of the parent tab-id

Definition at line 551 of file class.ilObjStudyProgrammeGUI.php.

551 : void
552 {
553 switch ($parent_tab) {
556 case 'view':
558 $this->tabs_gui->addSubTab(
559 self::TAB_VIEW_CONTENT,
560 $this->lng->txt("view"),
561 $this->getLinkTarget("view")
562 );
563 }
564
566 $this->tabs_gui->addSubTab(
567 self::SUBTAB_VIEW_TREE,
568 $this->lng->txt("cntr_manage"),
569 $this->getLinkTarget(self::SUBTAB_VIEW_TREE)
570 );
571 }
572 break;
573 case 'settings':
574 $this->tabs_gui->addSubTab(
575 'settings',
576 $this->lng->txt('settings'),
577 $this->getLinkTarget('settings')
578 );
579
580 if ($this->object->isAutoContentApplicable()) {
581 $this->tabs_gui->addSubTab(
582 "auto_content",
583 $this->lng->txt("content_automation"),
584 $this->getLinkTarget("auto_content")
585 );
586 }
587
588 $this->tabs_gui->addSubTab(
589 "settings_trans",
590 $this->lng->txt("obj_multilinguality"),
591 $this->ctrl->getLinkTargetByClass("ilobjecttranslationgui", "")
592 );
593
594 $validator = new ilCertificateActiveValidator();
595 if (true === $validator->validate()) {
596 $this->tabs_gui->addSubTabTarget(
597 "certificate",
598 $this->ctrl->getLinkTargetByClass("ilcertificategui", "certificateeditor"),
599 "",
600 "ilcertificategui"
601 );
602 }
603
604 if ($this->permissions->isOrguAccessEnabledGlobally()) {
605 $this->tabs_gui->addSubTab(
606 'commonSettings',
607 $this->lng->txt("obj_features"),
608 $this->getLinkTarget("commonSettings")
609 );
610 }
611
612 break;
613
614 case 'members':
615 $this->tabs_gui->addSubTab(
616 'edit_participants',
617 $this->lng->txt('edit_participants'),
618 $this->getLinkTarget('members')
619 );
620
622 $this->tabs_gui->addSubTab(
623 'auto_memberships',
624 $this->lng->txt('auto_memberships'),
625 $this->getLinkTarget('memberships')
626 );
627 }
628 break;
629 }
630 }

References checkAccess(), ILIAS\Repository\ctrl(), getPermissionsHelper(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilPRGPermissionsHelper\ROLEPERM_READ, ilPRGPermissionsHelper\ROLEPERM_WRITE, SUBTAB_VIEW_TREE, and TAB_VIEW_CONTENT.

Referenced by executeCommand().

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

◆ getTabs()

ilObjStudyProgrammeGUI::getTabs ( )
protected

@abstract overwrite in derived GUI class of your object type

Reimplemented from ilContainerGUI.

Definition at line 503 of file class.ilObjStudyProgrammeGUI.php.

503 : void
504 {
505 $this->help->setScreenIdComponent("prg");
507 $this->tabs_gui->addTab(self::TAB_VIEW_CONTENT, $this->lng->txt("content"), $this->getLinkTarget("view"));
508 }
509
511 $this->tabs_gui->addTab(
512 self::TAB_INFO,
513 $this->lng->txt("info_short"),
514 $this->getLinkTarget("info_short")
515 );
516 }
517
519 $this->tabs_gui->addTab(
520 self::TAB_SETTINGS,
521 $this->lng->txt("settings"),
522 $this->getLinkTarget("settings")
523 );
524 }
525
527 $this->tabs_gui->addTab(
528 self::TAB_MEMBERS,
529 $this->lng->txt("assignments"),
530 $this->getLinkTarget("members")
531 );
532 }
533
534 if ($this->object->hasAdvancedMetadata()
535 && $this->checkAccess(ilPRGPermissionsHelper::ROLEPERM_WRITE)
536 ) {
537 $this->tabs_gui->addTab(
538 self::TAB_METADATA,
539 $this->lng->txt('meta_data'),
540 $this->ctrl->getLinkTarget($this, 'editAdvancedSettings')
541 );
542 }
543
544 parent::getTabs();
545 }

References checkAccess(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilOrgUnitOperation\OP_VIEW_MEMBERS, ilPRGPermissionsHelper\ROLEPERM_READ, and ilPRGPermissionsHelper\ROLEPERM_WRITE.

+ Here is the call graph for this function:

◆ initAdvancedSettingsForm()

ilObjStudyProgrammeGUI::initAdvancedSettingsForm ( )
protected

Definition at line 398 of file class.ilObjStudyProgrammeGUI.php.

399 {
400 $form = new ilPropertyFormGUI();
401 $form->setFormAction($this->ctrl->getFormAction($this));
402 $form->addCommandButton('updateAdvancedSettings', $this->lng->txt('save'));
403 $form->addCommandButton('editAdvancedSettings', $this->lng->txt('cancel'));
404
405 return $form;
406 }
setFormAction(string $a_formaction)
This class represents a property form user interface.
addCommandButton(string $a_cmd, string $a_text, string $a_id="")

References ilContainerGUI\$form, ilPropertyFormGUI\addCommandButton(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilFormGUI\setFormAction().

Referenced by editAdvancedSettings(), executeCommand(), and updateAdvancedSettings().

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

◆ initCreationForms()

ilObjStudyProgrammeGUI::initCreationForms (   $new_type)
protected

Overwritten from ilObjectGUI since copy and import are not implemented.

Definition at line 457 of file class.ilObjStudyProgrammeGUI.php.

457 : array
458 {
459 return array(self::CFORM_NEW => $this->initCreateForm($new_type));
460 }
initCreateForm(string $new_type)

References ilObjectGUI\initCreateForm().

Referenced by getAsyncCreationForm().

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

◆ initHeaderAction()

ilObjStudyProgrammeGUI::initHeaderAction ( ?string  $sub_type = null,
?int  $sub_id = null 
)
protected

Add header action menu.

Reimplemented from ilObjectGUI.

Definition at line 731 of file class.ilObjStudyProgrammeGUI.php.

732 {
733 $lg = parent::initHeaderAction($sub_type, $sub_id);
734 $validator = new ilCertificateDownloadValidator();
735 if ($lg && true === $validator->isCertificateDownloadable($this->user->getId(), $this->object->getId())) {
736 $cert_url = $this->ctrl->getLinkTarget($this, "deliverCertificate");
737 $this->lng->loadLanguageModule("certificate");
738 $lg->addCustomCommand($cert_url, "download_certificate");
739 $lg->addHeaderIcon(
740 "cert_icon",
741 ilUtil::getImagePath("icon_cert.svg"),
742 $this->lng->txt("download_certificate"),
743 null,
744 null,
745 $cert_url
746 );
747 }
748 return $lg;
749 }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)

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

+ Here is the call graph for this function:

◆ initTreeJS()

ilObjStudyProgrammeGUI::initTreeJS ( )
protected

Definition at line 776 of file class.ilObjStudyProgrammeGUI.php.

776 : void
777 {
779 }
static init(ilGlobalTemplateInterface $a_main_tpl=null)

References ilExplorerBaseGUI\init().

Referenced by executeCommand().

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

◆ isActiveAdministrationPanel()

ilObjStudyProgrammeGUI::isActiveAdministrationPanel ( )

Reimplemented from ilContainerGUI.

Definition at line 393 of file class.ilObjStudyProgrammeGUI.php.

393 : bool
394 {
395 return false;
396 }

◆ save()

ilObjStudyProgrammeGUI::save ( )
protected

Definition at line 319 of file class.ilObjStudyProgrammeGUI.php.

319 : void
320 {
321 parent::saveObject();
322
323 if ($this->ctrl->isAsynch()) {
324 $form = $this->getAsyncCreationForm();
327 "cmd" => $this->ctrl->getCmd(),
328 "success" => false,
329 "errors" => $form->getErrors()
330 ]);
331 exit();
332 }
333 }
getAsyncCreationForm()
Method for implementing async windows-output Should be moved into core to enable async requests on cr...
exit
Definition: login.php:28

References ilContainerGUI\$form, ILIAS\Repository\ctrl(), ilAsyncOutputHandler\encodeAsyncResponse(), exit, getAsyncCreationForm(), and ilPropertyFormGUI\setValuesByPost().

+ Here is the call graph for this function:

◆ setContentSubTabs()

ilObjStudyProgrammeGUI::setContentSubTabs ( )

Disable default content subtabs.

Reimplemented from ilContainerGUI.

Definition at line 635 of file class.ilObjStudyProgrammeGUI.php.

635 : void
636 {
637 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ supportsPageEditor()

ilObjStudyProgrammeGUI::supportsPageEditor ( )
protected

Reimplemented from ilContainerGUI.

Definition at line 781 of file class.ilObjStudyProgrammeGUI.php.

781 : bool
782 {
783 return false;
784 }

◆ updateAdvancedSettings()

ilObjStudyProgrammeGUI::updateAdvancedSettings ( )
protected

Definition at line 427 of file class.ilObjStudyProgrammeGUI.php.

427 : void
428 {
430 $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
431 $this->ctrl->redirect($this);
432 }
434 $gui = new ilAdvancedMDRecordGUI(
436 'prg',
437 $this->object->getId(),
438 'prg_type',
439 $this->object->getSettings()->getTypeSettings()->getTypeId()
440 );
441 $gui->setPropertyForm($form);
442 $gui->parse();
443 $form->checkInput();
444
445 if ($gui->importEditFormPostValues()) {
446 $gui->writeEditForm();
447 $this->tpl->setOnScreenMessage("success", $this->lng->txt('settings_saved'), true);
448 $this->ctrl->redirect($this, 'editAdvancedSettings');
449 } else {
450 $this->tpl->setContent($form->getHTML());
451 }
452 }

References ilContainerGUI\$form, checkAccess(), ilPropertyFormGUI\checkInput(), ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), initAdvancedSettingsForm(), ILIAS\Repository\lng(), ilAdvancedMDRecordGUI\MODE_EDITOR, ILIAS\Repository\object(), and ilPRGPermissionsHelper\ROLEPERM_WRITE.

Referenced by executeCommand().

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

◆ view()

ilObjStudyProgrammeGUI::view ( )
protected

Definition at line 386 of file class.ilObjStudyProgrammeGUI.php.

386 : void
387 {
389 $this->tabs_gui->activateTab(self::TAB_VIEW_CONTENT);
390 parent::renderObject();
391 }

References denyAccessIfNot(), and ilPRGPermissionsHelper\ROLEPERM_READ.

+ Here is the call graph for this function:

Field Documentation

◆ $autocategories_gui

ilObjStudyProgrammeAutoCategoriesGUI ilObjStudyProgrammeGUI::$autocategories_gui
protected

Definition at line 59 of file class.ilObjStudyProgrammeGUI.php.

◆ $container_view_manager

ViewManager ilObjStudyProgrammeGUI::$container_view_manager
protected

Definition at line 69 of file class.ilObjStudyProgrammeGUI.php.

◆ $help

ilHelpGUI ilObjStudyProgrammeGUI::$help
protected

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

◆ $ilLocator

ilLocatorGUI ilObjStudyProgrammeGUI::$ilLocator
protected

Definition at line 50 of file class.ilObjStudyProgrammeGUI.php.

◆ $ilLog

ilComponentLogger ilObjStudyProgrammeGUI::$ilLog
protected

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

◆ $members_gui

ilObjStudyProgrammeMembersGUI ilObjStudyProgrammeGUI::$members_gui
protected

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

◆ $memberships_gui

ilObjStudyProgrammeAutoMembershipsGUI ilObjStudyProgrammeGUI::$memberships_gui
protected

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

◆ $object

ilObject ilObjStudyProgrammeGUI::$object

Definition at line 67 of file class.ilObjStudyProgrammeGUI.php.

◆ $permissions

ilPRGPermissionsHelper ilObjStudyProgrammeGUI::$permissions = null
protected

Definition at line 60 of file class.ilObjStudyProgrammeGUI.php.

Referenced by denyAccessIfNotAnyOf(), and getPermissionsHelper().

◆ $refinery

Refinery Factory ilObjStudyProgrammeGUI::$refinery
protected

Definition at line 61 of file class.ilObjStudyProgrammeGUI.php.

◆ $request_wrapper

RequestWrapper ilObjStudyProgrammeGUI::$request_wrapper
protected

Definition at line 62 of file class.ilObjStudyProgrammeGUI.php.

◆ $settings_gui

ilObjStudyProgrammeSettingsGUI ilObjStudyProgrammeGUI::$settings_gui
protected

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

◆ $tree_gui

ilObjStudyProgrammeTreeGUI ilObjStudyProgrammeGUI::$tree_gui
protected

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

◆ $type_gui

ilStudyProgrammeTypeGUI ilObjStudyProgrammeGUI::$type_gui
protected

Definition at line 57 of file class.ilObjStudyProgrammeGUI.php.

◆ $type_repository

ilStudyProgrammeTypeRepository ilObjStudyProgrammeGUI::$type_repository
protected

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

◆ SUBTAB_VIEW_TREE

const ilObjStudyProgrammeGUI::SUBTAB_VIEW_TREE = "view_tree"
private

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

Referenced by getSubTabs().

◆ TAB_INFO

const ilObjStudyProgrammeGUI::TAB_INFO = "info_short"
private

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

◆ TAB_MEMBERS

const ilObjStudyProgrammeGUI::TAB_MEMBERS = "members"
private

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

◆ TAB_METADATA

const ilObjStudyProgrammeGUI::TAB_METADATA = "edit_advanced_settings"
private

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

◆ TAB_SETTINGS

const ilObjStudyProgrammeGUI::TAB_SETTINGS = "settings"
private

Definition at line 46 of file class.ilObjStudyProgrammeGUI.php.

◆ TAB_VIEW_CONTENT

const ilObjStudyProgrammeGUI::TAB_VIEW_CONTENT = "view_content"
private

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

Referenced by getSubTabs().


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