ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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...
 
- 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 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 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 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...
 
 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)
 
- 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
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $rbacsystem
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 
 $object_service
 
 $favourites
 

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 164 of file class.ilObjLearningSequenceGUI.php.

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

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 89 of file class.ilObjLearningSequenceGUI.php.

90 {
91 global $DIC;
92
93 $request = $DIC->http()->request();
94 $lng = $DIC->language();
95 $err = $DIC['ilErr'];
96
97 $targetParameters = explode('_', $target);
98 $id = (int) $targetParameters[0];
99
100 if (!self::isAccessible($id)) {
101 $err->raiseError($lng->txt('msg_no_perm_read'), $err->FATAL);
102 }
103
104 if (self::hasAccess(self::ACCESS_READ, $id)) {
105 $params = ['ref_id' => $id];
106
107 if (isset($request->getQueryParams()['gotolp'])) {
108 $params['gotolp'] = 1;
109 }
110
112 ilRepositoryGUI::class,
113 [ilRepositoryGUI::class, ilObjLearningSequenceGUI::class],
114 $params,
115 self::CMD_VIEW
116 );
117 }
118
119 if (self::hasAccess(self::ACCESS_VISIBLE, $id)) {
120 ilObjectGUI::_gotoRepositoryNode($target, 'infoScreen');
121 }
122
123 if (self::hasAccess(self::ACCESS_READ, ROOT_FOLDER_ID)) {
124 ilUtil::sendInfo(sprintf(
125 $lng->txt('msg_no_perm_read_item'),
127 ), true);
128
129 self::forwardByClass(ilRepositoryGUI::class, [ilRepositoryGUI::class], ['ref_id' => ROOT_FOLDER_ID]);
130 }
131 }
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.

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

+ Here is the call graph for this function:

◆ addCustomData()

ilObjLearningSequenceGUI::addCustomData (   $a_data)

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

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

References Vendor\Package\$f.

◆ addSubTabsForContent()

ilObjLearningSequenceGUI::addSubTabsForContent ( )
protected

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

648 {
649 $this->tabs->addSubTab(
650 self::TAB_VIEW_CONTENT,
651 $this->lng->txt(self::TAB_VIEW_CONTENT),
652 $this->getLinkTarget(self::CMD_LEARNER_VIEW)
653 );
654
655 if ($this->checkAccess("write")) {
656 $this->tabs->addSubTab(
657 self::TAB_MANAGE,
658 $this->lng->txt(self::TAB_MANAGE),
659 $this->getLinkTarget(self::CMD_CONTENT)
660 );
661 }
662 }

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 362 of file class.ilObjLearningSequenceGUI.php.

363 {
364 if (
365 !$this->getCreationMode() &&
366 $this->access->checkAccess('read', '', $this->ref_id)
367 ) {
368 $link = ilLink::_getLink($this->ref_id, $this->obj_type);
369 $this->navigation_history->addItem($this->ref_id, $link, $this->obj_type);
370 }
371 }
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 531 of file class.ilObjLearningSequenceGUI.php.

532 {
533 $participant = new ilLearningSequenceParticipants(
534 (int) $new_object->getId(),
535 $this->log,
536 $this->app_event_handler,
537 $this->settings
538 );
539
540 $participant->add($this->user->getId(), IL_LSO_ADMIN);
541 $participant->updateNotification($this->user->getId(), $this->settings->get('mail_lso_admin_notification', true));
542
543
544 $settings = new \ilContainerSortingSettings($new_object->getId());
545 $settings->setSortMode(\ilContainer::SORT_MANUAL);
546 $settings->setSortDirection(\ilContainer::SORT_DIRECTION_ASC);
549 $settings->save();
550
551 ilUtil::sendSuccess($this->lng->txt('object_added'), true);
552 $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
554 $this->getReturnLocation(
555 "save",
556 $this->ctrl->getLinkTarget($this, self::CMD_SETTINGS, "", false, false)
557 )
558 );
559 }
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 664 of file class.ilObjLearningSequenceGUI.php.

664 : bool
665 {
666 return $this->access->checkAccess($which, "", $this->ref_id);
667 }

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

+ Here is the caller graph for this function:

◆ checkLPAccess()

ilObjLearningSequenceGUI::checkLPAccess ( )
protected

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

670 {
671 $ref_id = $this->getObject()->getRefId();
672 $is_participant = ilLearningSequenceParticipants::_isParticipant($ref_id, $this->user->getId());
673
674 $lp_access = ilLearningProgressAccess::checkAccess($ref_id, $is_participant);
675 $may_edit_lp_settings = $this->checkAccess('edit_learning_progress');
676
677 return ($lp_access || $may_edit_lp_settings);
678 }
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 521 of file class.ilObjLearningSequenceGUI.php.

522 {
523 parent::createObject();
524 }

◆ createMailSignature()

ilObjLearningSequenceGUI::createMailSignature ( )

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

711 {
712 $link = chr(13) . chr(10) . chr(13) . chr(10);
713 $link .= $this->lng->txt('lso_mail_permanent_link');
714 $link .= chr(13) . chr(10) . chr(13) . chr(10);
715 $link .= ilLink::_getLink($this->object->getRefId());
716
717 return rawurlencode(base64_encode($link));
718 }

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 209 of file class.ilObjLearningSequenceGUI.php.

210 {
211 $next_class = $this->ctrl->getNextClass($this);
212 $cmd = $this->ctrl->getCmd();
214
215 parent::prepareOutput();
216 $this->addToNavigationHistory();
217 //showRepTree is from containerGUI;
218 //LSO will attach allowed subitems to whitelist
219 //see: $this::getAdditionalWhitelistTypes
220
221 $in_player = (
222 $next_class === 'ilobjlearningsequencelearnergui'
223 && $cmd === 'view'
224 );
225
226 $tpl->setPermanentLink("lso", $this->ref_id);
227
228 switch ($next_class) {
229 case "ilcommonactiondispatchergui":
231 $this->ctrl->forwardCommand($gui);
232 break;
233 case "ilinfoscreengui":
234 $this->info($cmd);
235 break;
236 case "ilpermissiongui":
237 $this->permissions($cmd);
238 break;
239 case "ilobjlearningsequencesettingsgui":
240 $this->settings($cmd);
241 break;
242 case "ilobjlearningsequencecontentgui":
243 $this->manageContent($cmd);
244 break;
245 case "ilobjlearningsequencelearnergui":
246 $this->learnerView($cmd);
247 break;
248 case "illearningsequencemembershipgui":
249 $this->manage_members($cmd);
250 break;
251 case 'ilmailmembersearchgui':
252 $this->mail();
253 break;
254 case 'illearningprogressgui':
255 $this->learningProgress($cmd);
256 break;
257 case 'ilexportgui':
258 $this->export();
259 break;
260 case 'ilobjectcopygui':
261 $cp = new ilObjectCopyGUI($this);
262 $cp->setType('lso');
263 $this->ctrl->forwardCommand($cp);
264 break;
265 case 'ilobjindividualassessmentgui':
266 $struct = ['ilrepositorygui','ilobjindividualassessmentgui'];
267 if ($cmd === 'edit') {
268 $struct[] = 'ilindividualassessmentsettingsgui';
269 }
270 $this->ctrl->redirectByClass($struct, $cmd);
271 break;
272 case 'ilobjtestgui':
273 $struct = ['ilrepositorygui','ilobjtestgui'];
274 $this->ctrl->redirectByClass($struct, $cmd);
275 break;
276
277 case false:
278 if ($cmd === '') {
279 $cmd = self::CMD_VIEW;
280 }
281
282 switch ($cmd) {
283 case self::CMD_IMPORT:
284 $this->importFileObject();
285 break;
286 case self::CMD_INFO:
288 $this->info();
289 break;
290 case self::CMD_VIEW:
295 case self::CMD_SAVE:
296 case self::CMD_CREATE:
297 case self::CMD_LP:
299 $this->$cmd();
300 break;
301 case self::CMD_CANCEL:
302 if ($this->getCreationMode()) {
303 $this->cancelCreation();
304 }
305 break;
307 $this->removeFromDeskObject();
308 $this->view();
309 break;
311 $this->addToDeskObject();
312 $this->view();
313 break;
314 case self::CMD_CUT:
315 $this->cutObject();
316 break;
318 $this->showPasteTreeObject();
319 break;
322 break;
323 case self::CMD_LINK:
324 $this->linkObject();
325 break;
326 case self::CMD_DELETE:
327 $this->deleteObject();
328 break;
330 $this->confirmedDeleteObject();
331 break;
334 break;
336 $this->trashObject();
337 break;
339 $this->undeleteObject();
340 break;
341
345 $cmd = self::CMD_CONTENT;
346 $this->$cmd();
347 break;
348
349 default:
350 throw new ilException("ilObjLearningSequenceGUI: Invalid command '$cmd'");
351 }
352 break;
353 default:
354 throw new ilException("ilObjLearningSequenceGUI: Can't forward to next class $next_class");
355 }
356
357 if (!$in_player) {
358 $this->addHeaderAction();
359 }
360 }
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.
Base class for ILIAS Exception handling.
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.
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_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(), 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 507 of file class.ilObjLearningSequenceGUI.php.

508 {
509 $this->tabs->setTabActive(self::TAB_EXPORT);
510 $gui = new ilExportGUI($this);
511 $gui->addFormat("xml");
512
513 $this->ctrl->forwardCommand($gui);
514 }
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 148 of file class.ilObjLearningSequenceGUI.php.

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

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 758 of file class.ilObjLearningSequenceGUI.php.

758 : array
759 {
760 $types = array_filter(
761 array_keys($this->obj_definition->getSubObjects('lso', false)),
762 function ($type) {
763 return $type !== 'rolf';
764 }
765 );
766
767 return $types;
768 }
$type

References $type.

◆ getClassForTabs()

ilObjLearningSequenceGUI::getClassForTabs ( string  $cmd)
protected

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

690 : string
691 {
692 switch ($cmd) {
694 return 'ilObjLearningSequenceContentGUI';
696 return 'ilObjLearningSequenceLearnerGUI';
698 return 'ilObjLearningSequenceSettingsGUI';
699 case self::CMD_INFO:
700 return 'ilInfoScreenGUI';
702 return 'ilPermissionGUI';
703 case self::CMD_LP:
704 return 'ilLearningProgressGUI';
705 }
706
707 throw new InvalidArgumentException('cannot resolve class for command: ' . $cmd);
708 }

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 680 of file class.ilObjLearningSequenceGUI.php.

680 : string
681 {
682 $class = $this->getClassForTabs($cmd);
683 $class_path = [
684 strtolower('ilObjLearningSequenceGUI'),
685 $class
686 ];
687 return $this->ctrl->getLinkTargetByClass($class_path, $cmd);
688 }

References getClassForTabs().

+ Here is the call graph for this function:

◆ getLocalRoles()

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

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

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

References ilObjRole\_getTranslation().

+ Here is the call graph for this function:

◆ getObject()

ilObjLearningSequenceGUI::getObject ( )

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

721 {
722 if ($this->object === null) {
723 $this->object = ilObjLearningSequence::getInstanceByRefId($this->ref_id);
724 }
725
726 return $this->object;
727 }
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 575 of file class.ilObjLearningSequenceGUI.php.

576 {
577 if ($this->checkAccess("read")) {
578 $this->tabs->addTab(
579 self::TAB_CONTENT_MAIN,
580 $this->lng->txt(self::TAB_CONTENT_MAIN),
581 $this->ctrl->getLinkTarget($this, self::CMD_VIEW, "", false, false)
582 );
583 }
584
585 if ($this->checkAccess("read") || $this->checkAccess("visible")) {
586 $this->tabs->addTab(
587 self::TAB_INFO,
588 $this->lng->txt(self::TAB_INFO),
589 $this->getLinkTarget(self::CMD_INFO)
590 );
591 }
592
593 if ($this->checkAccess("write")) {
594 $this->tabs->addTab(
595 self::TAB_SETTINGS,
596 $this->lng->txt(self::TAB_SETTINGS),
597 $this->getLinkTarget(self::CMD_SETTINGS)
598 );
599 }
600
601 if ($this->checkAccess("read")) {
602 if ($this->checkAccess("manage_members")
603 || (
604 $this->getObject()->getLSSettings()->getMembersGallery()
605 &&
606 $this->getObject()->getLSRoles()->isMember((int) $this->user->getId())
607 )
608 ) {
609 $this->tabs->addTab(
610 self::TAB_MEMBERS,
611 $this->lng->txt(self::TAB_MEMBERS),
612 $this->ctrl->getLinkTarget($this, self::CMD_MEMBERS, "", false, false)
613 );
614 }
615 }
616
618 $this->tabs->addTab(
619 self::TAB_LP,
620 $this->lng->txt(self::TAB_LP),
621 $this->getLinkTarget(self::CMD_LP)
622 );
623 }
624
625 if ($this->checkAccess("write")) {
626 $this->tabs->addTab(
627 self::TAB_EXPORT,
628 $this->lng->txt(self::TAB_EXPORT),
629 $this->ctrl->getLinkTargetByClass("ilexportgui", "")
630 );
631 }
632
633 if ($this->checkAccess("edit_permission")) {
634 $this->tabs->addTab(
635 self::TAB_PERMISSIONS,
636 $this->lng->txt(self::TAB_PERMISSIONS),
637 $this->getLinkTarget(self::CMD_PERMISSIONS)
638 );
639 }
640 }
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 729 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 142 of file class.ilObjLearningSequenceGUI.php.

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

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 373 of file class.ilObjLearningSequenceGUI.php.

374 {
375 $this->tabs->setTabActive(self::TAB_INFO);
376 $this->ctrl->setCmdClass('ilinfoscreengui');
377 $this->ctrl->setCmd($cmd);
378 $info = new ilInfoScreenGUI($this);
379 $this->ctrl->forwardCommand($info);
380 }
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 516 of file class.ilObjLearningSequenceGUI.php.

517 {
518 return $form;
519 }

◆ isAccessible()

static ilObjLearningSequenceGUI::isAccessible ( int  $id)
staticprotected

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

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

References hasAccess().

+ Here is the call graph for this function:

◆ learnerView()

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

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

440 {
441 $this->tabs->activateTab(self::TAB_CONTENT_MAIN);
442 $this->addSubTabsForContent($cmd);
443 $this->tabs->activateSubTab(self::TAB_VIEW_CONTENT);
444
445 $gui = $this->object->getLocalDI()["gui.learner"];
446
447 $this->ctrl->setCmd($cmd);
448 $this->ctrl->forwardCommand($gui);
449 }

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 483 of file class.ilObjLearningSequenceGUI.php.

484 {
485 $this->tabs->setTabActive(self::TAB_LP);
486
487 $for_user = $this->user->getId();
488
489 if ($_GET['user_id']) {
490 $for_user = $_GET['user_id'];
491 }
492
493 $lp_gui = new ilLearningProgressGUI(
495 $this->getObject()->getRefId(),
496 $for_user
497 );
498
499 if ($cmd === self::CMD_LP) {
500 $cmd = '';
501 }
502
503 $this->ctrl->setCmd($cmd);
504 $this->ctrl->forwardCommand($lp_gui);
505 }
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 462 of file class.ilObjLearningSequenceGUI.php.

463 {
464 $this->tabs->setTabActive(self::TAB_MEMBERS);
465
467 $this,
468 $this->getObject(),
469 $this->getTrackingObject(),
471 $this->lng,
472 $this->ctrl,
473 $this->access,
474 $this->rbac_review,
475 $this->settings,
476 $this->toolbar
477 );
478
479 $this->ctrl->setCmd($cmd);
480 $this->ctrl->forwardCommand($ms_gui);
481 }
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 420 of file class.ilObjLearningSequenceGUI.php.

421 {
422 $this->tabs->activateTab(self::TAB_CONTENT_MAIN);
423 $this->addSubTabsForContent($cmd);
424 $this->tabs->activateSubTab(self::TAB_MANAGE);
425
427 $this,
428 $this->ctrl,
429 $this->tpl,
430 $this->lng,
431 $this->access,
432 new ilConfirmationGUI(),
434 );
435 $this->ctrl->setCmd($cmd);
436 $this->ctrl->forwardCommand($gui);
437 }
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 451 of file class.ilObjLearningSequenceGUI.php.

452 {
453 $may_manage_members = $this->checkAccess("edit_members");
454 $this->ctrl->setCmdClass('ilLearningSequenceMembershipGUI');
455 if ($may_manage_members) {
456 $this->manage_members(self::CMD_MANAGE_MEMBERS);
457 } else {
458 $this->manage_members(self::CMD_MEMBERS_GALLERY);
459 }
460 }

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 382 of file class.ilObjLearningSequenceGUI.php.

383 {
384 $this->tabs->setTabActive(self::TAB_PERMISSIONS);
385 $perm_gui = new ilPermissionGUI($this);
386 $this->ctrl->setCmd($cmd);
387 $this->ctrl->forwardCommand($perm_gui);
388 }
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 199 of file class.ilObjLearningSequenceGUI.php.

200 {
202 $this->object->getType(),
203 $this->object->getRefId(),
204 $this->object->getId(),
205 $this->user->getId()
206 );
207 }
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 570 of file class.ilObjLearningSequenceGUI.php.

571 {
572 $this->ls_object->leave($usr_id);
573 }

◆ renderObject()

ilObjLearningSequenceGUI::renderObject ( )

render the object

Reimplemented from ilContainerGUI.

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

643 {
644 // disables this method in ilContainerGUI
645 }

◆ save()

ilObjLearningSequenceGUI::save ( )
protected

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

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

◆ settings()

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

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

391 {
392 $this->tabs->activateTab(self::TAB_SETTINGS);
394 $this->getObject(),
395 $this->ctrl,
396 $this->lng,
397 $this->tpl,
398 $this->obj_service
399 );
400 $this->ctrl->setCmd($cmd);
401 $this->ctrl->forwardCommand($gui);
402 }
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 561 of file class.ilObjLearningSequenceGUI.php.

562 {
563 if ($this->checkAccess('unparticipate')) {
564 $usr_id = (int) $this->user->getId();
565 $this->getObject()->getLSRoles()->leave($usr_id);
566 $this->learnerView();
567 }
568 }

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

+ Here is the call graph for this function:

◆ view()

ilObjLearningSequenceGUI::view ( )
protected

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

405 {
406 $this->tabs->clearSubTabs();
407 if ($this->checkAccess("write")) {
408 $this->manageContent(self::CMD_CONTENT);
409 return;
410 }
411 if ($this->checkAccess("read")) {
412 $this->learnerView(self::CMD_LEARNER_VIEW);
414 return;
415 }
416 $this->info(self::CMD_INFO);
418 }

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 87 of file class.ilObjLearningSequenceGUI.php.

Referenced by getObject().

◆ ACCESS_READ

const ilObjLearningSequenceGUI::ACCESS_READ = 'read'

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

◆ ACCESS_VISIBLE

const ilObjLearningSequenceGUI::ACCESS_VISIBLE = 'visible'

Definition at line 85 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_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 81 of file class.ilObjLearningSequenceGUI.php.

◆ MAIL_ALLOWED_TUTORS

const ilObjLearningSequenceGUI::MAIL_ALLOWED_TUTORS = 2

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

◆ TAB_CONTENT_MAIN

const ilObjLearningSequenceGUI::TAB_CONTENT_MAIN = "manage_content_maintab"

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

◆ TAB_EXPORT

const ilObjLearningSequenceGUI::TAB_EXPORT = "export"

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

◆ TAB_INFO

const ilObjLearningSequenceGUI::TAB_INFO = "show_summary"

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

◆ TAB_LP

const ilObjLearningSequenceGUI::TAB_LP = "learning_progress"

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

◆ TAB_MANAGE

const ilObjLearningSequenceGUI::TAB_MANAGE = "manage"

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

◆ TAB_MEMBERS

const ilObjLearningSequenceGUI::TAB_MEMBERS = "members"

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

◆ TAB_PERMISSIONS

const ilObjLearningSequenceGUI::TAB_PERMISSIONS = "perm_settings"

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

◆ TAB_SETTINGS

const ilObjLearningSequenceGUI::TAB_SETTINGS = "settings"

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

◆ TAB_VIEW_CONTENT

const ilObjLearningSequenceGUI::TAB_VIEW_CONTENT = "view_content"

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


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