ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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: ilObjStudyProgrammeMembersGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjStudyProgrammeAutoMembershipsGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjectCopyGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ILIAS\ILIASObject\Properties\Translations\TranslationGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilCertificateGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjStudyProgrammeAutoCategoriesGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilContainerGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilContainerPageGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjStyleSheetGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjectContentStyleSettingsGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilPRGPageObjectGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilPRGMembersExportGUI @ilCtrl_Calls ilObjStudyProgrammeGUI: ilPropertyFormGUI @ilCtrl_isCalledBy ilObjStudyProgrammeGUI: ilRepositoryGUI. More...

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

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 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 ()
 
 getContentGUI ()
 
 renderObject ()
 
 renderBlockAsynchObject ()
 render the object More...
 
 setContentSubTabs ()
 
 showAdministrationPanel ()
 
 showPermanentLink ()
 
 editPageFrameObject ()
 
 cancelPageContentObject ()
 
 showLinkListObject ()
 
 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 ()
 
 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
 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)
 
- Public Member Functions inherited from ilDesktopItemHandling
 addToDeskObject ()
 
 removeFromDeskObject ()
 

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 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]
 

Protected Member Functions

 create ()
 
 save ()
 
 afterSave (ilObject $new_object)
 Sets the sorting of the container correctly. More...
 
 getPermissionsHelper ()
 
 view ()
 
 initAdvancedSettingsForm ()
 
 editAdvancedSettings ()
 
 updateAdvancedSettings ()
 
 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
 getModeManager ()
 
 getItemPresentation ( $include_empty_blocks=true, ?string $lang=null)
 
 getEditFormValues ()
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 setTitleAndDescription ()
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 supportsPageEditor ()
 
 gotItems ()
 
 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 ()
 
 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

ilLocatorGUI $ilLocator
 
ilComponentLogger $ilLog
 
ilHelpGUI $help
 
ilObjStudyProgrammeSettingsGUI $settings_gui
 
ilObjStudyProgrammeMembersGUI $members_gui
 
ilObjStudyProgrammeAutoMembershipsGUI $memberships_gui
 
ilStudyProgrammeTypeGUI $type_gui
 
ilStudyProgrammeTypeRepository $type_repository
 
ilObjStudyProgrammeAutoCategoriesGUI $autocategories_gui
 
ilPRGPermissionsHelper $permissions = null
 
Refinery Factory $refinery
 
RequestWrapper $request_wrapper
 
ILIAS UI Factory $ui_factory
 
ILIAS Container Content DomainService $internal_domain_service
 
ViewManager $container_view_manager
 
- Protected Attributes inherited from ilContainerGUI
ILIAS Container InternalGUIService $gui
 
ILIAS Style Content GUIService $content_style_gui
 
ilRbacSystem $rbacsystem
 
ilRbacReview $rbacreview
 
ILIAS Container Content ItemPresentationManager $item_presentation = null
 
ILIAS Container InternalDomainService $domain
 
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
 
ModeManager $mode_manager = null
 
ilComponentFactory $component_factory
 
ILIAS Style Content DomainService $content_style_domain
 
- 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 Attributes

const TAB_VIEW_CONTENT = "view_content"
 
const SUBTAB_VIEW_MANAGE = "manage"
 
const TAB_INFO = "info_short"
 
const TAB_SETTINGS = "settings"
 
const TAB_MEMBERS = "members"
 
const TAB_METADATA = "edit_advanced_settings"
 
const SUBTAB_PAGE_EDIT = "page"
 
const ASYNC_CALLS
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjStudyProgrammeGUI::__construct ( )

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

86 {
87 global $DIC;
88 $this->tpl = $DIC['tpl'];
89 $this->ctrl = $DIC['ilCtrl'];
90 $this->ilLocator = $DIC['ilLocator'];
91 $this->tree = $DIC['tree'];
92 $this->toolbar = $DIC['ilToolbar'];
93 $this->ilLog = $DIC['ilLog'];
94 $this->ilias = $DIC['ilias'];
95 $this->type = "prg";
96 $this->help = $DIC['ilHelp'];
97 $this->user = $DIC['ilUser'];
98 $this->refinery = $DIC->refinery();
99 $this->request_wrapper = $DIC->http()->wrapper()->query();
100
101 $ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
102 parent::__construct([], $ref_id, true, false);
103
104 $lng = $DIC['lng'];
105 $lng->loadLanguageModule("prg");
106
108 $this->settings_gui = $dic['ilObjStudyProgrammeSettingsGUI'];
109 $this->members_gui = $dic['ilObjStudyProgrammeMembersGUI'];
110 $this->memberships_gui = $dic['ilObjStudyProgrammeAutoMembershipsGUI'];
111 $this->type_gui = $dic['ilStudyProgrammeTypeGUI'];
112 $this->autocategories_gui = $dic['ilObjStudyProgrammeAutoCategoriesGUI'];
113 $this->type_repository = $dic['model.Type.ilStudyProgrammeTypeRepository'];
114 $this->ui_factory = $dic['ui.factory'];
115
116 $this->internal_domain_service = $DIC->container()->internal()->domain()->content();
117 $this->container_view_manager = $this->internal_domain_service->view($this->object);
118 }
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
$dic
Definition: ltiresult.php:33
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ilObjForumAdministration.
global $DIC
Definition: shib_login.php:26

References $DIC, $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 752 of file class.ilObjStudyProgrammeGUI.php.

752 : void
753 {
754 global $DIC;
755 $ilCtrl = $DIC['ilCtrl'];
756 $ilCtrl->setTargetScript('ilias.php');
757 $ilCtrl->setParameterByClass("ilobjstudyprogrammegui", "ref_id", $target);
758 $ilCtrl->redirectByClass(array("ilRepositoryGUI", "ilobjstudyprogrammegui"), "view");
759 }

References $DIC.

Referenced by ilObjStudyProgrammeReferenceGUI\_goto().

+ Here is the caller graph for this function:

◆ addToNavigationHistory()

ilObjStudyProgrammeGUI::addToNavigationHistory ( )

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

761 : void
762 {
763 global $DIC;
764 $ilNavigationHistory = $DIC['ilNavigationHistory'];
765
767 $ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
768 $link = ilLink::_getLink($ref_id, "prg");
769 $ilNavigationHistory->addItem($ref_id, $link, 'prg');
770 }
771 }

References $DIC, ilObjectGUI\$ref_id, 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 405 of file class.ilObjStudyProgrammeGUI.php.

405 : void
406 {
407 // set default sort to manual
408 $settings = new ilContainerSortingSettings($new_object->getId());
413 $settings->save();
414
415 $this->tpl->setOnScreenMessage("success", $this->lng->txt("object_added"), true);
416
417 $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
418 $this->ctrl->redirectToURL($this->getReturnLocation(
419 "save",
420 $this->ctrl->getLinkTarget($this, "edit", "", false, false)
421 ));
422 }
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(), ilObject\getId(), ilObject\getRefId(), ilObjectGUI\getReturnLocation(), 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:

◆ checkAccess()

ilObjStudyProgrammeGUI::checkAccess ( string  $permission)
protected

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

519 : bool
520 {
521 return $this->getPermissionsHelper()->may($permission);
522 }

References getPermissionsHelper().

Referenced by addToNavigationHistory(), editAdvancedSettings(), 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 392 of file class.ilObjStudyProgrammeGUI.php.

392 : void
393 {
394 parent::createObject();
395 }

◆ deliverCertificateObject()

ilObjStudyProgrammeGUI::deliverCertificateObject ( )
protected

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

793 : void
794 {
795 $this->lng->loadLanguageModule('cert');
796
797 $user_id = (int) $this->user->getId();
798 $obj_id = $this->object->getId();
799
800 $validator = new ilCertificateDownloadValidator();
801 if (false === $validator->isCertificateDownloadable($user_id, $obj_id)) {
802 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
803 $this->ctrl->redirect($this);
804 }
805 $repository = new ilUserCertificateRepository();
806 $pdf_action = new ilCertificatePdfAction(
807 new ilPdfGenerator($repository),
809 $this->lng->txt('error_creating_certificate_pdf')
810 );
811 $pdf_action->downloadPdf($user_id, $obj_id);
812 }
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.

References ilObjectGUI\$obj_id, $user_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 524 of file class.ilObjStudyProgrammeGUI.php.

524 : void
525 {
526 $this->denyAccessIfNotAnyOf([$permission]);
527 }

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 529 of file class.ilObjStudyProgrammeGUI.php.

529 : void
530 {
531 if (!$this->getPermissionsHelper()->mayAnyOf($permissions)) {
533 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("msg_no_perm_write"));
534 $this->ctrl->redirectByClass('ilinfoscreengui', '');
535 } else {
536 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->WARNING);
537 }
538 }
539 }
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 745 of file class.ilObjStudyProgrammeGUI.php.

745 : void
746 {
748 $link = $this->ctrl->getLinkTargetByClass(ilObjStudyProgrammeSettingsGUI::class, 'view');
749 $this->ctrl->redirectToURL($link);
750 }

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

+ Here is the call graph for this function:

◆ editAdvancedSettings()

ilObjStudyProgrammeGUI::editAdvancedSettings ( )
protected

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

453 : void
454 {
456 $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
457 $this->ctrl->redirect($this);
458 }
462 'prg',
463 $this->object->getId(),
464 'prg_type',
465 $this->object->getSettings()->getTypeSettings()->getTypeId()
466 );
467 $gui->setPropertyForm($form);
468 $gui->parse();
469 $this->tpl->setContent($form->getHTML());
470 }
ILIAS Container InternalGUIService $gui
ilPropertyFormGUI $form

References ilContainerGUI\$form, ilContainerGUI\$gui, 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 120 of file class.ilObjStudyProgrammeGUI.php.

120 : void
121 {
122 $cmd = $this->ctrl->getCmd(self::SUBTAB_VIEW_MANAGE);
123 $next_class = $this->ctrl->getNextClass($this);
124
125 if (!in_array($cmd, self::ASYNC_CALLS)) {
126 $this->addToNavigationHistory();
127 parent::prepareOutput();
128 $this->addHeaderAction();
129 }
130
131 switch ($next_class) {
132 case "ilinfoscreengui":
133 $this->tabs_gui->activateTab(self::TAB_INFO);
134 $this->denyAccessIfNotAnyOf([
137 ]);
138 $info = new ilInfoScreenGUI($this);
139 $this->fillInfoScreen($info);
140 $this->ctrl->forwardCommand($info);
141
142 // I guess this is how it was supposed to work,
143 // but it doesn't... it won't respect our sub-id and sub-type when creating the objects!
144 // So we reimplemented the stuff in the method parseInfoScreen()
145 // $info = new ilInfoScreenGUI($this);
146 // $amd_gui = new ilAdvancedMDRecordGUI(
147 // ilAdvancedMDRecordGUI::MODE_INFO,
148 // 'orgu',
149 // $this->object->getId(),
150 // 'orgu_type',
151 // $this->object->getOrgUnitTypeId()
152 // );
153 // $amd_gui->setInfoObject($info);
154 // $amd_gui->setSelectedOnly(true);
155 // $amd_gui->parse();
156 // $this->ctrl->forwardCommand($info);
157 break;
158 case 'ilpermissiongui':
159 $this->tabs_gui->activateTab('perm_settings');
160 $ilPermissionGUI = new ilPermissionGUI($this);
161 $this->ctrl->forwardCommand($ilPermissionGUI);
162 break;
163 case "ilcommonactiondispatchergui":
165 $this->ctrl->forwardCommand($gui);
166 break;
167 case "ilobjstudyprogrammesettingsgui":
169 $this->getSubTabs('settings');
170 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
171 $this->tabs_gui->activateSubTab('settings');
172 $this->settings_gui->setRefId($this->ref_id);
173 $this->ctrl->forwardCommand($this->settings_gui);
174 break;
175 case "ilobjstudyprogrammeautocategoriesgui":
177 $this->getSubTabs('settings');
178 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
179 $this->tabs_gui->activateSubTab('auto_content');
180 $this->autocategories_gui->setRefId($this->ref_id);
181 $this->initTreeJS();
182 $this->ctrl->forwardCommand($this->autocategories_gui);
183 break;
184 case "ilobjstudyprogrammemembersgui":
186 $this->getSubTabs('members');
187 $this->tabs_gui->activateTab(self::TAB_MEMBERS);
188 $this->tabs_gui->activateSubTab('edit_participants');
189 $this->members_gui->setParentGUI($this);
190 $this->members_gui->setRefId($this->ref_id);
191 $this->ctrl->forwardCommand($this->members_gui);
192 break;
193 case 'ilprgmembersexportgui':
195 $this->getSubTabs('members');
196 $this->tabs_gui->activateTab(self::TAB_MEMBERS);
197 $this->tabs_gui->activateSubTab('export_memberships');
198
199 $specific_dic = ilStudyProgrammeDIC::specificDicFor($this->object);
200 $export_gui = new ilPRGMembersExportGUI(
201 $this->ref_id,
202 $specific_dic['ilStudyProgrammeUserTable'],
203 $specific_dic['DataFactory']
204 );
205 $this->ctrl->forwardCommand($export_gui);
206 break;
207 case "ilobjstudyprogrammeautomembershipsgui":
209 $this->getSubTabs('members');
210 $this->tabs_gui->activateTab(self::TAB_MEMBERS);
211 $this->tabs_gui->activateSubTab('auto_memberships');
212 $this->memberships_gui->setParentGUI($this);
213 $this->memberships_gui->setRefId($this->ref_id);
214 $this->ctrl->forwardCommand($this->memberships_gui);
215 break;
216 case 'ilstudyprogrammetypegui':
217 $this->tabs_gui->activateTab('subtypes');
218 $this->type_gui->setParentGUI($this);
219 $this->ctrl->forwardCommand($this->type_gui);
220 break;
221 case 'ilobjectcopygui':
222 $gui = new ilobjectcopygui($this);
223 $this->ctrl->forwardCommand($gui);
224 break;
225 case strtolower(TranslationGUI::class):
226 $this->denyAccessIfNot(ilPRGPermissionsHelper::ROLEPERM_WRITE);
227 $this->getSubTabs('settings');
228 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
229 $this->tabs_gui->activateSubTab('settings_trans');
230 $transgui = new TranslationGUI(
231 $this->getObject(),
232 $this->lng,
233 $this->access,
234 $this->user,
235 $this->ctrl,
236 $this->tpl,
237 $this->ui_factory,
238 $this->ui_renderer,
239 $this->http,
240 $this->refinery,
241 $this->toolbar
242 );
243 $this->ctrl->forwardCommand($transgui);
244 break;
245 case "ilcertificategui":
246 $this->getSubTabs('settings');
248 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
249 $this->tabs_gui->activateSubTab('certificate');
250 $guiFactory = new ilCertificateGUIFactory();
251 $output_gui = $guiFactory->create($this->object);
252 $this->ctrl->forwardCommand($output_gui);
253 break;
254 case "ilprgpageobjectgui":
256 if (!$this->object->hasContentPage()) {
257 $this->object->createContentPage();
258 }
259 $gui = new ilPRGPageObjectGUI($this->object->getId());
260 $gui->setItemPresentationManager(
261 $this->internal_domain_service
262 ->itemPresentation(
263 $this->object,
264 null,
265 false
266 )
267 );
268 $this->content_style_gui->addCss($this->tpl, $this->object->getRefId());
269 $out = $this->ctrl->forwardCommand($gui);
270 if (!is_null($out)) {
271 $this->tpl->setContent($out);
272 }
273 break;
274 case "ilobjstylesheetgui":
275 $this->forwardToStyleSheet();
276 break;
277 case "ilobjectcontentstylesettingsgui":
278 $this->tabs_gui->activateTab(self::TAB_VIEW_CONTENT);
279 $settings_gui = $this->content_style_gui
280 ->objectSettingsGUIForRefId(null, $this->object->getRefId());
281 $this->ctrl->forwardCommand($settings_gui);
282 break;
283 case strtolower(ilPropertyFormGUI::class):
284 /*
285 * Only used for async loading of the repository tree in custom md
286 * internal links (see #28060, #37974). This is necessary since StudyProgrammes don't
287 * use ilObjectMetaDataGUI.
288 */
292 'prg',
293 $this->object->getId(),
294 'prg_type',
295 $this->object->getSettings()->getTypeSettings()->getTypeId()
296 );
297 $gui->setPropertyForm($form);
298 $gui->parse();
299 $this->ctrl->forwardCommand($form);
300 break;
301 case false:
302 $this->getSubTabs($cmd);
303 switch ($cmd) {
304 case "cancelDelete":
305 case "cancel":
306 $cmd = "view";
307 // no break
308 case "create":
309 case "save":
310 case "edit":
311 $this->$cmd();
312 break;
313 case "view":
314 $this->getModeManager()->setContentMode();
315 $this->view();
316 break;
317 case self::SUBTAB_VIEW_MANAGE: //manage
318 $this->getModeManager()->setAdminMode();
319 $this->view();
320 break;
321 case "delete":
322 parent::deleteObject();
323 break;
324 case 'confirmedDelete':
325 parent::confirmedDeleteObject();
326 break;
327 case 'editAdvancedSettings':
328 $this->tabs_gui->activateTab('edit_advanced_settings');
329 $this->editAdvancedSettings();
330 break;
331 case 'updateAdvancedSettings':
332 $this->tabs_gui->activateTab('edit_advanced_settings');
333 $this->updateAdvancedSettings();
334 break;
335 case "infoScreen":
336 $this->ctrl->redirectByClass("ilInfoScreenGUI", "showSummary");
337 break;
338 case 'editPageFrame':
339 $this->ctrl->redirectToURL($this->getLinkTarget('edit_page'));
340 break;
341 case 'editStyleProperties':
343 break;
344
345 case 'render':
346 case 'disableAdministrationPanel':
347 case 'enableAdministrationPanel':
348 case 'saveSorting':
349 case 'editOrder':
350 case 'trash':
351 case 'undelete':
352 case 'confirmRemoveFromSystem':
353 case 'removeFromSystem':
354 case 'deliverCertificate':
355 case 'addToDesk':
356 case 'removeFromDesk':
357 case 'paste':
358 case 'clear':
359 case 'performPasteIntoMultipleObjects':
360 case 'cancelMoveLink':
361 case 'keepObjectsInClipboard':
362 case 'link':
363 case 'copy':
364 $this->getSubTabs(self::TAB_VIEW_CONTENT);
365 $cmd .= "Object";
366 $this->$cmd();
367 break;
368
369 case 'editAvailabilityPeriod':
370 case 'saveAvailabilityPeriod':
371 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('prg_availability_action_not_allowed'));
372 $this->view();
373 break;
374 case 'cut':
375 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('prg_cut_action_not_allowed'));
376 $this->view();
377 break;
378 case 'routeImportCmd':
379 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('prg_import_action_not_allowed'));
380 $this->view();
381 break;
382
383 default:
384 throw new ilException("ilObjStudyProgrammeGUI: Command not supported: $cmd");
385 }
386 break;
387 default:
388 throw new ilException("ilObjStudyProgrammeGUI: Can't forward to next class $next_class");
389 }
390 }
$out
Definition: buildRTE.php:24
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Base class for ILIAS Exception handling.
Class ilInfoScreenGUI.
fillInfoScreen($info_screen)
Adding meta-data to the info-screen.
getLinkTarget(string $cmd)
Generates a link based on a cmd.
getSubTabs(string $parent_tab)
Adds subtabs based on the parent tab.
ilObjStudyProgrammeSettingsGUI $settings_gui
addHeaderAction()
Add header action menu.
export assignments of PRG
PageObjectGUI for StudyProgrammes.
Both role and OrgU-based permissions are relevant in many places of the PRG.
static specificDicFor(ilObjStudyProgramme $prg)
$info
Definition: entry_point.php:21
static http()
Fetches the global http state from ILIAS.

References ilContainerGUI\$form, ilContainerGUI\$gui, $info, $out, $settings_gui, ILIAS\Repository\access(), ilObjectGUI\addHeaderAction(), addToNavigationHistory(), ILIAS\Repository\ctrl(), denyAccessIfNot(), denyAccessIfNotAnyOf(), editAdvancedSettings(), ilContainerGUI\editStylePropertiesObject(), fillInfoScreen(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), getLinkTarget(), ilContainerGUI\getModeManager(), ilObjectGUI\getObject(), getSubTabs(), ILIAS\FileDelivery\http(), initAdvancedSettingsForm(), initTreeJS(), ILIAS\Repository\lng(), ilAdvancedMDRecordGUI\MODE_EDITOR, ILIAS\Repository\object(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilOrgUnitOperation\OP_VIEW_MEMBERS, ILIAS\Repository\refinery(), ilPRGPermissionsHelper\ROLEPERM_MANAGE_MEMBERS, ilPRGPermissionsHelper\ROLEPERM_READ, ilPRGPermissionsHelper\ROLEPERM_VIEW, ilPRGPermissionsHelper\ROLEPERM_WRITE, ilStudyProgrammeDIC\specificDicFor(), SUBTAB_VIEW_MANAGE, ILIAS\Repository\toolbar(), updateAdvancedSettings(), ILIAS\Repository\user(), and view().

+ Here is the call graph for this function:

◆ fillInfoScreen()

ilObjStudyProgrammeGUI::fillInfoScreen (   $info_screen)
protected

Adding meta-data to the info-screen.

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

725 : void
726 {
727 if (!$this->object->getSettings()->getTypeSettings()->getTypeId() ||
728 !ilStudyProgrammeDIC::dic()['model.Type.ilStudyProgrammeTypeRepository']
729 ->getType($this->object->getSettings()->getTypeSettings()->getTypeId())
730 ) {
731 return;
732 }
733
734 $record_gui = new ilAdvancedMDRecordGUI(
736 'prg',
737 $this->object->getId(),
738 'prg_type',
739 $this->object->getSettings()->getTypeSettings()->getTypeId()
740 );
741 $record_gui->setInfoObject($info_screen);
742 $record_gui->parse();
743 }

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 503 of file class.ilObjStudyProgrammeGUI.php.

503 : ilAsyncPropertyFormGUI
504 {
505 $asyncForm = new ilAsyncPropertyFormGUI($this->request_wrapper);
506
507 $asyncForm->cloneForm(
508 $this->initCreateForm('prg')
509 );
510 $asyncForm->setAsync(true);
511
512 return $asyncForm;
513 }
initCreateForm(string $new_type)

References ilObjectGUI\initCreateForm().

+ Here is the call graph for this function:

◆ getLinkTarget()

ilObjStudyProgrammeGUI::getLinkTarget ( string  $cmd)
protected

Generates a link based on a cmd.

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

676 : string
677 {
678 if ($cmd === "info_short") {
679 return $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary");
680 }
681 if ($cmd === "settings") {
682 return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammesettingsgui", "view");
683 }
684 if ($cmd === "auto_content") {
685 return $this->ctrl->getLinkTargetByClass("ilObjStudyProgrammeAutoCategoriesGUI", "view");
686 }
687 if ($cmd === self::SUBTAB_VIEW_MANAGE) {
688 return $this->ctrl->getLinkTarget($this, self::SUBTAB_VIEW_MANAGE);
689 }
690
691 if ($cmd === "members") {
692 return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammemembersgui", "view");
693 }
694 if ($cmd === "memberships") {
695 return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammeautomembershipsgui", "view");
696 }
697 if ($cmd == "export_memberships") {
698 return $this->ctrl->getLinkTargetByClass('ilprgmembersexportgui', 'show');
699 }
700 if ($cmd === "subtypes") {
701 return $this->ctrl->getLinkTargetByClass("ilstudyprogrammetypegui", "listTypes");
702 }
703 if ($cmd === "commonSettings") {
704 return $this->ctrl->getLinkTargetByClass(
705 [
706 "ilobjstudyprogrammesettingsgui",
707 "ilStudyProgrammeCommonSettingsGUI"
708 ],
709 "editSettings"
710 );
711 }
712 if ($cmd == "edit_page") {
713 return $this->ctrl->getLinkTargetByClass(
714 ["ilObjStudyProgrammeGUI", "ilPRGPageObjectGUI"],
715 'edit'
716 );
717 }
718
719 return $this->ctrl->getLinkTarget($this, $cmd);
720 }

References ILIAS\Repository\ctrl().

Referenced by executeCommand().

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

◆ getPermissionsHelper()

ilObjStudyProgrammeGUI::getPermissionsHelper ( )
protected

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

425 {
426 if (!$this->permissions) {
427 if (!$this->object || !$this->object->getRefId()) {
428 throw new LogicException('Cannot ask for permission when not in tree!');
429 }
430
431 $this->permissions = ilStudyProgrammeDIC::specificDicFor($this->object)['permissionhelper'];
432 }
433 return $this->permissions;
434 }

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 589 of file class.ilObjStudyProgrammeGUI.php.

589 : void
590 {
591 switch ($parent_tab) {
594 case 'view':
595 case 'delete':
596 $this->addStandardContainerSubTabs(true);
597 break;
598
599 case 'settings':
600 $this->tabs_gui->addSubTab(
601 'settings',
602 $this->lng->txt('general'),
603 $this->getLinkTarget('settings')
604 );
605
606 if ($this->object->isAutoContentApplicable()) {
607 $this->tabs_gui->addSubTab(
608 "auto_content",
609 $this->lng->txt("content_automation"),
610 $this->getLinkTarget("auto_content")
611 );
612 }
613
614 $this->tabs_gui->addSubTab(
615 "settings_trans",
616 $this->lng->txt("obj_multilinguality"),
617 $this->ctrl->getLinkTargetByClass(TranslationGUI::class, "")
618 );
619
620 $validator = new ilCertificateActiveValidator();
621 if (true === $validator->validate()) {
622 $this->tabs_gui->addSubTabTarget(
623 "certificate",
624 $this->ctrl->getLinkTargetByClass("ilcertificategui", "certificateeditor"),
625 "",
626 "ilcertificategui"
627 );
628 }
629
630 if ($this->permissions->isOrguAccessEnabledGlobally()) {
631 $this->tabs_gui->addSubTab(
632 'commonSettings',
633 $this->lng->txt("obj_features"),
634 $this->getLinkTarget("commonSettings")
635 );
636 }
637
638 break;
639
640 case 'members':
641 $this->tabs_gui->addSubTab(
642 'edit_participants',
643 $this->lng->txt('edit_participants'),
644 $this->getLinkTarget('members')
645 );
646
648 $this->tabs_gui->addSubTab(
649 'auto_memberships',
650 $this->lng->txt('auto_memberships'),
651 $this->getLinkTarget('memberships')
652 );
653 }
654
656 $this->tabs_gui->addSubTab(
657 'export_memberships',
658 $this->lng->txt('export_memberships'),
659 $this->getLinkTarget('export_memberships')
660 );
661 }
662 break;
663 }
664 }
addStandardContainerSubTabs(bool $a_include_view=true)
Add standard container subtabs for view, manage, oderdering and text/media editor link.

References ilContainerGUI\addStandardContainerSubTabs(), ILIAS\Repository\ctrl(), getPermissionsHelper(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilPRGPermissionsHelper\ROLEPERM_MANAGE_MEMBERS, SUBTAB_VIEW_MANAGE, 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 541 of file class.ilObjStudyProgrammeGUI.php.

541 : void
542 {
543 $this->help->setScreenIdComponent("prg");
545 $this->tabs_gui->addTab(self::TAB_VIEW_CONTENT, $this->lng->txt("content"), $this->getLinkTarget("view"));
546 }
547
549 $this->tabs_gui->addTab(
550 self::TAB_INFO,
551 $this->lng->txt("info_short"),
552 $this->getLinkTarget("info_short")
553 );
554 }
555
557 $this->tabs_gui->addTab(
558 self::TAB_SETTINGS,
559 $this->lng->txt("settings"),
560 $this->getLinkTarget("settings")
561 );
562 }
563
565 $this->tabs_gui->addTab(
566 self::TAB_MEMBERS,
567 $this->lng->txt("assignments"),
568 $this->getLinkTarget("members")
569 );
570 }
571
572 if ($this->object->hasAdvancedMetadata()
573 && $this->checkAccess(ilPRGPermissionsHelper::ROLEPERM_WRITE)
574 ) {
575 $this->tabs_gui->addTab(
576 self::TAB_METADATA,
577 $this->lng->txt('meta_data'),
578 $this->ctrl->getLinkTarget($this, 'editAdvancedSettings')
579 );
580 }
581
582 parent::getTabs();
583 }

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 443 of file class.ilObjStudyProgrammeGUI.php.

444 {
445 $form = new ilPropertyFormGUI();
446 $form->setFormAction($this->ctrl->getFormAction($this));
447 $form->addCommandButton('updateAdvancedSettings', $this->lng->txt('save'));
448 $form->addCommandButton('editAdvancedSettings', $this->lng->txt('cancel'));
449
450 return $form;
451 }
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:

◆ initHeaderAction()

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

Add header action menu.

Reimplemented from ilObjectGUI.

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

774 {
775 $lg = parent::initHeaderAction($sub_type, $sub_id);
776 $validator = new ilCertificateDownloadValidator();
777 if ($lg && true === $validator->isCertificateDownloadable($this->user->getId(), $this->object->getId())) {
778 $cert_url = $this->ctrl->getLinkTarget($this, "deliverCertificate");
779 $this->lng->loadLanguageModule("certificate");
780 $lg->addCustomCommand($cert_url, "download_certificate");
781 $lg->addHeaderIcon(
782 "cert_icon",
783 ilUtil::getImagePath("standard/icon_cert.svg"),
784 $this->lng->txt("download_certificate"),
785 null,
786 null,
787 $cert_url
788 );
789 }
790 return $lg;
791 }
static getImagePath(string $image_name, 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 814 of file class.ilObjStudyProgrammeGUI.php.

814 : void
815 {
817 }
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:

◆ save()

ilObjStudyProgrammeGUI::save ( )
protected

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

397 : void
398 {
399 parent::saveObject();
400 }

◆ setContentSubTabs()

ilObjStudyProgrammeGUI::setContentSubTabs ( )

Disable default content subtabs.

Reimplemented from ilContainerGUI.

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

669 : void
670 {
671 }

◆ supportsPageEditor()

ilObjStudyProgrammeGUI::supportsPageEditor ( )
protected

Reimplemented from ilContainerGUI.

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

819 : bool
820 {
821 return true;
822 }

◆ updateAdvancedSettings()

ilObjStudyProgrammeGUI::updateAdvancedSettings ( )
protected

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

472 : void
473 {
475 $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
476 $this->ctrl->redirect($this);
477 }
481 'prg',
482 $this->object->getId(),
483 'prg_type',
484 $this->object->getSettings()->getTypeSettings()->getTypeId()
485 );
486 $gui->setPropertyForm($form);
487 $gui->parse();
488 $form->checkInput();
489
490 if ($gui->importEditFormPostValues()) {
491 $gui->writeEditForm();
492 $this->tpl->setOnScreenMessage("success", $this->lng->txt('settings_saved'), true);
493 $this->ctrl->redirect($this, 'editAdvancedSettings');
494 } else {
495 $this->tpl->setContent($form->getHTML());
496 }
497 }

References ilContainerGUI\$form, ilContainerGUI\$gui, 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 436 of file class.ilObjStudyProgrammeGUI.php.

436 : void
437 {
439 $this->tabs_gui->activateTab(self::TAB_VIEW_CONTENT);
440 parent::renderObject();
441 }

References denyAccessIfNot(), and ilPRGPermissionsHelper\ROLEPERM_READ.

Referenced by executeCommand().

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

Field Documentation

◆ $autocategories_gui

ilObjStudyProgrammeAutoCategoriesGUI ilObjStudyProgrammeGUI::$autocategories_gui
protected

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

◆ $container_view_manager

ViewManager ilObjStudyProgrammeGUI::$container_view_manager
protected

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

◆ $help

ilHelpGUI ilObjStudyProgrammeGUI::$help
protected

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

◆ $ilLocator

ilLocatorGUI ilObjStudyProgrammeGUI::$ilLocator
protected

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

◆ $ilLog

ilComponentLogger ilObjStudyProgrammeGUI::$ilLog
protected

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

◆ $internal_domain_service

ILIAS Container Content DomainService ilObjStudyProgrammeGUI::$internal_domain_service
protected

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

◆ $members_gui

ilObjStudyProgrammeMembersGUI ilObjStudyProgrammeGUI::$members_gui
protected

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

◆ $memberships_gui

ilObjStudyProgrammeAutoMembershipsGUI ilObjStudyProgrammeGUI::$memberships_gui
protected

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

◆ $object

ilObject ilObjStudyProgrammeGUI::$object

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

◆ $permissions

ilPRGPermissionsHelper ilObjStudyProgrammeGUI::$permissions = null
protected

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

Referenced by denyAccessIfNotAnyOf(), and getPermissionsHelper().

◆ $refinery

Refinery Factory ilObjStudyProgrammeGUI::$refinery
protected

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

◆ $request_wrapper

RequestWrapper ilObjStudyProgrammeGUI::$request_wrapper
protected

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

◆ $settings_gui

ilObjStudyProgrammeSettingsGUI ilObjStudyProgrammeGUI::$settings_gui
protected

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

Referenced by executeCommand().

◆ $type_gui

ilStudyProgrammeTypeGUI ilObjStudyProgrammeGUI::$type_gui
protected

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

◆ $type_repository

ilStudyProgrammeTypeRepository ilObjStudyProgrammeGUI::$type_repository
protected

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

◆ $ui_factory

ILIAS UI Factory ilObjStudyProgrammeGUI::$ui_factory
protected

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

◆ ASYNC_CALLS

◆ SUBTAB_PAGE_EDIT

const ilObjStudyProgrammeGUI::SUBTAB_PAGE_EDIT = "page"
private

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

◆ SUBTAB_VIEW_MANAGE

const ilObjStudyProgrammeGUI::SUBTAB_VIEW_MANAGE = "manage"
private

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

Referenced by executeCommand(), and getSubTabs().

◆ TAB_INFO

const ilObjStudyProgrammeGUI::TAB_INFO = "info_short"
private

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

◆ TAB_MEMBERS

const ilObjStudyProgrammeGUI::TAB_MEMBERS = "members"
private

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

◆ TAB_METADATA

const ilObjStudyProgrammeGUI::TAB_METADATA = "edit_advanced_settings"
private

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

◆ TAB_SETTINGS

const ilObjStudyProgrammeGUI::TAB_SETTINGS = "settings"
private

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

◆ TAB_VIEW_CONTENT

const ilObjStudyProgrammeGUI::TAB_VIEW_CONTENT = "view_content"
private

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

Referenced by getSubTabs().


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