ILIAS  release_7 Revision v7.30-3-g800a261c036
ilObjLearningSequenceGUI Class Reference

Class ilObjLearningSequenceGUI. More...

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

Public Member Functions

 __construct ()
 
 executeCommand ()
 execute command note: this method is overwritten in all container objects More...
 
 addToNavigationHistory ()
 
 unparticipate ()
 
 getTabs ()
 common tabs for all container objects (should be called at the end of child getTabs() method More...
 
 renderObject ()
 render the object More...
 
 createMailSignature ()
 
 getObject ()
 
 getLocalRoles ()
 
 addCustomData ($a_data)
 
- Public Member Functions inherited from ilContainerGUI
 __construct ($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor @access public. More...
 
 executeCommand ()
 execute command note: this method is overwritten in all container objects More...
 
 forwardToStyleSheet ()
 Forward to style object. More...
 
forwardToPageObject ()
 forward command to page object More...
 
 addPageTabs ()
 Add page tabs. More...
 
 getContainerPageHTML ()
 Get container page HTML. More...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 showTreeFlatIcon ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 showPossibleSubObjects ()
 show possible sub objects selection list More...
 
 getContentGUI ()
 Get content gui object. More...
 
 renderObject ()
 render the object More...
 
 renderBlockAsynchObject ()
 render the object More...
 
 setContentSubTabs ()
 Set content sub tabs. More...
 
 showAdministrationPanel ()
 show administration panel More...
 
 __showTimingsButton (&$tpl)
 
 showPermanentLink ()
 show permanent link More...
 
 switchToStdEditorObject ()
 Switch to standard page editor. More...
 
 switchToOldEditorObject ()
 Switch to old page editor. More...
 
 useNewEditorObject ()
 Use new editor (-> delete xhtml content page) More...
 
 editPageFrameObject ()
 show page editor frameset More...
 
 editPageContentObject ()
 edit page content (for repository root node and categories) More...
 
 savePageContentObject ()
 
 cancelPageContentObject ()
 
 showLinkListObject ()
 
 clearAdminCommandsDetermination ()
 cleaer administration commands determination More...
 
newBlockTemplate ()
 determin admin commands More...
 
 addHeaderRow (&$a_tpl, $a_type, $a_show_image=true)
 adds a header row to a block template More...
 
 addMessageRow (&$a_tpl, $a_message, $a_type)
 add message row More...
 
 resetRowType ()
 
 setPageEditorTabs ()
 Add page editor tabs. More...
 
 addStandardContainerSubTabs ($a_include_view=true)
 Add standar container subtabs for view, manage, oderdering and text/media editor link. More...
 
 getTabs ()
 common tabs for all container objects (should be called at the end of child getTabs() method More...
 
 enableAdministrationPanelObject ()
 enable administration panel More...
 
 disableAdministrationPanelObject ()
 enable administration panel More...
 
 editOrderObject ()
 Edit order. More...
 
 isActiveOrdering ()
 Check if ordering is enabled. More...
 
 isActiveItemOrdering ()
 Check if item ordering is enabled. More...
 
 enableMultiDownloadObject ()
 
 isMultiDownloadEnabled ()
 
 cutObject ()
 cut object(s) out from a container and write the information to clipboard 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 ()
 get proper label to add in the background task popover More...
 
 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 ()
 Show paste tree. More...
 
 cancelMoveLinkObject ()
 Cancel move|link empty clipboard and return to parent. More...
 
 keepObjectsInClipboardObject ()
 Keep objects in the clipboard. More...
 
 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 ()
 show clipboard More...
 
 isActiveAdministrationPanel ()
 
 setColumnSettings (ilColumnGUI $column_gui)
 May be overwritten in subclasses. More...
 
 allowBlocksMoving ()
 Standard is to allow blocks moving. More...
 
 allowBlocksConfigure ()
 Standard is to allow blocks configuration. More...
 
 cloneWizardPageTreeObject ()
 @access public More...
 
 cloneWizardPageListObject ()
 @access public More...
 
 cloneWizardPageObject ($a_tree_view=true)
 Show clone wizard page for container objects. More...
 
 cloneAllObject ()
 Clone all object Overwritten method for copying container objects. More...
 
 saveSortingObject ()
 Save Sorting. More...
 
 cloneNodes ($srcRef, $dstRef, &$mapping, $newName=null)
 Recursively clones all nodes of the RBAC tree. More...
 
 modifyItemGUI ($a_item_list_gui, $a_item_data, $a_show_path)
 Modify list gui for presentation in container. More...
 
 editStylePropertiesObject ()
 Edit style properties. More...
 
 initStylePropertiesForm ()
 Init style properties form. More...
 
 createStyleObject ()
 Create Style. More...
 
 editStyleObject ()
 Edit Style. More...
 
 deleteStyleObject ()
 Delete Style. More...
 
 saveStyleSettingsObject ()
 Save style settings. More...
 
 getAsynchItemListObject ()
 Get item list command drop down asynchronously. More...
 
 redrawListItemObject ()
 Redraw a list item (ajax) More...
 
 trashObject ()
 Show trash content of object. More...
 
 trashApplyFilterObject ()
 trash table apply filter More...
 
 trashResetFilterObject ()
 trash table reset filter More...
 
 removeFromSystemObject ()
 remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method More...
 
 undeleteObject ()
 Get objects back from trash. More...
 
 confirmRemoveFromSystemObject ()
 confirmation screen remove from system More...
 
 setSideColumnReturn ()
 Set return point for side column actions. More...
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 competencesObject ()
 Redirect to competences. More...
 
- Public Member Functions inherited from ilObjectGUI
 executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page @access public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html. More...
 
 addToDeskObject ()
 @inheritDoc More...
 
 removeFromDeskObject ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 
- Public Member Functions inherited from ilDesktopItemHandling
 addToDeskObject ()
 Add desktop item @access public. More...
 
 removeFromDeskObject ()
 Remove from desktop @access public. More...
 

Static Public Member Functions

static _goto (string $target)
 
- Static Public Member Functions inherited from ilContainerGUI
static _buildPath ($a_ref_id, $a_course_ref_id)
 build path More...
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 

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_LP = "learningProgress"
 
const CMD_EXPORT = "export"
 
const CMD_IMPORT = "importFile"
 
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_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 TAB_VIEW_CONTENT = "view_content"
 
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 MAIL_ALLOWED_ALL = 1
 
const MAIL_ALLOWED_TUTORS = 2
 
const ACCESS_READ = 'read'
 
const ACCESS_VISIBLE = 'visible'
 
 $object
 
- Data Fields inherited from ilContainerGUI
 $bl_cnt = 1
 
 $multi_download_enabled = false
 
- Data Fields inherited from ilObjectGUI
const ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

Protected Member Functions

 recordLearningSequenceRead ()
 
 info (string $cmd=self::CMD_INFO)
 
 permissions (string $cmd=self::CMD_PERMISSIONS)
 
 settings (string $cmd=self::CMD_SETTINGS)
 
 view ()
 
 manageContent (string $cmd=self::CMD_CONTENT)
 
 learnerView (string $cmd=self::CMD_LEARNER_VIEW)
 
 members ()
 
 manage_members (string $cmd=self::CMD_MANAGE_MEMBERS)
 
 learningProgress (string $cmd=self::CMD_LP)
 
 export ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 create ()
 
 save ()
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 removeMember (int $usr_id)
 
 addSubTabsForContent ()
 
 checkAccess ($which)
 
 checkLPAccess ()
 
 getLinkTarget (string $cmd)
 
 getClassForTabs (string $cmd)
 
 getTrackingObject ()
 
 getAdditionalWhitelistTypes ()
 append additional types to ilRepositoryExplorerGUI's whitelist More...
 
- Protected Member Functions inherited from ilContainerGUI
 getEditFormValues ()
 Get values for edit form. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 supportsPageEditor ()
 
 showPasswordInstructionObject ($a_init=true)
 Show webdav password instruction. More...
 
 initFormPasswordInstruction ()
 Init password form. More...
 
 savePasswordObject ()
 Save password. More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add file manager link. More...
 
 fileManagerLaunchObject ()
 Launch jnlp. More...
 
 initEditForm ()
 Init object edit form. More...
 
 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)
 Save list presentation setting. More...
 
 initSortingDirectionForm (ilContainerSortingSettings $sorting_settings, $element, $a_prefix)
 Add sorting direction. More...
 
 initManualSortingOptionForm (ilContainerSortingSettings $settings, $element, $a_prefix, $a_sorting_settings)
 Add manual sorting options. More...
 
 saveSortingSettings (ilPropertyFormGUI $form)
 Save sorting settings. More...
 
 trashHandleFilter (bool $action_apply, bool $action_reset)
 
 restoreToNewLocationObject (\ilPropertyFormGUI $form=null)
 
 getTreeSelectorGUI ($cmd)
 
 initFilter ()
 Init filter. More...
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 Get object service. More...
 
 assignObject ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 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 @access public More...
 
 setAdminTabs ()
 set admin tabs @access public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTabs ()
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_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 $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 

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='')
 

Additional Inherited Members

- Protected Attributes inherited from ilContainerGUI
 $rbacsystem
 
 $tabs
 
 $settings
 
 $user
 
 $db
 
 $access
 
 $error
 
 $obj_definition
 
 $rbacadmin
 
 $rbacreview
 
 $log
 
 $obj_data_cache
 
 $toolbar
 
 $plugin_admin
 
 $global_screen
 
 $app_event_handler
 
 $ui
 
 $container_filter_service
 
 $container_user_filter = null
 
 $ui_filter
 
- Protected Attributes inherited from ilObjectGUI
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $rbacsystem
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 
 $object_service
 
 $favourites
 
 $request
 

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: ilContainerLinkListGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceSettingsGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceContentGUI @ilCtrl_Calls ilObjLearningSequenceGUI: ilObjLearningSequenceLearnerGUI @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

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

Constructor & Destructor Documentation

◆ __construct()

ilObjLearningSequenceGUI::__construct ( )

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

166 {
167 $this->ref_id = (int) $_GET['ref_id'];
168 parent::__construct([], $this->ref_id, true, false);
169
170 $this->obj_type = ilObjLearningSequence::OBJ_TYPE;
171
172 global $DIC;
173 $this->ctrl = $DIC['ilCtrl'];
174 $this->lng = $DIC['lng'];
175 $this->user = $DIC['ilUser'];
176 $this->tabs = $DIC['ilTabs'];
177 $this->toolbar = $DIC['ilToolbar'];
178 $this->help = $DIC['ilHelp'];
179 $this->settings = $DIC['ilSetting'];
180 $this->access = $DIC['ilAccess'];
181 $this->rbac_review = $DIC['rbacreview'];
182 $this->ui_factory = $DIC['ui.factory'];
183 $this->ui_renderer = $DIC['ui.renderer'];
184
185 $this->log = $DIC["ilLoggerFactory"]->getRootLogger();
186 $this->app_event_handler = $DIC['ilAppEventHandler'];
187 $this->navigation_history = $DIC['ilNavigationHistory'];
188 $this->obj_definition = $DIC['objDefinition'];
189 $this->tpl = $DIC["tpl"];
190 $this->obj_service = $DIC->object();
191 $this->toolbar = $DIC['ilToolbar'];
192
193 $this->help->setScreenIdComponent($this->obj_type);
194 $this->lng->loadLanguageModule($this->obj_type);
195
196 $this->object = $this->getObject();
197 $this->data_factory = new \ILIAS\Data\Factory();
198 }
user()
Definition: user.php:4
$_GET["client_id"]
settings(string $cmd=self::CMD_SETTINGS)
global $DIC
Definition: goto.php:24
help()
Definition: help.php:2
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $_GET, $DIC, ILIAS\GlobalScreen\Provider\__construct(), getObject(), help(), ilObjLearningSequence\OBJ_TYPE, settings(), and user().

+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjLearningSequenceGUI::_goto ( string  $target)
static

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

91 {
92 global $DIC;
93
94 $request = $DIC->http()->request();
95 $lng = $DIC->language();
96 $err = $DIC['ilErr'];
97
98 $targetParameters = explode('_', $target);
99 $id = (int) $targetParameters[0];
100
101 if (!self::isAccessible($id)) {
102 $err->raiseError($lng->txt('msg_no_perm_read'), $err->FATAL);
103 }
104
105 if (self::hasAccess(self::ACCESS_READ, $id)) {
106 $params = ['ref_id' => $id];
107
108 if (isset($request->getQueryParams()['gotolp'])) {
109 $params['gotolp'] = 1;
110 }
111
113 ilRepositoryGUI::class,
114 [ilRepositoryGUI::class, ilObjLearningSequenceGUI::class],
115 $params,
116 self::CMD_VIEW
117 );
118 }
119
120 if (self::hasAccess(self::ACCESS_VISIBLE, $id)) {
121 ilObjectGUI::_gotoRepositoryNode($target, 'infoScreen');
122 }
123
124 if (self::hasAccess(self::ACCESS_READ, ROOT_FOLDER_ID)) {
125 ilUtil::sendInfo(sprintf(
126 $lng->txt('msg_no_perm_read_item'),
128 ), true);
129
130 self::forwardByClass(ilRepositoryGUI::class, [ilRepositoryGUI::class], ['ref_id' => ROOT_FOLDER_ID]);
131 }
132 }
static forwardByClass(string $base_class, array $classes, array $params, string $cmd='')
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
const ROOT_FOLDER_ID
Definition: constants.php:30

References $DIC, ilObjectGUI\$lng, ilObjectGUI\$request, ilObjectGUI\_gotoRepositoryNode(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), forwardByClass(), ROOT_FOLDER_ID, and ilUtil\sendInfo().

+ Here is the call graph for this function:

◆ addCustomData()

ilObjLearningSequenceGUI::addCustomData (   $a_data)

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

776 {
777 $res_data = array();
778 foreach ($a_data as $usr_id => $user_data) {
779 $res_data[$usr_id] = $user_data;
780 $udf_data = new ilUserDefinedData($usr_id);
781
782 foreach ($udf_data->getAll() as $field => $value) {
783 list($f, $field_id) = explode('_', $field);
784 $res_data[$usr_id]['udf_' . $field_id] = (string) $value;
785 }
786 }
787
788 return $res_data;
789 }
Class ilUserDefinedData.

References Vendor\Package\$f.

◆ addSubTabsForContent()

ilObjLearningSequenceGUI::addSubTabsForContent ( )
protected

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

653 {
654 $this->tabs->addSubTab(
655 self::TAB_VIEW_CONTENT,
656 $this->lng->txt(self::TAB_VIEW_CONTENT),
657 $this->getLinkTarget(self::CMD_LEARNER_VIEW)
658 );
659
660 if ($this->checkAccess("write")) {
661 $this->tabs->addSubTab(
662 self::TAB_MANAGE,
663 $this->lng->txt(self::TAB_MANAGE),
664 $this->getLinkTarget(self::CMD_CONTENT)
665 );
666 }
667 }

References checkAccess().

Referenced by learnerView(), and manageContent().

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

◆ addToNavigationHistory()

ilObjLearningSequenceGUI::addToNavigationHistory ( )

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

368 {
369 if (
370 !$this->getCreationMode() &&
371 $this->access->checkAccess('read', '', $this->ref_id)
372 ) {
373 $link = ilLink::_getLink($this->ref_id, $this->obj_type);
374 $this->navigation_history->addItem($this->ref_id, $link, $this->obj_type);
375 }
376 }
getCreationMode()
get creation mode

References ilLink\_getLink(), 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  $a_new_object)
protected

Post (successful) object creation hook.

Parameters
ilObject$a_new_object

Reimplemented from ilObjectGUI.

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

537 {
538 $participant = new ilLearningSequenceParticipants(
539 (int) $new_object->getId(),
540 $this->log,
541 $this->app_event_handler,
542 $this->settings
543 );
544
545 $participant->add($this->user->getId(), IL_LSO_ADMIN);
546 $participant->updateNotification($this->user->getId(), $this->settings->get('mail_lso_admin_notification', true));
547
548
549 $settings = new \ilContainerSortingSettings($new_object->getId());
550 $settings->setSortMode(\ilContainer::SORT_MANUAL);
551 $settings->setSortDirection(\ilContainer::SORT_DIRECTION_ASC);
554 $settings->save();
555
556 ilUtil::sendSuccess($this->lng->txt('object_added'), true);
557 $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
559 $this->getReturnLocation(
560 "save",
561 $this->ctrl->getLinkTarget($this, self::CMD_SETTINGS, "", false, false)
562 )
563 );
564 }
const IL_LSO_ADMIN
const SORT_NEW_ITEMS_ORDER_CREATION
const SORT_NEW_ITEMS_POSITION_BOTTOM
getReturnLocation($a_cmd, $a_location="")
get return location for command (command is method name without "Object", e.g.
static redirect($a_script)

References ilContainerGUI\$settings, ilObject\getId(), ilObject\getRefId(), ilObjectGUI\getReturnLocation(), IL_LSO_ADMIN, ilUtil\redirect(), ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_NEW_ITEMS_ORDER_CREATION, ilContainer\SORT_NEW_ITEMS_POSITION_BOTTOM, and user().

+ Here is the call graph for this function:

◆ checkAccess()

ilObjLearningSequenceGUI::checkAccess (   $which)
protected

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

669 : bool
670 {
671 return $this->access->checkAccess($which, "", $this->ref_id);
672 }

Referenced by addSubTabsForContent(), checkLPAccess(), getTabs(), members(), unparticipate(), and view().

+ Here is the caller graph for this function:

◆ checkLPAccess()

ilObjLearningSequenceGUI::checkLPAccess ( )
protected

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

675 {
676 $ref_id = $this->getObject()->getRefId();
677 $is_participant = ilLearningSequenceParticipants::_isParticipant($ref_id, $this->user->getId());
678
679 $lp_access = ilLearningProgressAccess::checkAccess($ref_id, $is_participant);
680 $may_edit_lp_settings = $this->checkAccess('edit_learning_progress');
681
682 return ($lp_access || $may_edit_lp_settings);
683 }
static checkAccess($a_ref_id, $a_allow_only_read=true)
check access to learning progress
static _isParticipant($ref_id, $usr_id)
Static function to check if a user is a participant of the container object.

References ilObjectGUI\$ref_id, ilLearningSequenceParticipants\_isParticipant(), ilLearningProgressAccess\checkAccess(), checkAccess(), getObject(), and 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 526 of file class.ilObjLearningSequenceGUI.php.

527 {
528 parent::createObject();
529 }

◆ createMailSignature()

ilObjLearningSequenceGUI::createMailSignature ( )

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

716 {
717 $link = chr(13) . chr(10) . chr(13) . chr(10);
718 $link .= $this->lng->txt('lso_mail_permanent_link');
719 $link .= chr(13) . chr(10) . chr(13) . chr(10);
720 $link .= ilLink::_getLink($this->object->getRefId());
721
722 return rawurlencode(base64_encode($link));
723 }

References ilLink\_getLink().

+ Here is the call graph for this function:

◆ executeCommand()

ilObjLearningSequenceGUI::executeCommand ( )

execute command note: this method is overwritten in all container objects

Reimplemented from ilContainerGUI.

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

211 {
212 $next_class = $this->ctrl->getNextClass($this);
213 $cmd = $this->ctrl->getCmd();
215
216 parent::prepareOutput();
217 $this->addToNavigationHistory();
218 //showRepTree is from containerGUI;
219 //LSO will attach allowed subitems to whitelist
220 //see: $this::getAdditionalWhitelistTypes
221
222 $in_player = (
223 $next_class === 'ilobjlearningsequencelearnergui'
224 && $cmd === 'view'
225 );
226
227 $tpl->setPermanentLink("lso", $this->ref_id);
228
229 switch ($next_class) {
230 case "ilcommonactiondispatchergui":
232 $this->ctrl->forwardCommand($gui);
233 break;
234 case "ilinfoscreengui":
235 $this->info($cmd);
236 break;
237 case "ilpermissiongui":
238 $this->permissions($cmd);
239 break;
240 case "ilobjlearningsequencesettingsgui":
241 $this->settings($cmd);
242 break;
243 case "ilobjlearningsequencecontentgui":
244 $this->manageContent($cmd);
245 break;
246 case "ilobjlearningsequencelearnergui":
247 $this->learnerView($cmd);
248 break;
249 case "illearningsequencemembershipgui":
250 $this->manage_members($cmd);
251 break;
252 case 'ilmailmembersearchgui':
253 $this->mail();
254 break;
255 case 'illearningprogressgui':
256 $this->learningProgress($cmd);
257 break;
258 case 'ilexportgui':
259 $this->export();
260 break;
261 case 'ilobjectcopygui':
262 $cp = new ilObjectCopyGUI($this);
263 $cp->setType('lso');
264 $this->ctrl->forwardCommand($cp);
265 break;
266 case 'ilobjindividualassessmentgui':
267 $struct = ['ilrepositorygui','ilobjindividualassessmentgui'];
268 if ($cmd === 'edit') {
269 $struct[] = 'ilindividualassessmentsettingsgui';
270 }
271 $this->ctrl->redirectByClass($struct, $cmd);
272 break;
273 case 'ilobjtestgui':
274 $struct = ['ilrepositorygui','ilobjtestgui'];
275 $this->ctrl->redirectByClass($struct, $cmd);
276 break;
277
278 case false:
279 if ($cmd === '') {
280 $cmd = self::CMD_VIEW;
281 }
282
283 switch ($cmd) {
284 case self::CMD_IMPORT:
285 $this->importFileObject();
286 break;
287 case self::CMD_INFO:
289 $this->info();
290 break;
291 case self::CMD_VIEW:
296 case self::CMD_SAVE:
297 case self::CMD_CREATE:
298 case self::CMD_LP:
300 $this->$cmd();
301 break;
302 case self::CMD_CANCEL:
303 if ($this->getCreationMode()) {
304 $this->cancelCreation();
305 }
306 break;
308 $this->removeFromDeskObject();
309 $this->view();
310 break;
312 $this->addToDeskObject();
313 $this->view();
314 break;
315 case self::CMD_CUT:
316 $this->cutObject();
317 break;
319 $this->showPasteTreeObject();
320 break;
323 break;
324 case self::CMD_LINK:
325 $this->linkObject();
326 break;
327 case self::CMD_DELETE:
328 $this->deleteObject();
329 break;
331 $this->confirmedDeleteObject();
332 break;
335 break;
337 $this->trashObject();
338 break;
340 $this->undeleteObject();
341 break;
342
346 $cmd = self::CMD_CONTENT;
347 $this->$cmd();
348 break;
349
352 break;
353
354 default:
355 throw new ilException("ilObjLearningSequenceGUI: Invalid command '$cmd'");
356 }
357 break;
358 default:
359 throw new ilException("ilObjLearningSequenceGUI: Can't forward to next class $next_class");
360 }
361
362 if (!$in_player) {
363 $this->addHeaderAction();
364 }
365 }
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
trashObject()
Show trash content of object.
cutObject()
cut object(s) out from a container and write the information to clipboard
showPasteTreeObject()
Show paste tree.
undeleteObject()
Get objects back from trash.
linkObject()
create an new reference of an object in tree it's like a hard link of unix
keepObjectsInClipboardObject()
Keep objects in the clipboard.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
learningProgress(string $cmd=self::CMD_LP)
manageContent(string $cmd=self::CMD_CONTENT)
manage_members(string $cmd=self::CMD_MANAGE_MEMBERS)
permissions(string $cmd=self::CMD_PERMISSIONS)
learnerView(string $cmd=self::CMD_LEARNER_VIEW)
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
importFileObject($parent_id=null, $a_catch_errors=true)
Import.
addHeaderAction()
Add header action menu.
redrawHeaderActionObject()
Ajax call: redraw action header only.
deleteObject($a_error=false)
Display deletion confirmation screen.
removeFromDeskObject()
Remove from desktop @access public.
addToDeskObject()
Add desktop item @access public.

References ilObjectGUI\$tpl, ilObjectGUI\addHeaderAction(), ilDesktopItemHandling\addToDeskObject(), addToNavigationHistory(), ilObjectGUI\cancelCreation(), CMD_ADD_TO_DESK, CMD_CANCEL, CMD_CANCEL_CUT, CMD_CANCEL_DELETE, CMD_CANCEL_LINK, CMD_CONTENT, CMD_CREATE, CMD_CUT, CMD_CUT_CLIPBOARD, CMD_CUT_SHOWTREE, CMD_DELETE, CMD_DELETE_CONFIRMED, CMD_IMPORT, CMD_INFO, CMD_INFO_SCREEN, CMD_LEARNER_VIEW, CMD_LINK, CMD_LP, CMD_MEMBERS, 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\cutObject(), ilObjectGUI\deleteObject(), export(), ilObjectGUI\getCreationMode(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), ilObjectGUI\importFileObject(), info(), ilContainerGUI\keepObjectsInClipboardObject(), learnerView(), learningProgress(), ilContainerGUI\linkObject(), manage_members(), manageContent(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), permissions(), ilObjectGUI\redrawHeaderActionObject(), ilDesktopItemHandling\removeFromDeskObject(), settings(), ilContainerGUI\showPasteTreeObject(), ilContainerGUI\trashObject(), ilContainerGUI\undeleteObject(), and view().

+ Here is the call graph for this function:

◆ export()

ilObjLearningSequenceGUI::export ( )
protected

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

513 {
514 $this->tabs->setTabActive(self::TAB_EXPORT);
515 $gui = new ilExportGUI($this);
516 $gui->addFormat("xml");
517
518 $this->ctrl->forwardCommand($gui);
519 }
Export User Interface Class.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ forwardByClass()

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

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

150 {
151 global $DIC;
152 $ctrl = $DIC->ctrl();
153 $target_class = end($classes);
154
155 $ctrl->setTargetScript('ilias.php');
156 $ctrl->initBaseClass($base_class);
157
158 foreach ($params as $key => $value) {
159 $ctrl->setParameterByClass($target_class, $key, $value);
160 }
161
162 $ctrl->redirectByClass($classes, $cmd);
163 }

References ilObjectGUI\$ctrl, and $DIC.

Referenced by _goto().

+ Here is the caller graph for this function:

◆ getAdditionalWhitelistTypes()

ilObjLearningSequenceGUI::getAdditionalWhitelistTypes ( )
protected

append additional types to ilRepositoryExplorerGUI's whitelist

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

763 : array
764 {
765 $types = array_filter(
766 array_keys($this->obj_definition->getSubObjects('lso', false)),
767 function ($type) {
768 return $type !== 'rolf';
769 }
770 );
771
772 return $types;
773 }
$type

References $type.

◆ getClassForTabs()

ilObjLearningSequenceGUI::getClassForTabs ( string  $cmd)
protected

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

695 : string
696 {
697 switch ($cmd) {
699 return 'ilObjLearningSequenceContentGUI';
701 return 'ilObjLearningSequenceLearnerGUI';
703 return 'ilObjLearningSequenceSettingsGUI';
704 case self::CMD_INFO:
705 return 'ilInfoScreenGUI';
707 return 'ilPermissionGUI';
708 case self::CMD_LP:
709 return 'ilLearningProgressGUI';
710 }
711
712 throw new InvalidArgumentException('cannot resolve class for command: ' . $cmd);
713 }

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

Referenced by getLinkTarget().

+ Here is the caller graph for this function:

◆ getLinkTarget()

ilObjLearningSequenceGUI::getLinkTarget ( string  $cmd)
protected

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

685 : string
686 {
687 $class = $this->getClassForTabs($cmd);
688 $class_path = [
689 strtolower('ilObjLearningSequenceGUI'),
690 $class
691 ];
692 return $this->ctrl->getLinkTargetByClass($class_path, $cmd);
693 }

References getClassForTabs().

+ Here is the call graph for this function:

◆ getLocalRoles()

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

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

742 : array
743 {
744 $local_roles = $this->object->getLocalLearningSequenceRoles(false);
745 $lso_member = $this->object->getDefaultMemberRole();
746 $lso_roles = array();
747
748 if (in_array($lso_member, $local_roles)) {
749 $lso_roles[$lso_member] = ilObjRole::_getTranslation(array_search($lso_member, $local_roles));
750 unset($local_roles[$lso_roles[$lso_member]]);
751 }
752
753 foreach ($local_roles as $title => $role_id) {
754 $lso_roles[$role_id] = ilObjRole::_getTranslation($title);
755 }
756
757 return $lso_roles;
758 }
static _getTranslation($a_role_title)

References ilObjRole\_getTranslation().

+ Here is the call graph for this function:

◆ getObject()

ilObjLearningSequenceGUI::getObject ( )

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

726 {
727 if ($this->object === null) {
728 $this->object = ilObjLearningSequence::getInstanceByRefId($this->ref_id);
729 }
730
731 return $this->object;
732 }
static getInstanceByRefId(int $ref_id)

References $object, and ilObjLearningSequence\getInstanceByRefId().

Referenced by __construct(), checkLPAccess(), getTabs(), learningProgress(), manage_members(), settings(), and unparticipate().

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

◆ getTabs()

ilObjLearningSequenceGUI::getTabs ( )

common tabs for all container objects (should be called at the end of child getTabs() method

Reimplemented from ilContainerGUI.

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

581 {
582 if ($this->checkAccess("read")) {
583 $this->tabs->addTab(
584 self::TAB_CONTENT_MAIN,
585 $this->lng->txt(self::TAB_CONTENT_MAIN),
586 $this->ctrl->getLinkTarget($this, self::CMD_VIEW, "", false, false)
587 );
588 }
589
590 if ($this->checkAccess("read") || $this->checkAccess("visible")) {
591 $this->tabs->addTab(
592 self::TAB_INFO,
593 $this->lng->txt(self::TAB_INFO),
594 $this->getLinkTarget(self::CMD_INFO)
595 );
596 }
597
598 if ($this->checkAccess("write")) {
599 $this->tabs->addTab(
600 self::TAB_SETTINGS,
601 $this->lng->txt(self::TAB_SETTINGS),
602 $this->getLinkTarget(self::CMD_SETTINGS)
603 );
604 }
605
606 if ($this->checkAccess("read")) {
607 if ($this->checkAccess("manage_members")
608 || (
609 $this->getObject()->getLSSettings()->getMembersGallery()
610 &&
611 $this->getObject()->getLSRoles()->isMember((int) $this->user->getId())
612 )
613 ) {
614 $this->tabs->addTab(
615 self::TAB_MEMBERS,
616 $this->lng->txt(self::TAB_MEMBERS),
617 $this->ctrl->getLinkTarget($this, self::CMD_MEMBERS, "", false, false)
618 );
619 }
620 }
621
623 $this->tabs->addTab(
624 self::TAB_LP,
625 $this->lng->txt(self::TAB_LP),
626 $this->getLinkTarget(self::CMD_LP)
627 );
628 }
629
630 if ($this->checkAccess("write")) {
631 $this->tabs->addTab(
632 self::TAB_EXPORT,
633 $this->lng->txt(self::TAB_EXPORT),
634 $this->ctrl->getLinkTargetByClass("ilexportgui", "")
635 );
636 }
637
638 if ($this->checkAccess("edit_permission")) {
639 $this->tabs->addTab(
640 self::TAB_PERMISSIONS,
641 $this->lng->txt(self::TAB_PERMISSIONS),
642 $this->getLinkTarget(self::CMD_PERMISSIONS)
643 );
644 }
645 }
static _enabledLearningProgress()
check wether learing progress is enabled or not

References ilObjUserTracking\_enabledLearningProgress(), checkAccess(), checkLPAccess(), getObject(), and user().

+ Here is the call graph for this function:

◆ getTrackingObject()

ilObjLearningSequenceGUI::getTrackingObject ( )
protected

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

Referenced by manage_members().

+ Here is the caller graph for this function:

◆ hasAccess()

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

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

143 : bool
144 {
145 global $DIC;
146 return $DIC->access()->checkAccess($mode, '', $id);
147 }

References $DIC.

Referenced by isAccessible().

+ Here is the caller graph for this function:

◆ info()

ilObjLearningSequenceGUI::info ( string  $cmd = self::CMD_INFO)
protected

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

379 {
380 $this->tabs->setTabActive(self::TAB_INFO);
381 $this->ctrl->setCmdClass('ilinfoscreengui');
382 $this->ctrl->setCmd($cmd);
383 $info = new ilInfoScreenGUI($this);
384 $this->ctrl->forwardCommand($info);
385 }
Class ilInfoScreenGUI.

Referenced by executeCommand(), and view().

+ Here is the caller graph for this function:

◆ initDidacticTemplate()

ilObjLearningSequenceGUI::initDidacticTemplate ( ilPropertyFormGUI  $form)
protected

Show didactic template types.

Parameters
ilPropertyFormGUI$form
Returns
ilPropertyFormGUI $form

Reimplemented from ilObjectGUI.

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

522 {
523 return $form;
524 }

◆ isAccessible()

static ilObjLearningSequenceGUI::isAccessible ( int  $id)
staticprotected

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

134 : bool
135 {
136 return $id > 0 && (
137 self::hasAccess(self::ACCESS_READ, $id) ||
138 self::hasAccess(self::ACCESS_VISIBLE, $id) ||
139 self::hasAccess(self::ACCESS_READ, ROOT_FOLDER_ID)
140 );
141 }
static hasAccess(string $mode, int $id)

References hasAccess(), and ROOT_FOLDER_ID.

+ Here is the call graph for this function:

◆ learnerView()

ilObjLearningSequenceGUI::learnerView ( string  $cmd = self::CMD_LEARNER_VIEW)
protected

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

445 {
446 $this->tabs->activateTab(self::TAB_CONTENT_MAIN);
447 $this->addSubTabsForContent($cmd);
448 $this->tabs->activateSubTab(self::TAB_VIEW_CONTENT);
449
450 $gui = $this->object->getLocalDI()["gui.learner"];
451
452 $this->ctrl->setCmd($cmd);
453 $this->ctrl->forwardCommand($gui);
454 }

References addSubTabsForContent().

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

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

◆ learningProgress()

ilObjLearningSequenceGUI::learningProgress ( string  $cmd = self::CMD_LP)
protected

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

489 {
490 $this->tabs->setTabActive(self::TAB_LP);
491
492 $for_user = $this->user->getId();
493
494 if ($_GET['user_id']) {
495 $for_user = $_GET['user_id'];
496 }
497
498 $lp_gui = new ilLearningProgressGUI(
500 $this->getObject()->getRefId(),
501 $for_user
502 );
503
504 if ($cmd === self::CMD_LP) {
505 $cmd = '';
506 }
507
508 $this->ctrl->setCmd($cmd);
509 $this->ctrl->forwardCommand($lp_gui);
510 }
Class ilObjUserTrackingGUI.

References $_GET, getObject(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, and user().

Referenced by executeCommand().

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

◆ manage_members()

ilObjLearningSequenceGUI::manage_members ( string  $cmd = self::CMD_MANAGE_MEMBERS)
protected

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

468 {
469 $this->tabs->setTabActive(self::TAB_MEMBERS);
470
472 $this,
473 $this->getObject(),
474 $this->getTrackingObject(),
476 $this->lng,
477 $this->ctrl,
478 $this->access,
479 $this->rbac_review,
480 $this->settings,
481 $this->toolbar
482 );
483
484 $this->ctrl->setCmd($cmd);
485 $this->ctrl->forwardCommand($ms_gui);
486 }
GUI class for learning sequence membership features.
static _getInstance()
Get instance of ilPrivacySettings.

References ilPrivacySettings\_getInstance(), getObject(), getTrackingObject(), and settings().

Referenced by executeCommand(), and members().

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

◆ manageContent()

ilObjLearningSequenceGUI::manageContent ( string  $cmd = self::CMD_CONTENT)
protected

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

426 {
427 $this->tabs->activateTab(self::TAB_CONTENT_MAIN);
428 $this->addSubTabsForContent($cmd);
429 $this->tabs->activateSubTab(self::TAB_MANAGE);
430
432 $this,
433 $this->ctrl,
434 $this->tpl,
435 $this->lng,
436 $this->access,
437 new ilConfirmationGUI(),
439 );
440 $this->ctrl->setCmd($cmd);
441 $this->ctrl->forwardCommand($gui);
442 }
Confirmation screen class.
Class ilObjLearningSequenceContentGUI.

References addSubTabsForContent().

Referenced by executeCommand(), and view().

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

◆ members()

ilObjLearningSequenceGUI::members ( )
protected

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

457 {
458 $may_manage_members = $this->checkAccess("edit_members");
459 $this->ctrl->setCmdClass('ilLearningSequenceMembershipGUI');
460 if ($may_manage_members) {
461 $this->manage_members(self::CMD_MANAGE_MEMBERS);
462 } else {
463 $this->manage_members(self::CMD_MEMBERS_GALLERY);
464 }
465 }

References checkAccess(), and manage_members().

+ Here is the call graph for this function:

◆ permissions()

ilObjLearningSequenceGUI::permissions ( string  $cmd = self::CMD_PERMISSIONS)
protected

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

388 {
389 $this->tabs->setTabActive(self::TAB_PERMISSIONS);
390 $perm_gui = new ilPermissionGUI($this);
391 $this->ctrl->setCmd($cmd);
392 $this->ctrl->forwardCommand($perm_gui);
393 }
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ recordLearningSequenceRead()

ilObjLearningSequenceGUI::recordLearningSequenceRead ( )
protected

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

201 {
203 $this->object->getType(),
204 $this->object->getRefId(),
205 $this->object->getId(),
206 $this->user->getId()
207 );
208 }
static _recordReadEvent( $a_type, $a_ref_id, $obj_id, $usr_id, $isCatchupWriteEvents=true, $a_ext_rc=false, $a_ext_time=false)
Records a read event and catches up with write events.

References ilChangeEvent\_recordReadEvent().

Referenced by view().

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

◆ removeMember()

ilObjLearningSequenceGUI::removeMember ( int  $usr_id)
protected

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

576 {
577 $this->ls_object->leave($usr_id);
578 }

◆ renderObject()

ilObjLearningSequenceGUI::renderObject ( )

render the object

Reimplemented from ilContainerGUI.

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

648 {
649 // disables this method in ilContainerGUI
650 }

◆ save()

ilObjLearningSequenceGUI::save ( )
protected

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

532 {
533 parent::saveObject();
534 }

◆ settings()

ilObjLearningSequenceGUI::settings ( string  $cmd = self::CMD_SETTINGS)
protected

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

396 {
397 $this->tabs->activateTab(self::TAB_SETTINGS);
399 $this->getObject(),
400 $this->ctrl,
401 $this->lng,
402 $this->tpl,
403 $this->obj_service
404 );
405 $this->ctrl->setCmd($cmd);
406 $this->ctrl->forwardCommand($gui);
407 }
Class ilObjLearningSequenceSettingsGUI.

References getObject().

Referenced by __construct(), executeCommand(), and manage_members().

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

◆ unparticipate()

ilObjLearningSequenceGUI::unparticipate ( )

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

567 {
568 if ($this->checkAccess('unparticipate')) {
569 $usr_id = (int) $this->user->getId();
570 $this->getObject()->getLSRoles()->leave($usr_id);
571 $this->learnerView();
572 }
573 }

References checkAccess(), getObject(), learnerView(), and user().

+ Here is the call graph for this function:

◆ view()

ilObjLearningSequenceGUI::view ( )
protected

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

410 {
411 $this->tabs->clearSubTabs();
412 if ($this->checkAccess("write")) {
413 $this->manageContent(self::CMD_CONTENT);
414 return;
415 }
416 if ($this->checkAccess("read")) {
417 $this->learnerView(self::CMD_LEARNER_VIEW);
419 return;
420 }
421 $this->info(self::CMD_INFO);
423 }

References checkAccess(), info(), learnerView(), manageContent(), and recordLearningSequenceRead().

Referenced by executeCommand().

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

Field Documentation

◆ $object

ilObjLearningSequenceGUI::$object

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

Referenced by getObject().

◆ ACCESS_READ

const ilObjLearningSequenceGUI::ACCESS_READ = 'read'

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

◆ ACCESS_VISIBLE

const ilObjLearningSequenceGUI::ACCESS_VISIBLE = 'visible'

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

◆ CMD_ADD_TO_DESK

const ilObjLearningSequenceGUI::CMD_ADD_TO_DESK = "addToDesk"

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

Referenced by executeCommand().

◆ CMD_CANCEL

const ilObjLearningSequenceGUI::CMD_CANCEL = "cancel"

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

Referenced by executeCommand().

◆ CMD_CANCEL_CUT

const ilObjLearningSequenceGUI::CMD_CANCEL_CUT = "cancelCut"

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

Referenced by executeCommand().

◆ CMD_CANCEL_DELETE

const ilObjLearningSequenceGUI::CMD_CANCEL_DELETE = "cancelDelete"

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

Referenced by executeCommand().

◆ CMD_CANCEL_LINK

const ilObjLearningSequenceGUI::CMD_CANCEL_LINK = "cancelMoveLink"

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

Referenced by executeCommand().

◆ CMD_CONTENT

const ilObjLearningSequenceGUI::CMD_CONTENT = "manageContent"

◆ CMD_CREATE

const ilObjLearningSequenceGUI::CMD_CREATE = "create"

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

Referenced by executeCommand().

◆ CMD_CUT

const ilObjLearningSequenceGUI::CMD_CUT = "cut"

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

Referenced by executeCommand().

◆ CMD_CUT_CLIPBOARD

const ilObjLearningSequenceGUI::CMD_CUT_CLIPBOARD = "keepObjectsInClipboard"

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

Referenced by executeCommand().

◆ CMD_CUT_SHOWTREE

const ilObjLearningSequenceGUI::CMD_CUT_SHOWTREE = "showPasteTree"

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

Referenced by executeCommand().

◆ CMD_DELETE

const ilObjLearningSequenceGUI::CMD_DELETE = "delete"

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

Referenced by executeCommand().

◆ CMD_DELETE_CONFIRMED

const ilObjLearningSequenceGUI::CMD_DELETE_CONFIRMED = "confirmedDelete"

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

Referenced by executeCommand().

◆ CMD_EXPORT

const ilObjLearningSequenceGUI::CMD_EXPORT = "export"

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

◆ CMD_IMPORT

const ilObjLearningSequenceGUI::CMD_IMPORT = "importFile"

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

Referenced by executeCommand().

◆ CMD_INFO

const ilObjLearningSequenceGUI::CMD_INFO = "showSummary"

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

Referenced by executeCommand(), and getClassForTabs().

◆ CMD_INFO_SCREEN

const ilObjLearningSequenceGUI::CMD_INFO_SCREEN = "infoScreen"

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

Referenced by executeCommand().

◆ CMD_LEARNER_VIEW

const ilObjLearningSequenceGUI::CMD_LEARNER_VIEW = "learnerView"

◆ CMD_LINK

const ilObjLearningSequenceGUI::CMD_LINK = "link"

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

Referenced by executeCommand().

◆ CMD_LP

const ilObjLearningSequenceGUI::CMD_LP = "learningProgress"

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

Referenced by executeCommand(), and getClassForTabs().

◆ CMD_MANAGE_MEMBERS

const ilObjLearningSequenceGUI::CMD_MANAGE_MEMBERS = "participants"

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

◆ CMD_MEMBERS

const ilObjLearningSequenceGUI::CMD_MEMBERS = "members"

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

Referenced by executeCommand().

◆ CMD_MEMBERS_GALLERY

const ilObjLearningSequenceGUI::CMD_MEMBERS_GALLERY = "jump2UsersGallery"

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

◆ CMD_PERFORM_PASTE

const ilObjLearningSequenceGUI::CMD_PERFORM_PASTE = 'performPasteIntoMultipleObjects'

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

Referenced by executeCommand().

◆ CMD_PERMISSIONS

const ilObjLearningSequenceGUI::CMD_PERMISSIONS = "perm"

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

Referenced by getClassForTabs().

◆ CMD_REDRAW_HEADER

const ilObjLearningSequenceGUI::CMD_REDRAW_HEADER = 'redrawHeaderAction'

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

Referenced by executeCommand().

◆ CMD_REMOVE_FROM_DESK

const ilObjLearningSequenceGUI::CMD_REMOVE_FROM_DESK = "removeFromDesk"

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

Referenced by executeCommand().

◆ CMD_SAVE

const ilObjLearningSequenceGUI::CMD_SAVE = "save"

Definition at line 53 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 68 of file class.ilObjLearningSequenceGUI.php.

Referenced by executeCommand().

◆ CMD_UNDELETE

const ilObjLearningSequenceGUI::CMD_UNDELETE = 'undelete'

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

Referenced by executeCommand().

◆ CMD_UNPARTICIPATE

const ilObjLearningSequenceGUI::CMD_UNPARTICIPATE = "unparticipate"

◆ CMD_VIEW

const ilObjLearningSequenceGUI::CMD_VIEW = "view"

◆ MAIL_ALLOWED_ALL

const ilObjLearningSequenceGUI::MAIL_ALLOWED_ALL = 1

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

◆ MAIL_ALLOWED_TUTORS

const ilObjLearningSequenceGUI::MAIL_ALLOWED_TUTORS = 2

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

◆ TAB_CONTENT_MAIN

const ilObjLearningSequenceGUI::TAB_CONTENT_MAIN = "manage_content_maintab"

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

◆ TAB_EXPORT

const ilObjLearningSequenceGUI::TAB_EXPORT = "export"

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

◆ TAB_INFO

const ilObjLearningSequenceGUI::TAB_INFO = "show_summary"

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

◆ TAB_LP

const ilObjLearningSequenceGUI::TAB_LP = "learning_progress"

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

◆ TAB_MANAGE

const ilObjLearningSequenceGUI::TAB_MANAGE = "manage"

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

◆ TAB_MEMBERS

const ilObjLearningSequenceGUI::TAB_MEMBERS = "members"

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

◆ TAB_PERMISSIONS

const ilObjLearningSequenceGUI::TAB_PERMISSIONS = "perm_settings"

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

◆ TAB_SETTINGS

const ilObjLearningSequenceGUI::TAB_SETTINGS = "settings"

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

◆ TAB_VIEW_CONTENT

const ilObjLearningSequenceGUI::TAB_VIEW_CONTENT = "view_content"

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


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