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

Class ilObjLearningSequenceGUI @ilCtrl_isCalledBy ilObjLearningSequenceGUI: ilRepositoryGUI @ilCtrl_isCalledBy ilObjLearningSequenceGUI: ilAdministrationGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilPermissionGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilInfoScreenGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilCommonActionDispatcherGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilColumnGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjectCopyGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilExportGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceSettingsGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceContentGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceConditionsGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceLearnerGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceLPPollingGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilLearningSequenceMembershipGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilLearningProgressGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningModuleGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjFileBasedLMGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjSAHSLearningModuleGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjContentPageGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjExerciseGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjFileGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjIndividualAssessmentGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilIndividualAssessmentSettingsGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjTestGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjSurveyGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjFileUploadHandlerGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceEditIntroGUI, ilObjLearningSequenceEditExtroGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjectMetaDataGUI. More...

+ Inheritance diagram for ilObjLearningSequenceGUI:
+ Collaboration diagram for ilObjLearningSequenceGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 addContentStyleCss ()
 
 addToNavigationHistory ()
 
 unparticipate ()
 
 createMailSignature ()
 
 getLocalRoles ()
 
 addCustomData (array $a_data)
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 afterSaveCallback ()
 
- 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 ()
 
 undelete (array $trash_ids)
 
 restoreToNewLocation (array $trash_ids)
 
 confirmRemoveFromSystem (array $trash_ids)
 
 removeFromSystemObject (?int $trash_id=null)
 
 restoreToNewLocationObject (?int $trash_id=null)
 
 undeleteObject (?int $trash_id=null)
 Get objects back from trash. More...
 
 confirmRemoveFromSystemObject (?int $trash_id=null)
 
 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

const CMD_VIEW = "view"
 
const CMD_LEARNER_VIEW = "learnerView"
 
const CMD_CONTENT = "manageContent"
 
const CMD_MEMBERS = "members"
 
const CMD_MANAGE_MEMBERS = "participants"
 
const CMD_MEMBERS_GALLERY = "jump2UsersGallery"
 
const CMD_INFO = "showSummary"
 
const CMD_INFO_SCREEN = "infoScreen"
 
const CMD_SETTINGS = "settings"
 
const CMD_PERMISSIONS = "perm"
 
const CMD_EXPORT = "export"
 
const CMD_IMPORT = "routeImportCmd"
 
const CMD_CREATE = "create"
 
const CMD_SAVE = "save"
 
const CMD_CANCEL = "cancel"
 
const CMD_UNPARTICIPATE = "unparticipate"
 
const CMD_ADD_TO_DESK = "addToDesk"
 
const CMD_REMOVE_FROM_DESK = "removeFromDesk"
 
const CMD_LINK = "link"
 
const CMD_CANCEL_LINK = "cancelMoveLink"
 
const CMD_CUT = "cut"
 
const CMD_COPY = "copy"
 
const CMD_CANCEL_CUT = "cancelCut"
 
const CMD_CUT_SHOWTREE = "showPasteTree"
 
const CMD_CUT_CLIPBOARD = "keepObjectsInClipboard"
 
const CMD_DELETE = "delete"
 
const CMD_CANCEL_DELETE = "cancelDelete"
 
const CMD_DELETE_CONFIRMED = "confirmedDelete"
 
const CMD_PERFORM_PASTE = 'performPasteIntoMultipleObjects'
 
const CMD_SHOW_TRASH = 'trash'
 
const CMD_UNDELETE = 'undelete'
 
const CMD_REDRAW_HEADER = 'redrawHeaderAction'
 
const CMD_ENABLE_ADMINISTRATION_PANEL = "enableAdministrationPanel"
 
const TAB_VIEW_CONTENT = "view"
 
const TAB_MANAGE = "manage"
 
const TAB_CONTENT_MAIN = "manage_content_maintab"
 
const TAB_INFO = "show_summary"
 
const TAB_SETTINGS = "settings"
 
const TAB_PERMISSIONS = "perm_settings"
 
const TAB_MEMBERS = "members"
 
const TAB_LP = "learning_progress"
 
const TAB_EXPORT = "export"
 
const TAB_EDIT_INTRO = "edit_intropage"
 
const TAB_EDIT_EXTRO = "edit_extropage"
 
const MAIL_ALLOWED_ALL = 1
 
const MAIL_ALLOWED_TUTORS = 2
 
const ACCESS_READ = 'read'
 
const ACCESS_VISIBLE = 'visible'
 
- 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

 recordLearningSequenceRead ()
 
 getGUIInfo ()
 
 addAdvancedMetaDataToInfo (ilInfoScreenGUI $info)
 
 getGUIPermissions ()
 
 getGUISettings ()
 
 view ()
 
 getGUIManageContent ()
 
 getGUIConditions ()
 
 getGUILearnerView ()
 
 getGUIMembers ()
 
 getGUILearningProgress ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 initCreateForm (string $new_type)
 
 create ()
 
 save ()
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 getSubServices ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Initializes the header action for the object list GUI with optional subtype and sub-ID. More...
 
 setEditTabs (string $active_tab="settings_misc")
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 addSubTabsForContent (string $active)
 
 checkAccess (string $which)
 
 redirectForeignItemToRepository (?string $next_class, ?string $cmd)
 Links to items of the sequence may be routed through this class, while ref_id already points to the item. More...
 
 guardForwardAccess (string|false $next_class)
 
 assertAccessOrRedirect (string $permission)
 
 checkLPAccess ()
 
 getLinkTarget (string $cmd)
 Build the link target relative to the current ilCtrl context. More...
 
 getClassForTabs (string $cmd)
 
 getTrackingObject ()
 
 getAdditionalOKTypes ()
 append additional types to ilRepositoryExplorerGUI's positive list More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
- Protected Member Functions inherited from ilContainerGUI
 getModeManager ()
 
 getItemPresentation ( $include_empty_blocks=true, ?string $lang=null)
 
 checkTrashAccess ()
 
 getEditFormValues ()
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 getDidacticTemplateIdFromQuery ()
 
 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 ()
 
 initFormPasswordInstruction ()
 Init password form. More...
 
 savePasswordObject ()
 
 getListPresentationForRedraw (int $parent_ref_id)
 
 initEditForm ()
 
 initSortingForm (ilPropertyFormGUI $form, array $a_sorting_settings)
 Append sorting settings to property form. More...
 
 buildLabelForSortMode (int $sort_mode)
 
 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)
 
 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)
 

Static Protected Member Functions

static isAccessible (int $id)
 
static hasAccess (string $mode, int $id)
 
static forwardByClass (string $base_class, array $classes, array $params, string $cmd='')
 

Protected Attributes

ILIAS Style Content Service $content_style
 
ilNavigationHistory $navigation_history
 
ilObjectService $obj_service
 
ilRbacReview $rbac_review
 
ilHelpGUI $help
 
ILIAS UI Factory $ui_factory
 
ILIAS UI Renderer $ui_renderer
 
Data Factory $data_factory
 
ILIAS HTTP Wrapper RequestWrapper $request_wrapper
 
ArrayBasedRequestWrapper $query_wrapper
 
ArrayBasedRequestWrapper $post_wrapper
 
ILIAS Refinery Factory $refinery
 
Psr Http Message ServerRequestInterface $request
 
Profile $profile
 
- 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
 
ILIAS Repository InternalGUIService $repository_gui
 
- 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 = ""
 

Detailed Description

Class ilObjLearningSequenceGUI @ilCtrl_isCalledBy ilObjLearningSequenceGUI: ilRepositoryGUI @ilCtrl_isCalledBy ilObjLearningSequenceGUI: ilAdministrationGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilPermissionGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilInfoScreenGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilCommonActionDispatcherGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilColumnGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjectCopyGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilExportGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceSettingsGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceContentGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceConditionsGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceLearnerGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceLPPollingGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilLearningSequenceMembershipGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilLearningProgressGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningModuleGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjFileBasedLMGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjSAHSLearningModuleGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjContentPageGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjExerciseGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjFileGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjIndividualAssessmentGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilIndividualAssessmentSettingsGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjTestGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjSurveyGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjFileUploadHandlerGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceEditIntroGUI, ilObjLearningSequenceEditExtroGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjectMetaDataGUI.

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

Constructor & Destructor Documentation

◆ __construct()

ilObjLearningSequenceGUI::__construct ( )

Definition at line 206 of file class.ilObjLearningSequenceGUI.php.

207 {
209
210 global $DIC;
211 $this->ctrl = $DIC['ilCtrl'];
212 $this->lng = $DIC['lng'];
213 $this->user = $DIC['ilUser'];
214 $this->profile = $DIC['user']->getProfile();
215 $this->tabs = $DIC['ilTabs'];
216 $this->toolbar = $DIC['ilToolbar'];
217 $this->help = $DIC['ilHelp'];
218 $this->settings = $DIC['ilSetting'];
219 $this->access = $DIC['ilAccess'];
220 $this->rbac_review = $DIC['rbacreview'];
221 $this->ui_factory = $DIC['ui.factory'];
222 $this->ui_renderer = $DIC['ui.renderer'];
223 $this->request = $DIC->http()->request();
224
225 $this->log = $DIC["ilLoggerFactory"]->getComponentLogger('lso');
226 $this->app_event_handler = $DIC['ilAppEventHandler'];
227 $this->navigation_history = $DIC['ilNavigationHistory'];
228 $this->obj_definition = $DIC['objDefinition'];
229 $this->tpl = $DIC["tpl"];
230 $this->obj_service = $DIC->object();
231 $this->toolbar = $DIC['ilToolbar'];
232 $this->request_wrapper = $DIC->http()->wrapper()->query();
233 $this->post_wrapper = $DIC->http()->wrapper()->post();
234 $this->refinery = $DIC->refinery();
235 $this->content_style = $DIC->contentStyle();
236
237 $this->help->setScreenIdComponent($this->type);
238 $this->lng->loadLanguageModule($this->type);
239
240 $this->data_factory = new Data\Factory();
241
242 $this->ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
243 parent::__construct([], $this->ref_id, true, false);
244 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ilObjLearningSequence\OBJ_TYPE, ILIAS\Repository\profile(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjLearningSequenceGUI::_goto ( string  $target)
static

Definition at line 131 of file class.ilObjLearningSequenceGUI.php.

131 : void
132 {
133 global $DIC;
134 $main_tpl = $DIC->ui()->mainTemplate();
135
136 $request = $DIC->http()->request();
137 $lng = $DIC->language();
138 $err = $DIC['ilErr'];
139
140 $targetParameters = explode('_', $target);
141 $id = (int) $targetParameters[0];
142
143 if (!self::isAccessible($id)) {
144 $err->raiseError($lng->txt('msg_no_perm_read'), $err->FATAL);
145 }
146
147 if (self::hasAccess(self::ACCESS_READ, $id)) {
148 $params = ['ref_id' => $id];
149
150 if (isset($request->getQueryParams()['gotolp'])) {
151 $params['gotolp'] = 1;
152 }
153
155 ilRepositoryGUI::class,
156 [ilObjLearningSequenceGUI::class],
157 $params
158 );
159 }
160
161 if (self::hasAccess(self::ACCESS_VISIBLE, $id)) {
163 }
164
165 if (self::hasAccess(self::ACCESS_READ, ROOT_FOLDER_ID)) {
166 $main_tpl->setOnScreenMessage('info', sprintf(
167 $lng->txt('msg_no_perm_read_item'),
169 ), true);
170
171 self::forwardByClass(ilRepositoryGUI::class, [ilRepositoryGUI::class], ['ref_id' => ROOT_FOLDER_ID]);
172 }
173 }
txt(string|LanguageIdentifier $a_topic, ?int $n=null)
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Psr Http Message ServerRequestInterface $request
static forwardByClass(string $base_class, array $classes, array $params, string $cmd='')
static _gotoRepositoryNode(int $ref_id, string $cmd="")
ilLanguage $lng
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
const ROOT_FOLDER_ID
Definition: constants.php:32

References $DIC, ilObjectGUI\$id, ilObjectGUI\$lng, $request, ILIAS\Scripts\PHPStan\$target, ilObjectGUI\_gotoRepositoryNode(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), forwardByClass(), ILIAS\Repository\int(), ROOT_FOLDER_ID, and ilLanguage\txt().

+ Here is the call graph for this function:

◆ addAdvancedMetaDataToInfo()

ilObjLearningSequenceGUI::addAdvancedMetaDataToInfo ( ilInfoScreenGUI  $info)
protected

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

519 : void
520 {
521 $record_gui = new ilAdvancedMDRecordGUI(
523 'lso',
524 $this->object->getId(),
525 '',
526 0,
527 $this->call_by_reference
528 );
529 $record_gui->setInfoObject($info);
530 $record_gui->parse();
531 }
$info
Definition: entry_point.php:21

References $info, ilAdvancedMDRecordGUI\MODE_INFO, and ILIAS\Repository\object().

Referenced by getGUIInfo().

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

◆ addContentStyleCss()

ilObjLearningSequenceGUI::addContentStyleCss ( )

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

491 : void
492 {
493 $this->content_style->gui()->addCss(
494 $this->tpl,
495 $this->object->getRefId()
496 );
497 }

References ILIAS\Repository\object().

Referenced by executeCommand().

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

◆ addCustomData()

ilObjLearningSequenceGUI::addCustomData ( array  $a_data)
Returns
array<int|string, mixed>

Definition at line 1063 of file class.ilObjLearningSequenceGUI.php.

1063 : array
1064 {
1065 $udfs = $this->profile->getAllUserDefinedFields();
1066 return array_reduce(
1067 iterator_to_array(
1068 $this->profile->getDataForMultiple(
1069 array_keys($a_data)
1070 )
1071 ),
1072 function (array $c, ProfileData $v) use ($a_data, $udfs): array {
1073 $c[$v->getId()] = $a_data[$v->getId()];
1074 foreach ($udfs as $field) {
1075 $field_id = $field->getIdentifier();
1076 $c[$v->getId()]['udf_' . $field_id] = implode(
1077 ', ',
1078 $v->getAdditionalFieldByIdentifier($field_id) ?? []
1079 );
1080 }
1081 return $c;
1082 },
1083 []
1084 );
1085 }
foreach( $report as $row)

References Vendor\Package\$c, foreach, and ILIAS\Repository\profile().

+ Here is the call graph for this function:

◆ addSubTabsForContent()

ilObjLearningSequenceGUI::addSubTabsForContent ( string  $active)
protected

Definition at line 871 of file class.ilObjLearningSequenceGUI.php.

871 : void
872 {
873 $this->tabs->addSubTab(
874 self::TAB_VIEW_CONTENT,
875 $this->lng->txt(self::TAB_VIEW_CONTENT),
876 $this->getLinkTarget(self::CMD_LEARNER_VIEW)
877 );
878
879 if ($this->checkAccess("write")) {
880 $this->tabs->addSubTab(
881 self::TAB_MANAGE,
882 $this->lng->txt(self::TAB_MANAGE),
883 $this->getLinkTarget(self::CMD_CONTENT)
884 );
885
886 $this->tabs->addSubTab(
887 self::TAB_EDIT_INTRO,
888 $this->lng->txt("lso_settings_intro"),
889 $this->ctrl->getLinkTargetByClass(
890 strtolower('ilObjLearningSequenceEditIntroGUI'),
891 'preview'
892 )
893 );
894 $this->tabs->addSubTab(
895 self::TAB_EDIT_EXTRO,
896 $this->lng->txt("lso_settings_extro"),
897 $this->ctrl->getLinkTargetByClass(
898 strtolower('ilObjLearningSequenceEditExtroGUI'),
899 'preview'
900 )
901 );
902 }
903 $this->tabs->activateSubTab($active);
904 }

References checkAccess(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().

Referenced by executeCommand().

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

◆ addToNavigationHistory()

ilObjLearningSequenceGUI::addToNavigationHistory ( )

Definition at line 499 of file class.ilObjLearningSequenceGUI.php.

499 : void
500 {
501 if (
502 !$this->getCreationMode() &&
503 $this->access->checkAccess('read', '', $this->ref_id)
504 ) {
505 $link = ilLink::_getLink($this->ref_id, $this->type);
506 $this->navigation_history->addItem($this->ref_id, $link, $this->type);
507 }
508 }

References ILIAS\Repository\access(), and ilObjectGUI\getCreationMode().

Referenced by executeCommand().

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

◆ afterSave()

ilObjLearningSequenceGUI::afterSave ( ilObject  $new_object)
protected

Post (successful) object creation hook.

Reimplemented from ilObjectGUI.

Definition at line 691 of file class.ilObjLearningSequenceGUI.php.

691 : void
692 {
693 global $DIC;
694 $form = $this->initCreateForm('lso')->withRequest($DIC->http()->request());
695 $data = $form->getData();
696
699 $settings = $lso->getLSSettings();
701 $lso->updateSettings($settings);
702 }
703
704 $participant = new ilLearningSequenceParticipants(
705 $new_object->getId(),
706 $this->log,
707 $this->app_event_handler,
708 $this->settings
709 );
710
711 $participant->add($this->user->getId(), ilParticipants::IL_LSO_ADMIN);
712 $participant->updateNotification(
713 $this->user->getId(),
714 (bool) $this->settings->get('mail_lso_admin_notification', "1")
715 );
716
717 $settings = new ilContainerSortingSettings($new_object->getId());
722 $settings->save();
723
724 $this->tpl->setOnScreenMessage('success', $this->lng->txt('object_added'), true);
725 $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
727 $this->getReturnLocation(
728 "save",
729 $this->ctrl->getLinkTarget($this, self::CMD_SETTINGS, "", false, false)
730 )
731 );
732 }
ilPropertyFormGUI $form
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
static getInstanceByRefId(int $ref_id)
ilSetting $settings
getReturnLocation(string $cmd, string $default_location="")
Get return location for command (command is method name without "Object", e.g.
static redirect(string $a_script)

References ilObjectGUI\$data, $DIC, ilContainerGUI\$form, ilObjectGUI\$settings, ILIAS\Repository\ctrl(), ilObject\getId(), ilObjLearningSequence\getInstanceByRefId(), ilObject\getRefId(), ilObjectGUI\getReturnLocation(), ilParticipants\IL_LSO_ADMIN, initCreateForm(), ILIAS\Repository\lng(), ilObjLearningSequenceSettingsGUI\PROP_LSO_MODE, ilUtil\redirect(), ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_NEW_ITEMS_ORDER_CREATION, ilContainer\SORT_NEW_ITEMS_POSITION_BOTTOM, and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ afterSaveCallback()

ilObjLearningSequenceGUI::afterSaveCallback ( )

Definition at line 1101 of file class.ilObjLearningSequenceGUI.php.

1101 : void
1102 {
1103 }

◆ assertAccessOrRedirect()

ilObjLearningSequenceGUI::assertAccessOrRedirect ( string  $permission)
protected

Definition at line 957 of file class.ilObjLearningSequenceGUI.php.

957 : void
958 {
959 if ($this->checkAccess($permission)) {
960 return;
961 }
962
963 $message = $permission === 'edit_permission'
964 ? $this->lng->txt('no_permission')
965 : $this->lng->txt('msg_no_perm_write');
966
967 $this->tpl->setOnScreenMessage('failure', $message, true);
968 $this->ctrl->redirect($this, self::CMD_VIEW);
969 }

References $message, checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by guardForwardAccess().

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

◆ checkAccess()

ilObjLearningSequenceGUI::checkAccess ( string  $which)
protected

Definition at line 906 of file class.ilObjLearningSequenceGUI.php.

906 : bool
907 {
908 return $this->access->checkAccess($which, "", $this->ref_id);
909 }

References ILIAS\Repository\access().

Referenced by addSubTabsForContent(), assertAccessOrRedirect(), executeCommand(), getTabs(), unparticipate(), and view().

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

◆ checkLPAccess()

ilObjLearningSequenceGUI::checkLPAccess ( )
protected

Definition at line 971 of file class.ilObjLearningSequenceGUI.php.

971 : bool
972 {
973 if (ilObject::_lookupType($this->ref_id, true) !== "lso") {
974 return false;
975 }
976
977 $ref_id = $this->getObject()->getRefId();
978 $is_participant = ilLearningSequenceParticipants::_isParticipant($ref_id, $this->user->getId());
979
980 return ilLearningProgressAccess::checkAccess($ref_id, $is_participant);
981 }
static checkAccess(int $a_ref_id, bool $a_allow_only_read=true)
check access to learning progress
static _isParticipant(int $a_ref_id, int $a_usr_id)
Static function to check if a user is a participant of the container object.
static _lookupType(int $id, bool $reference=false)

References ilObjectGUI\$ref_id, ilLearningSequenceParticipants\_isParticipant(), ilObject\_lookupType(), ilLearningProgressAccess\checkAccess(), ilObjectGUI\getObject(), and ILIAS\Repository\user().

Referenced by getTabs().

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

◆ create()

ilObjLearningSequenceGUI::create ( )
protected

Definition at line 681 of file class.ilObjLearningSequenceGUI.php.

681 : void
682 {
683 parent::createObject();
684 }

◆ createMailSignature()

ilObjLearningSequenceGUI::createMailSignature ( )

Definition at line 1012 of file class.ilObjLearningSequenceGUI.php.

1012 : string
1013 {
1014 $link = chr(13) . chr(10) . chr(13) . chr(10);
1015 $link .= $this->lng->txt('lso_mail_permanent_link');
1016 $link .= chr(13) . chr(10) . chr(13) . chr(10);
1017 $link .= ilLink::_getLink($this->object->getRefId());
1018
1019 return rawurlencode(base64_encode($link));
1020 }

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

+ Here is the call graph for this function:

◆ enableDragDropFileUpload()

ilObjLearningSequenceGUI::enableDragDropFileUpload ( )
protected

Enables the file upload into this object by dropping files.

Reimplemented from ilObjectGUI.

Definition at line 1105 of file class.ilObjLearningSequenceGUI.php.

1105 : void
1106 {
1107 }

◆ executeCommand()

ilObjLearningSequenceGUI::executeCommand ( )

Reimplemented from ilContainerGUI.

Definition at line 256 of file class.ilObjLearningSequenceGUI.php.

256 : void
257 {
258 $next_class = $this->ctrl->getNextClass($this);
259 $cmd = $this->ctrl->getCmd();
261
262 $this->redirectForeignItemToRepository($next_class, $cmd);
263
264 parent::prepareOutput();
265 $this->addToNavigationHistory();
266 //showRepTree is from containerGUI;
267 //LSO will attach allowed subitems to ok-list
268 //see: $this::getAdditionalOKTypes
269
270 $in_player = (
271 $next_class === 'ilobjlearningsequencelearnergui'
272 && $cmd === 'view'
273 );
274
275 $tpl->setPermanentLink("lso", $this->ref_id);
276 $this->guardForwardAccess($next_class);
277
278 switch ($next_class) {
279 case "ilcommonactiondispatchergui":
281 $this->ctrl->forwardCommand($gui);
282 break;
283 case "ilinfoscreengui":
284 $this->tabs->setTabActive(self::TAB_INFO);
285 $this->ctrl->forwardCommand($this->getGUIInfo());
286 break;
287 case "ilpermissiongui":
288 $this->tabs->setTabActive(self::TAB_PERMISSIONS);
289 $this->ctrl->forwardCommand($this->getGUIPermissions());
290 break;
291 case "ilobjlearningsequencesettingsgui":
292 $this->tabs->activateTab(self::TAB_SETTINGS);
293 $this->setEditTabs();
294 $this->ctrl->forwardCommand($this->getGUISettings());
295 break;
296 case "ilobjlearningsequencecontentgui":
297 $this->tabs->activateTab(self::TAB_CONTENT_MAIN);
298 $this->addSubTabsForContent(self::TAB_MANAGE);
299 $this->ctrl->forwardCommand($this->getGUIManageContent());
300 break;
301 case "ilobjlearningsequenceconditionsgui":
302 $this->tabs->activateTab(self::TAB_CONTENT_MAIN);
303 $this->addSubTabsForContent(self::TAB_MANAGE);
304 $this->ctrl->forwardCommand($this->getGUIConditions());
305 break;
306 case "ilobjlearningsequencelearnergui":
307 $this->addContentStyleCss();
308 $this->tabs->activateTab(self::TAB_CONTENT_MAIN);
309 $this->addSubTabsForContent(self::TAB_VIEW_CONTENT);
310 $this->ctrl->forwardCommand($this->getGUILearnerView());
311 break;
312 case "illearningsequencemembershipgui":
313 $this->tabs->setTabActive(self::TAB_MEMBERS);
314 $this->ctrl->forwardCommand($this->getGUIMembers());
315 break;
316 case 'illearningprogressgui':
317 $this->tabs->setTabActive(self::TAB_LP);
318 $this->ctrl->forwardCommand($this->getGUILearningProgress());
319 break;
320 case 'ilexportgui':
321 $gui = new ilExportGUI($this);
322 $gui->addFormat("xml");
323 $this->tabs->setTabActive(self::TAB_EXPORT);
324 $this->ctrl->forwardCommand($gui);
325 break;
326 case 'ilobjectcopygui':
327 $gui = new ilObjectCopyGUI($this);
328 $gui->setType('lso');
329 $this->ctrl->forwardCommand($gui);
330 break;
331 case 'ilobjlearningsequencelppollinggui':
332 $gui = $this->object->getLocalDI()["gui.learner.lp"];
333 $this->ctrl->forwardCommand($gui);
334 break;
335 case "ilobjectmetadatagui":
336 $this->tabs->activateTab("meta_data");
337 $mdgui = new ilObjectMetaDataGUI($this->object);
338 $this->ctrl->forwardCommand($mdgui);
339 break;
340 case "ilobjlearningsequenceeditintrogui":
341 $which_page = LSOPageType::INTRO;
342 $which_tab = self::TAB_EDIT_INTRO;
343 $gui_class = 'ilObjLearningSequenceEditIntroGUI';
344 // no break
345 case "ilobjlearningsequenceeditextrogui":
346 if (!isset($which_page)) {
347 $which_page = LSOPageType::EXTRO;
348 $which_tab = self::TAB_EDIT_EXTRO;
349 $gui_class = 'ilObjLearningSequenceEditExtroGUI';
350 }
351
352 $this->addContentStyleCss();
353 $this->addSubTabsForContent($which_tab);
354
355 if (!$this->object->hasContentPage($which_page)) {
356 $this->object->createContentPage($which_page);
357 }
358
359 $gui = new $gui_class(
360 $which_page->value,
361 $this->object->getContentPageId()
362 );
363 $out = $this->ctrl->forwardCommand($gui);
364
365 //editor's guis will write to template, but not return
366 //e.g. see ilPCTabsGUI::insert
367 if (!is_null($out)) {
369 }
370 break;
371
372 case false:
373 if ($cmd === '') {
374 if ($this->checkAccess("write")) {
375 $cmd = self::CMD_CONTENT;
376 } else {
377 $cmd = self::CMD_VIEW;
378 }
379 }
380
381 switch ($cmd) {
382 case self::CMD_IMPORT:
383 $this->routeImportCmdObject();
384 break;
385 case self::CMD_VIEW:
387 $this->view();
388 // no break
389 case self::CMD_INFO:
391 $this->ctrl->redirectByClass(ilInfoScreenGUI::class, 'showSummary');
392 // no break
394 $this->ctrl->redirectByClass(ilObjLearningSequenceSettingsGUI::class, $cmd);
395 // no break
397 $this->ctrl->redirectByClass(ilObjLearningSequenceContentGUI::class, $cmd);
398 // no break
401 $this->ctrl->redirectByClass(ilLearningSequenceMembershipGUI::class, $cmd);
402 // no break
404 $this->unparticipate();
405 // no break
406 case self::CMD_CANCEL:
407 if ($this->getCreationMode()) {
408 $this->cancelCreation();
409 }
410 break;
412 $this->removeFromDeskObject();
413 $this->view();
414 break;
416 $this->addToDeskObject();
417 $this->view();
418 break;
419 case self::CMD_CUT:
420 $this->cutObject();
421 break;
422 case self::CMD_COPY:
423 $this->copyObject();
424 break;
426 $this->showPasteTreeObject();
427 break;
430 break;
431 case self::CMD_LINK:
432 $this->linkObject();
433 break;
434 case self::CMD_DELETE:
435 $this->deleteObject();
436 break;
438 $this->confirmedDeleteObject();
439 break;
442 break;
444 $this->trashObject();
445 break;
447 $this->undeleteObject();
448 break;
449
453 $this->view();
454 break;
455
456 case self::CMD_SAVE:
457 case self::CMD_CREATE:
458 $this->$cmd();
459 break;
460
463 break;
464
465 // This is a temporary implementation (Mantis Ticket 36631)
467 $tpl->setOnScreenMessage("failure", $this->lng->txt('lso_multidownload_not_available'), false);
468 $this->manageContent();
469 break;
470
471 default:
472 throw new ilException("ilObjLearningSequenceGUI: Invalid command '$cmd'");
473 }
474 break;
475 default:
476 throw new ilException("ilObjLearningSequenceGUI: Can't forward to next class $next_class");
477 }
478
479 if (!$in_player) {
480 $this->addHeaderAction();
481 }
482
483 // This is the base class for the call, so we ought to print.
484 // TODO: This is super fishy and most probably hints on the fact, that
485 // something regarding that base class usage needs to change.
486 if (strtolower($this->request_wrapper->retrieve("baseClass", $this->refinery->kindlyTo()->string())) === strtolower(self::class)) {
487 $tpl->printToStdOut();
488 }
489 }
@ EXTRO
Definition: LSOPageType.php:24
$out
Definition: buildRTE.php:24
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
ILIAS Container InternalGUIService $gui
trashObject()
Show trash content of object.
cutObject()
cut object(s) out from a container and write the information to clipboard @access public
undeleteObject(?int $trash_id=null)
Get objects back from trash.
copyObject()
Copy object(s) out from a container and write the information to clipboard It is not possible to copy...
linkObject()
create an new reference of an object in tree it's like a hard link of unix
Base class for ILIAS Exception handling.
Export User Interface Class.
guardForwardAccess(string|false $next_class)
setEditTabs(string $active_tab="settings_misc")
redirectForeignItemToRepository(?string $next_class, ?string $cmd)
Links to items of the sequence may be routed through this class, while ref_id already points to the i...
GUI class for the workflow of copying objects.
confirmedDeleteObject()
confirmed deletion of object -> objects are moved to trash or deleted immediately,...
cancelCreation()
cancel create action and go back to repository parent
ilGlobalTemplateInterface $tpl
deleteObject(bool $error=false)
Display deletion confirmation screen.
addHeaderAction()
Add header action menu.
redrawHeaderActionObject()
Ajax call: redraw action header only.
Class ilObjectMetaDataGUI.
setPermanentLink(string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
Generates and sets a permanent ilias link.
setOnScreenMessage(string $type, string $a_txt, bool $a_keep=false)
Set a message to be displayed to the user.
setContent(string $a_html)
Sets content for standard template.

References ilContainerGUI\$gui, $out, ilObjectGUI\$tpl, addContentStyleCss(), ilObjectGUI\addHeaderAction(), addSubTabsForContent(), ilDesktopItemHandling\addToDeskObject(), addToNavigationHistory(), ilObjectGUI\cancelCreation(), checkAccess(), CMD_ADD_TO_DESK, CMD_CANCEL, CMD_CANCEL_CUT, CMD_CANCEL_DELETE, CMD_CANCEL_LINK, CMD_CONTENT, CMD_COPY, CMD_CREATE, CMD_CUT, CMD_CUT_CLIPBOARD, CMD_CUT_SHOWTREE, CMD_DELETE, CMD_DELETE_CONFIRMED, CMD_ENABLE_ADMINISTRATION_PANEL, CMD_IMPORT, CMD_INFO, CMD_INFO_SCREEN, CMD_LEARNER_VIEW, CMD_LINK, CMD_MEMBERS, CMD_MEMBERS_GALLERY, CMD_PERFORM_PASTE, CMD_REDRAW_HEADER, CMD_REMOVE_FROM_DESK, CMD_SAVE, CMD_SETTINGS, CMD_SHOW_TRASH, CMD_UNDELETE, CMD_UNPARTICIPATE, CMD_VIEW, ilObjectGUI\confirmedDeleteObject(), ilContainerGUI\copyObject(), ILIAS\Repository\ctrl(), ilContainerGUI\cutObject(), ilObjectGUI\deleteObject(), EXTRO, ilObjectGUI\getCreationMode(), getGUIConditions(), getGUIInfo(), getGUILearnerView(), getGUILearningProgress(), getGUIManageContent(), getGUIMembers(), getGUIPermissions(), getGUISettings(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), guardForwardAccess(), ilContainerGUI\keepObjectsInClipboardObject(), ilContainerGUI\linkObject(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), redirectForeignItemToRepository(), ilObjectGUI\redrawHeaderActionObject(), ilDesktopItemHandling\removeFromDeskObject(), ilObjectGUI\routeImportCmdObject(), ILIAS\UICore\GlobalTemplate\setContent(), setEditTabs(), ILIAS\UICore\GlobalTemplate\setOnScreenMessage(), ILIAS\UICore\GlobalTemplate\setPermanentLink(), ilContainerGUI\showPasteTreeObject(), TAB_EDIT_EXTRO, TAB_EDIT_INTRO, ILIAS\Repository\tabs(), ilContainerGUI\trashObject(), ilContainerGUI\undeleteObject(), unparticipate(), and view().

+ Here is the call graph for this function:

◆ forwardByClass()

static ilObjLearningSequenceGUI::forwardByClass ( string  $base_class,
array  $classes,
array  $params,
string  $cmd = '' 
)
staticprotected

Definition at line 190 of file class.ilObjLearningSequenceGUI.php.

190 : void
191 {
192 global $DIC;
193 $ctrl = $DIC->ctrl();
194 $target_class = end($classes);
195
196 $ctrl->setTargetScript('ilias.php');
197 foreach ($params as $key => $value) {
198 $ctrl->setParameterByClass($target_class, $key, $value);
199 }
200
201 // insert the baseclass to the first position.
202 array_splice($classes, 0, 0, $base_class);
203 $ctrl->redirectByClass($classes, $cmd);
204 }
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc
setTargetScript(string $a_target_script)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc

References ilObjectGUI\$ctrl, $DIC, ilCtrl\redirectByClass(), ilCtrl\setParameterByClass(), and ilCtrl\setTargetScript().

Referenced by _goto().

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

◆ getAdditionalOKTypes()

ilObjLearningSequenceGUI::getAdditionalOKTypes ( )
protected

append additional types to ilRepositoryExplorerGUI's positive list

Returns
int[]|string[]

Definition at line 1052 of file class.ilObjLearningSequenceGUI.php.

1052 : array
1053 {
1054 return array_filter(
1055 array_keys($this->obj_definition->getSubObjects('lso', false)),
1056 fn($type) => $type !== 'rolf'
1057 );
1058 }

References ilObjectGUI\$type.

◆ getClassForTabs()

ilObjLearningSequenceGUI::getClassForTabs ( string  $cmd)
protected

Definition at line 994 of file class.ilObjLearningSequenceGUI.php.

994 : string
995 {
996 switch ($cmd) {
998 return 'ilObjLearningSequenceContentGUI';
1000 return 'ilObjLearningSequenceLearnerGUI';
1001 case self::CMD_SETTINGS:
1002 return 'ilObjLearningSequenceSettingsGUI';
1003 case self::CMD_INFO:
1004 return 'ilInfoScreenGUI';
1006 return 'ilPermissionGUI';
1007 }
1008
1009 throw new InvalidArgumentException('cannot resolve class for command: ' . $cmd);
1010 }

References CMD_CONTENT, CMD_INFO, CMD_LEARNER_VIEW, CMD_PERMISSIONS, and CMD_SETTINGS.

Referenced by getLinkTarget().

+ Here is the caller graph for this function:

◆ getGUIConditions()

ilObjLearningSequenceGUI::getGUIConditions ( )
protected

Definition at line 589 of file class.ilObjLearningSequenceGUI.php.

590 {
592 $this,
593 $this->ctrl,
594 $this->tpl,
595 $this->lng,
596 $this->access,
597 $this->request_wrapper,
598 $this->post_wrapper,
599 $this->ui_factory,
600 $this->ui_renderer,
601 $this->request,
602 $this->refinery,
603 $this->object->getDI()["conditions.factory"],
604 $this->object->getDI()["conditions.handler"],
605 );
606 }
@ilCtrl_isCalledBy ilObjLearningSequenceConditionsGUI: ilObjLearningSequenceContentGUI

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

Referenced by executeCommand().

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

◆ getGUIInfo()

ilObjLearningSequenceGUI::getGUIInfo ( )
protected

Definition at line 510 of file class.ilObjLearningSequenceGUI.php.

511 {
512 $info = new ilInfoScreenGUI($this);
513 $info->addMetaDataSections($this->object->getId(), 0, 'lso');
515
516 return $info;
517 }
Class ilInfoScreenGUI.
addAdvancedMetaDataToInfo(ilInfoScreenGUI $info)

References $info, addAdvancedMetaDataToInfo(), and ILIAS\Repository\object().

Referenced by executeCommand().

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

◆ getGUILearnerView()

ilObjLearningSequenceGUI::getGUILearnerView ( )
protected

Definition at line 608 of file class.ilObjLearningSequenceGUI.php.

609 {
610 return $this->object->getLocalDI()["gui.learner"];
611 }
@ilCtrl_Calls ilObjLearningSequenceLearnerGUI: ilCommonActionDispatcherGUI

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ getGUILearningProgress()

ilObjLearningSequenceGUI::getGUILearningProgress ( )
protected

Definition at line 630 of file class.ilObjLearningSequenceGUI.php.

631 {
632 $for_user = $this->user->getId();
633 if ($this->request_wrapper->has("user_id")) {
634 $for_user = $this->request_wrapper->retrieve("user_id", $this->refinery->kindlyTo()->int());
635 }
636 return new ilLearningProgressGUI(
638 $this->getObject()->getRefId(),
639 $for_user
640 );
641 }
Class ilObjUserTrackingGUI.

References ilObjectGUI\getObject(), ilObjectGUI\getRefId(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, ILIAS\Repository\refinery(), and ILIAS\Repository\user().

Referenced by executeCommand().

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

◆ getGUIManageContent()

ilObjLearningSequenceGUI::getGUIManageContent ( )
protected

Definition at line 569 of file class.ilObjLearningSequenceGUI.php.

570 {
572 $this,
573 $this->ctrl,
574 $this->tpl,
575 $this->lng,
576 $this->access,
577 new ilConfirmationGUI(),
578 new LSItemOnlineStatus(),
579 $this->request_wrapper,
580 $this->post_wrapper,
581 $this->refinery,
582 $this->ui_factory,
583 $this->ui_renderer,
584 $this->request,
585 $this->refinery,
586 );
587 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

Referenced by executeCommand().

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

◆ getGUIMembers()

ilObjLearningSequenceGUI::getGUIMembers ( )
protected

Definition at line 613 of file class.ilObjLearningSequenceGUI.php.

614 {
616 $this,
617 $this->getObject(),
618 $this->getTrackingObject(),
620 $this->rbac_review,
621 $this->settings,
622 $this->toolbar,
623 $this->request_wrapper,
624 $this->post_wrapper,
625 $this->refinery,
626 $this->ui_factory
627 );
628 }
GUI class for learning sequence membership features.

References ilPrivacySettings\getInstance(), ilObjectGUI\getObject(), getTrackingObject(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), and ILIAS\Repository\toolbar().

Referenced by executeCommand().

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

◆ getGUIPermissions()

ilObjLearningSequenceGUI::getGUIPermissions ( )
protected

Definition at line 533 of file class.ilObjLearningSequenceGUI.php.

534 {
535 return new ilPermissionGUI($this);
536 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ getGUISettings()

ilObjLearningSequenceGUI::getGUISettings ( )
protected

Definition at line 538 of file class.ilObjLearningSequenceGUI.php.

539 {
541 $this->getObject(),
542 $this->ctrl,
543 $this->lng,
544 $this->tpl,
545 $this->refinery,
546 $this->ui_factory,
547 $this->ui_renderer,
548 $this->request,
549 $this->user,
550 $this->data_factory
551 );
552 }

References ILIAS\Repository\ctrl(), ilObjectGUI\getObject(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().

Referenced by executeCommand().

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

◆ getLinkTarget()

ilObjLearningSequenceGUI::getLinkTarget ( string  $cmd)
protected

Build the link target relative to the current ilCtrl context.

An absolute class path starting with ilObjLearningSequenceGUI would make it the baseClass and thus drop the repository context (e.g. the member view mode info is only provided in the repository context).

Definition at line 989 of file class.ilObjLearningSequenceGUI.php.

989 : string
990 {
991 return $this->ctrl->getLinkTargetByClass($this->getClassForTabs($cmd), $cmd);
992 }

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

+ Here is the call graph for this function:

◆ getLocalRoles()

ilObjLearningSequenceGUI::getLocalRoles ( )
Returns
array [role_id => title]

Definition at line 1030 of file class.ilObjLearningSequenceGUI.php.

1030 : array
1031 {
1032 $local_roles = $this->object->getLocalLearningSequenceRoles();
1033 $lso_member = $this->object->getDefaultMemberRole();
1034 $lso_roles = array();
1035
1036 if (in_array($lso_member, $local_roles)) {
1037 $lso_roles[$lso_member] = ilObjRole::_getTranslation(array_search($lso_member, $local_roles));
1038 unset($local_roles[$lso_roles[$lso_member]]);
1039 }
1040
1041 foreach ($local_roles as $title => $role_id) {
1042 $lso_roles[$role_id] = ilObjRole::_getTranslation($title);
1043 }
1044
1045 return $lso_roles;
1046 }
static _getTranslation(string $a_role_title)

References ilObjRole\_getTranslation().

+ Here is the call graph for this function:

◆ getSubServices()

◆ getTabs()

ilObjLearningSequenceGUI::getTabs ( )
protected

@abstract overwrite in derived GUI class of your object type

Reimplemented from ilContainerGUI.

Definition at line 788 of file class.ilObjLearningSequenceGUI.php.

788 : void
789 {
790 if ($this->checkAccess("read")) {
791 $cmd = $this->checkAccess("write") ? self::CMD_CONTENT : self::CMD_VIEW;
792 $this->tabs->addTab(
793 self::TAB_CONTENT_MAIN,
794 $this->lng->txt(self::TAB_CONTENT_MAIN),
795 $this->ctrl->getLinkTarget($this, $cmd, "", false, false)
796 );
797 }
798
799 if ($this->checkAccess("read") || $this->checkAccess("visible")) {
800 $this->tabs->addTab(
801 self::TAB_INFO,
802 $this->lng->txt(self::TAB_INFO),
803 $this->getLinkTarget(self::CMD_INFO)
804 );
805 }
806
807 if ($this->checkAccess("write")) {
808 $this->tabs->addTab(
809 self::TAB_SETTINGS,
810 $this->lng->txt(self::TAB_SETTINGS),
811 $this->getLinkTarget(self::CMD_SETTINGS)
812 );
813
814 // metadata
815 $mdgui = new ilObjectMetaDataGUI($this->object);
816 $mdtab = $mdgui->getTab();
817 if ($mdtab) {
818 $this->tabs->addTab(
819 "meta_data",
820 $this->lng->txt("meta_data"),
821 $mdtab
822 );
823 }
824 }
825
826 if ($this->checkAccess("read")) {
827 $cmd = null;
828 if ($this->checkAccess("manage_members")) {
829 $cmd = self::CMD_MEMBERS;
830 } elseif (
831 $this->getObject()->getLSSettings()->getMembersGallery()
832 && $this->getObject()->getLSRoles()->isMember($this->user->getId())
833 ) {
835 }
836
837 if ($cmd) {
838 $this->tabs->addTab(
839 self::TAB_MEMBERS,
840 $this->lng->txt(self::TAB_MEMBERS),
841 $this->ctrl->getLinkTarget($this, $cmd, "", false, false)
842 );
843 }
844 }
845
847 $this->tabs->addTab(
848 self::TAB_LP,
849 $this->lng->txt(self::TAB_LP),
850 $this->ctrl->getLinkTargetByClass(ilLearningProgressGUI::class, '')
851 );
852 }
853
854 if ($this->checkAccess("write")) {
855 $this->tabs->addTab(
856 self::TAB_EXPORT,
857 $this->lng->txt(self::TAB_EXPORT),
858 $this->ctrl->getLinkTargetByClass("ilexportgui", "")
859 );
860 }
861
862 if ($this->checkAccess("edit_permission")) {
863 $this->tabs->addTab(
864 self::TAB_PERMISSIONS,
865 $this->lng->txt(self::TAB_PERMISSIONS),
866 $this->getLinkTarget(self::CMD_PERMISSIONS)
867 );
868 }
869 }

References ilObjUserTracking\_enabledLearningProgress(), checkAccess(), checkLPAccess(), CMD_CONTENT, CMD_MEMBERS, CMD_MEMBERS_GALLERY, CMD_VIEW, ilObjectGUI\getObject(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ getTrackingObject()

ilObjLearningSequenceGUI::getTrackingObject ( )
protected

Definition at line 1022 of file class.ilObjLearningSequenceGUI.php.

1023 {
1024 return new ilObjUserTracking();
1025 }

Referenced by getGUIMembers().

+ Here is the caller graph for this function:

◆ guardForwardAccess()

ilObjLearningSequenceGUI::guardForwardAccess ( string|false  $next_class)
protected

Definition at line 932 of file class.ilObjLearningSequenceGUI.php.

932 : void
933 {
934 if ($next_class === false) {
935 return;
936 }
937
938 switch ($next_class) {
939 case 'ilpermissiongui':
940 $this->assertAccessOrRedirect('edit_permission');
941 break;
942
943 case 'ilobjlearningsequencesettingsgui':
944 case 'ilobjlearningsequencecontentgui':
945 case 'ilobjlearningsequenceconditionsgui':
946 case 'ilexportgui':
947 case 'ilobjectmetadatagui':
948 case 'iltaxonomysettingsgui':
949 case 'ilobjtaxonomygui':
950 case 'ilobjlearningsequenceeditintrogui':
951 case 'ilobjlearningsequenceeditextrogui':
952 $this->assertAccessOrRedirect('write');
953 break;
954 }
955 }

References assertAccessOrRedirect().

Referenced by executeCommand().

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

◆ hasAccess()

static ilObjLearningSequenceGUI::hasAccess ( string  $mode,
int  $id 
)
staticprotected

Definition at line 184 of file class.ilObjLearningSequenceGUI.php.

184 : bool
185 {
186 global $DIC;
187 return $DIC->access()->checkAccess($mode, '', $id);
188 }

References $DIC, and ilObjectGUI\$id.

Referenced by isAccessible().

+ Here is the caller graph for this function:

◆ initCreateForm()

ilObjLearningSequenceGUI::initCreateForm ( string  $new_type)
protected

Reimplemented from ilObjectGUI.

Definition at line 648 of file class.ilObjLearningSequenceGUI.php.

648 : StandardForm|ilPropertyFormGUI|array
649 {
650 $form = parent::initCreateForm($new_type);
651
652 if ($form instanceof StandardForm) {
653 global $DIC;
654 $if = $DIC->ui()->factory()->input();
655 $lso_mode = $if->field()->radio($this->lng->txt('lso_mode'), $this->lng->txt('lso_mode_info'))
656 ->withOption(
658 $this->lng->txt('lso_mode_linear'),
659 $this->lng->txt('lso_mode_linear_info')
660 )
661 ->withOption(
663 $this->lng->txt('lso_mode_adaptive'),
664 $this->lng->txt('lso_mode_adaptive_info')
665 )
666 ->withByline($this->lng->txt('lso_mode_byline'))
667 ->withValue((string) ilLearningSequenceSettings::MODE_LINEAR);
668
669 $inputs = $form->getInputs();
671
672 return $DIC->ui()->factory()->input()->container()->form()->standard(
673 $form->getPostURL(),
674 $inputs
675 );
676 }
677
678 return $form;
679 }
This class represents a property form user interface.

References $DIC, ilContainerGUI\$form, ILIAS\UI\Implementation\Component\Input\$inputs, ILIAS\Repository\lng(), ilLearningSequenceSettings\MODE_ADAPTIVE, ilLearningSequenceSettings\MODE_LINEAR, and ilObjLearningSequenceSettingsGUI\PROP_LSO_MODE.

Referenced by afterSave().

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

◆ initDidacticTemplate()

ilObjLearningSequenceGUI::initDidacticTemplate ( ilPropertyFormGUI  $form)
protected
Deprecated:
ILIAS 11 This will be removed with the next version

Reimplemented from ilObjectGUI.

Definition at line 643 of file class.ilObjLearningSequenceGUI.php.

644 {
645 return $form;
646 }

References ilContainerGUI\$form.

◆ initHeaderAction()

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

Initializes the header action for the object list GUI with optional subtype and sub-ID.

Disables multi-download functionality for the object list GUI if initialized.

Parameters
string | null$sub_typeOptional subtype identifier.
int | null$sub_idOptional sub-ID.
Returns
ilObjectListGUI|null Returns the initialized object list GUI instance or null.

Reimplemented from ilObjectGUI.

Definition at line 766 of file class.ilObjLearningSequenceGUI.php.

767 {
768 $lg = parent::initHeaderAction($sub_type, $sub_id);
769 if (is_object($lg)) {
770 $lg->enableMultiDownload(false);
771 }
772 return $lg;
773 }

◆ isAccessible()

static ilObjLearningSequenceGUI::isAccessible ( int  $id)
staticprotected

Definition at line 175 of file class.ilObjLearningSequenceGUI.php.

175 : bool
176 {
177 return $id > 0 && (
178 self::hasAccess(self::ACCESS_READ, $id) ||
179 self::hasAccess(self::ACCESS_VISIBLE, $id) ||
180 self::hasAccess(self::ACCESS_READ, ROOT_FOLDER_ID)
181 );
182 }
static hasAccess(string $mode, int $id)

References ilObjectGUI\$id, hasAccess(), and ROOT_FOLDER_ID.

+ Here is the call graph for this function:

◆ recordLearningSequenceRead()

ilObjLearningSequenceGUI::recordLearningSequenceRead ( )
protected

Definition at line 246 of file class.ilObjLearningSequenceGUI.php.

246 : void
247 {
249 $this->object->getType(),
250 $this->object->getRefId(),
251 $this->object->getId(),
252 $this->user->getId()
253 );
254 }
static _recordReadEvent(string $a_type, int $a_ref_id, int $obj_id, int $usr_id, $a_ext_rc=null, $a_ext_time=null)

References ilChangeEvent\_recordReadEvent(), and ILIAS\Repository\object().

Referenced by view().

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

◆ redirectForeignItemToRepository()

ilObjLearningSequenceGUI::redirectForeignItemToRepository ( ?string  $next_class,
?string  $cmd 
)
protected

Links to items of the sequence may be routed through this class, while ref_id already points to the item.

Redirect before any output is prepared, since $this->object is not a learning sequence then. Handles the @ilCtrl_Calls targets ilObjIndividualAssessmentGUI and ilObjTestGUI, which therefore have no case in executeCommand().

Definition at line 918 of file class.ilObjLearningSequenceGUI.php.

918 : void
919 {
920 $struct = match ($next_class) {
921 'ilobjindividualassessmentgui' => $cmd === 'edit'
922 ? ['ilrepositorygui', 'ilobjindividualassessmentgui', 'ilindividualassessmentsettingsgui']
923 : ['ilrepositorygui', 'ilobjindividualassessmentgui'],
924 'ilobjtestgui' => ['ilrepositorygui', 'ilobjtestgui'],
925 default => null,
926 };
927 if ($struct !== null) {
928 $this->ctrl->redirectByClass($struct, $cmd);
929 }
930 }

References ILIAS\Repository\ctrl().

Referenced by executeCommand().

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

◆ save()

ilObjLearningSequenceGUI::save ( )
protected

Definition at line 686 of file class.ilObjLearningSequenceGUI.php.

686 : void
687 {
688 parent::saveObject();
689 }

◆ setEditTabs()

ilObjLearningSequenceGUI::setEditTabs ( string  $active_tab = "settings_misc")
protected

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

776 : void
777 {
778 $this->tabs->addSubTab(
779 "settings_misc",
780 $this->lng->txt("general"),
781 $this->ctrl->getLinkTargetByClass("ilobjlearningsequencesettingsgui", "settings")
782 );
783
784 $this->tabs->activateTab(self::TAB_SETTINGS);
785 $this->tabs->activateSubTab($active_tab);
786 }

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

Referenced by executeCommand().

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

◆ showPossibleSubObjects()

ilObjLearningSequenceGUI::showPossibleSubObjects ( )

show possible sub objects (pull down menu)

Reimplemented from ilContainerGUI.

Definition at line 1087 of file class.ilObjLearningSequenceGUI.php.

1087 : void
1088 {
1089 $this->ctrl->setParameterByClass(ilRepositoryGUI::class, 'ref_id', $this->ref_id);
1092 $this->getCreatableObjectTypes(),
1093 ilRepositoryGUI::class,
1094 $this->ref_id
1095 )
1096 );
1097 $gui->renderToolbarAction();
1098 $this->ctrl->clearParametersByClass(ilRepositoryGUI::class);
1099 }
Render add new item selector.
buildAddNewItemElements(array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)

References ilContainerGUI\$gui, ilObjectGUI\buildAddNewItemElements(), ILIAS\Repository\ctrl(), and ilObjectGUI\getCreatableObjectTypes().

+ Here is the call graph for this function:

◆ unparticipate()

ilObjLearningSequenceGUI::unparticipate ( )

Definition at line 734 of file class.ilObjLearningSequenceGUI.php.

734 : void
735 {
736 if ($this->checkAccess('read')) {
737 $usr_id = $this->user->getId();
738 if ($this->getObject()->getLSRoles()->isMember($usr_id)) {
739 $this->getObject()->getLSRoles()->leave($usr_id);
740 }
741 }
742 $this->ctrl->redirectByClass('ilObjLearningSequenceLearnerGUI', self::CMD_LEARNER_VIEW);
743 }

References checkAccess(), ILIAS\Repository\ctrl(), ilObjectGUI\getObject(), and ILIAS\Repository\user().

Referenced by executeCommand().

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

◆ view()

ilObjLearningSequenceGUI::view ( )
protected

Definition at line 554 of file class.ilObjLearningSequenceGUI.php.

554 : void
555 {
557 $this->tabs->clearSubTabs();
558
559 $cmd = self::CMD_INFO;
560 if ($this->checkAccess("write")) {
561 $cmd = self::CMD_CONTENT;
562 $this->ctrl->redirectByClass(ilObjLearningSequenceContentGUI::class, $cmd);
563 } elseif ($this->checkAccess("read")) {
565 $this->ctrl->redirectByClass(ilObjLearningSequenceLearnerGUI::class, $cmd);
566 }
567 }

References checkAccess(), CMD_CONTENT, CMD_INFO, CMD_LEARNER_VIEW, ILIAS\Repository\ctrl(), recordLearningSequenceRead(), and ILIAS\Repository\tabs().

Referenced by executeCommand().

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

Field Documentation

◆ $content_style

ILIAS Style Content Service ilObjLearningSequenceGUI::$content_style
protected

Definition at line 115 of file class.ilObjLearningSequenceGUI.php.

◆ $data_factory

Data Factory ilObjLearningSequenceGUI::$data_factory
protected

Definition at line 123 of file class.ilObjLearningSequenceGUI.php.

◆ $help

ilHelpGUI ilObjLearningSequenceGUI::$help
protected

Definition at line 120 of file class.ilObjLearningSequenceGUI.php.

◆ $navigation_history

ilNavigationHistory ilObjLearningSequenceGUI::$navigation_history
protected

Definition at line 117 of file class.ilObjLearningSequenceGUI.php.

◆ $obj_service

ilObjectService ilObjLearningSequenceGUI::$obj_service
protected

Definition at line 118 of file class.ilObjLearningSequenceGUI.php.

◆ $post_wrapper

ArrayBasedRequestWrapper ilObjLearningSequenceGUI::$post_wrapper
protected

Definition at line 126 of file class.ilObjLearningSequenceGUI.php.

◆ $profile

Profile ilObjLearningSequenceGUI::$profile
protected

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

◆ $query_wrapper

ArrayBasedRequestWrapper ilObjLearningSequenceGUI::$query_wrapper
protected

Definition at line 125 of file class.ilObjLearningSequenceGUI.php.

◆ $rbac_review

ilRbacReview ilObjLearningSequenceGUI::$rbac_review
protected

Definition at line 119 of file class.ilObjLearningSequenceGUI.php.

◆ $refinery

ILIAS Refinery Factory ilObjLearningSequenceGUI::$refinery
protected

Definition at line 127 of file class.ilObjLearningSequenceGUI.php.

◆ $request

Psr Http Message ServerRequestInterface ilObjLearningSequenceGUI::$request
protected

Definition at line 128 of file class.ilObjLearningSequenceGUI.php.

Referenced by _goto().

◆ $request_wrapper

ILIAS HTTP Wrapper RequestWrapper ilObjLearningSequenceGUI::$request_wrapper
protected

Definition at line 124 of file class.ilObjLearningSequenceGUI.php.

◆ $ui_factory

ILIAS UI Factory ilObjLearningSequenceGUI::$ui_factory
protected

Definition at line 121 of file class.ilObjLearningSequenceGUI.php.

◆ $ui_renderer

ILIAS UI Renderer ilObjLearningSequenceGUI::$ui_renderer
protected

Definition at line 122 of file class.ilObjLearningSequenceGUI.php.

◆ ACCESS_READ

const ilObjLearningSequenceGUI::ACCESS_READ = 'read'

Definition at line 113 of file class.ilObjLearningSequenceGUI.php.

◆ ACCESS_VISIBLE

const ilObjLearningSequenceGUI::ACCESS_VISIBLE = 'visible'

Definition at line 114 of file class.ilObjLearningSequenceGUI.php.

◆ CMD_ADD_TO_DESK

const ilObjLearningSequenceGUI::CMD_ADD_TO_DESK = "addToDesk"

Definition at line 78 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_CANCEL

const ilObjLearningSequenceGUI::CMD_CANCEL = "cancel"

Definition at line 76 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_CANCEL_CUT

const ilObjLearningSequenceGUI::CMD_CANCEL_CUT = "cancelCut"

Definition at line 84 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_CANCEL_DELETE

const ilObjLearningSequenceGUI::CMD_CANCEL_DELETE = "cancelDelete"

Definition at line 88 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_CANCEL_LINK

const ilObjLearningSequenceGUI::CMD_CANCEL_LINK = "cancelMoveLink"

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

Referenced by executeCommand().

◆ CMD_CONTENT

const ilObjLearningSequenceGUI::CMD_CONTENT = "manageContent"

◆ CMD_COPY

const ilObjLearningSequenceGUI::CMD_COPY = "copy"

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

Referenced by executeCommand().

◆ CMD_CREATE

const ilObjLearningSequenceGUI::CMD_CREATE = "create"

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

Referenced by executeCommand().

◆ CMD_CUT

const ilObjLearningSequenceGUI::CMD_CUT = "cut"

◆ CMD_CUT_CLIPBOARD

const ilObjLearningSequenceGUI::CMD_CUT_CLIPBOARD = "keepObjectsInClipboard"

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

Referenced by executeCommand().

◆ CMD_CUT_SHOWTREE

const ilObjLearningSequenceGUI::CMD_CUT_SHOWTREE = "showPasteTree"

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

Referenced by executeCommand().

◆ CMD_DELETE

const ilObjLearningSequenceGUI::CMD_DELETE = "delete"

Definition at line 87 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_DELETE_CONFIRMED

const ilObjLearningSequenceGUI::CMD_DELETE_CONFIRMED = "confirmedDelete"

Definition at line 89 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_ENABLE_ADMINISTRATION_PANEL

const ilObjLearningSequenceGUI::CMD_ENABLE_ADMINISTRATION_PANEL = "enableAdministrationPanel"

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

Referenced by executeCommand().

◆ CMD_EXPORT

const ilObjLearningSequenceGUI::CMD_EXPORT = "export"

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

◆ CMD_IMPORT

const ilObjLearningSequenceGUI::CMD_IMPORT = "routeImportCmd"

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

Referenced by executeCommand().

◆ CMD_INFO

const ilObjLearningSequenceGUI::CMD_INFO = "showSummary"

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

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

◆ CMD_INFO_SCREEN

const ilObjLearningSequenceGUI::CMD_INFO_SCREEN = "infoScreen"

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

Referenced by executeCommand().

◆ CMD_LEARNER_VIEW

const ilObjLearningSequenceGUI::CMD_LEARNER_VIEW = "learnerView"

◆ CMD_LINK

const ilObjLearningSequenceGUI::CMD_LINK = "link"

◆ CMD_MANAGE_MEMBERS

const ilObjLearningSequenceGUI::CMD_MANAGE_MEMBERS = "participants"

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

◆ CMD_MEMBERS

const ilObjLearningSequenceGUI::CMD_MEMBERS = "members"

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

Referenced by executeCommand(), and getTabs().

◆ CMD_MEMBERS_GALLERY

const ilObjLearningSequenceGUI::CMD_MEMBERS_GALLERY = "jump2UsersGallery"

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

Referenced by executeCommand(), and getTabs().

◆ CMD_PERFORM_PASTE

const ilObjLearningSequenceGUI::CMD_PERFORM_PASTE = 'performPasteIntoMultipleObjects'

Definition at line 90 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_PERMISSIONS

const ilObjLearningSequenceGUI::CMD_PERMISSIONS = "perm"

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

Referenced by getClassForTabs().

◆ CMD_REDRAW_HEADER

const ilObjLearningSequenceGUI::CMD_REDRAW_HEADER = 'redrawHeaderAction'

Definition at line 93 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_REMOVE_FROM_DESK

const ilObjLearningSequenceGUI::CMD_REMOVE_FROM_DESK = "removeFromDesk"

Definition at line 79 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_SAVE

const ilObjLearningSequenceGUI::CMD_SAVE = "save"

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

Referenced by executeCommand().

◆ CMD_SETTINGS

const ilObjLearningSequenceGUI::CMD_SETTINGS = "settings"

◆ CMD_SHOW_TRASH

const ilObjLearningSequenceGUI::CMD_SHOW_TRASH = 'trash'

Definition at line 91 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_UNDELETE

const ilObjLearningSequenceGUI::CMD_UNDELETE = 'undelete'

Definition at line 92 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_UNPARTICIPATE

const ilObjLearningSequenceGUI::CMD_UNPARTICIPATE = "unparticipate"

Definition at line 77 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_VIEW

◆ MAIL_ALLOWED_ALL

const ilObjLearningSequenceGUI::MAIL_ALLOWED_ALL = 1

Definition at line 110 of file class.ilObjLearningSequenceGUI.php.

◆ MAIL_ALLOWED_TUTORS

const ilObjLearningSequenceGUI::MAIL_ALLOWED_TUTORS = 2

Definition at line 111 of file class.ilObjLearningSequenceGUI.php.

◆ TAB_CONTENT_MAIN

const ilObjLearningSequenceGUI::TAB_CONTENT_MAIN = "manage_content_maintab"

◆ TAB_EDIT_EXTRO

const ilObjLearningSequenceGUI::TAB_EDIT_EXTRO = "edit_extropage"

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

Referenced by executeCommand().

◆ TAB_EDIT_INTRO

const ilObjLearningSequenceGUI::TAB_EDIT_INTRO = "edit_intropage"

Definition at line 106 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ TAB_EXPORT

const ilObjLearningSequenceGUI::TAB_EXPORT = "export"

Definition at line 104 of file class.ilObjLearningSequenceGUI.php.

◆ TAB_INFO

const ilObjLearningSequenceGUI::TAB_INFO = "show_summary"

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

◆ TAB_LP

const ilObjLearningSequenceGUI::TAB_LP = "learning_progress"

Definition at line 103 of file class.ilObjLearningSequenceGUI.php.

◆ TAB_MANAGE

const ilObjLearningSequenceGUI::TAB_MANAGE = "manage"

Definition at line 97 of file class.ilObjLearningSequenceGUI.php.

◆ TAB_MEMBERS

const ilObjLearningSequenceGUI::TAB_MEMBERS = "members"

Definition at line 102 of file class.ilObjLearningSequenceGUI.php.

◆ TAB_PERMISSIONS

const ilObjLearningSequenceGUI::TAB_PERMISSIONS = "perm_settings"

Definition at line 101 of file class.ilObjLearningSequenceGUI.php.

◆ TAB_SETTINGS

const ilObjLearningSequenceGUI::TAB_SETTINGS = "settings"

Definition at line 100 of file class.ilObjLearningSequenceGUI.php.

◆ TAB_VIEW_CONTENT

const ilObjLearningSequenceGUI::TAB_VIEW_CONTENT = "view"

Definition at line 96 of file class.ilObjLearningSequenceGUI.php.


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