ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjLearningSequenceGUI Class Reference

Class ilObjLearningSequenceGUI. More...

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

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 addToNavigationHistory ()
 
 unparticipate ()
 
 getTabs ()
 
 renderObject ()
 
 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 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...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
 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 ()
 
 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 ()
 public More...
 
 cloneWizardPageListObject ()
 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...
 
 showRepTree ()
 Show tree. More...
 
 trashObject ()
 Show trash content of object. 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...
 
- 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 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 ()
 list childs of current object 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...
 

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

 getCurrentItemLearningProgress ()
 
 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)
 
 create ()
 
 save ()
 
 afterSave (ilObject $new_object)
 
 removeMember (int $usr_id)
 
 addSubTabsForContent ()
 
 checkAccess ($which)
 
 checkLPAccess ()
 
 getLinkTarget (string $cmd)
 
 getClassForTabs (string $cmd)
 
 getLearnerItems (int $usr_id)
 
 getCurrentItemForLearner (int $usr_id)
 
 getTrackingObject ()
 
 getAdditionalWhitelistTypes ()
 append additional types to ilRepositoryExplorerGUI's whitelist More...
 
- Protected Member Functions inherited from ilContainerGUI
 getEditFormValues ()
 Get values for edit form. More...
 
 afterUpdate ()
 
 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...
 
 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...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs public More...
 
 setAdminTabs ()
 set admin tabs 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...
 

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
 
 $app_event_handler
 
 $ui
 
- Protected Attributes inherited from ilObjectGUI
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 
 $object_service
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjLearningSequenceGUI::__construct ( )

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

References $_GET, $DIC, getObject(), ilObjLearningSequence\OBJ_TYPE, settings(), and user().

99  {
100  $this->ref_id = (int) $_GET['ref_id'];
101  parent::__construct([], $this->ref_id, true, false);
102 
103  $this->obj_type = ilObjLearningSequence::OBJ_TYPE;
104 
105  global $DIC;
106  $this->ctrl = $DIC['ilCtrl'];
107  $this->lng = $DIC['lng'];
108  $this->user = $DIC['ilUser'];
109  $this->tabs = $DIC['ilTabs'];
110  $this->toolbar = $DIC['ilToolbar'];
111  $this->help = $DIC['ilHelp'];
112  $this->settings = $DIC['ilSetting'];
113  $this->access = $DIC['ilAccess'];
114  $this->rbac_review = $DIC['rbacreview'];
115  $this->ui_factory = $DIC['ui.factory'];
116  $this->ui_renderer = $DIC['ui.renderer'];
117  $this->log = $DIC["ilLoggerFactory"]->getRootLogger();
118  $this->app_event_handler = $DIC['ilAppEventHandler'];
119  $this->navigation_history = $DIC['ilNavigationHistory'];
120  $this->obj_definition = $DIC['objDefinition'];
121  $this->obj_service = $DIC->object();
122  $this->toolbar = $DIC['ilToolbar'];
123 
124  $this->help->setScreenIdComponent($this->obj_type);
125  $this->lng->loadLanguageModule($this->obj_type);
126 
127  $this->object = $this->getObject();
128  }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
user()
Definition: user.php:4
settings(string $cmd=self::CMD_SETTINGS)
+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjLearningSequenceGUI::_goto ( string  $target)
static

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

References ilObjectGUI\$ctrl, $DIC, and $id.

87  {
88  global $DIC;
89 
90  $ctrl = $DIC->ctrl();
91  $id = explode("_", $target);
92  $ctrl->setTargetScript("ilias.php");
93  $ctrl->initBaseClass("ilRepositoryGUI");
94  $ctrl->setParameterByClass("ilobjlearningsequencegui", "ref_id", $id[0]);
95  $ctrl->redirectByClass(array( "ilRepositoryGUI", "ilobjlearningsequencegui" ), self::CMD_VIEW);
96  }
global $DIC
Definition: saml.php:7
if(!array_key_exists('StateId', $_REQUEST)) $id
$target
Definition: test.php:19

◆ addCustomData()

ilObjLearningSequenceGUI::addCustomData (   $a_data)

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

References $f.

756  {
757  $res_data = array();
758  foreach ($a_data as $usr_id => $user_data) {
759  $res_data[$usr_id] = $user_data;
760  $udf_data = new ilUserDefinedData($usr_id);
761 
762  foreach ($udf_data->getAll() as $field => $value) {
763  list($f, $field_id) = explode('_', $field);
764  $res_data[$usr_id]['udf_' . $field_id] = (string) $value;
765  }
766  }
767 
768  return $res_data;
769  }
Class ilUserDefinedData.

◆ addSubTabsForContent()

ilObjLearningSequenceGUI::addSubTabsForContent ( )
protected

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

References checkAccess(), and getLinkTarget().

Referenced by learnerView(), and manageContent().

623  {
624  $this->tabs->addSubTab(
625  self::TAB_VIEW_CONTENT,
626  $this->lng->txt(self::TAB_VIEW_CONTENT),
627  $this->getLinkTarget(self::CMD_LEARNER_VIEW)
628  );
629 
630  if ($this->checkAccess("write")) {
631  $this->tabs->addSubTab(
632  self::TAB_MANAGE,
633  $this->lng->txt(self::TAB_MANAGE),
634  $this->getLinkTarget(self::CMD_CONTENT)
635  );
636  }
637  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToNavigationHistory()

ilObjLearningSequenceGUI::addToNavigationHistory ( )

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

References ilLink\_getLink(), and ilObjectGUI\getCreationMode().

Referenced by executeCommand().

323  {
324  if (
325  !$this->getCreationMode() &&
326  $this->access->checkAccess('read', '', $this->ref_id)
327  ) {
328  $link = ilLink::_getLink($this->ref_id, $this->obj_type);
329  $this->navigation_history->addItem($this->ref_id, $link, $this->obj_type);
330  }
331  }
getCreationMode()
get creation mode
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterSave()

ilObjLearningSequenceGUI::afterSave ( ilObject  $new_object)
protected

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

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

507  {
508  $participant = new ilLearningSequenceParticipants(
509  (int) $new_object->getId(),
510  $this->log,
513  );
514 
515  $participant->add($this->user->getId(), IL_LSO_ADMIN);
516  $participant->updateNotification($this->user->getId(), $this->settings->get('mail_lso_admin_notification', true));
517 
518 
519  $settings = new \ilContainerSortingSettings($new_object->getId());
520  $settings->setSortMode(\ilContainer::SORT_MANUAL);
521  $settings->setSortDirection(\ilContainer::SORT_DIRECTION_ASC);
523  $settings->setSortNewItemsPosition(\ilContainer::SORT_NEW_ITEMS_POSITION_BOTTOM);
524  $settings->save();
525 
526  ilUtil::sendSuccess($this->lng->txt('object_added'), true);
527  $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
529  $this->getReturnLocation(
530  "save",
531  $this->ctrl->getLinkTarget($this, self::CMD_SETTINGS, "", false, false)
532  )
533  );
534  }
const IL_LSO_ADMIN
user()
Definition: user.php:4
const SORT_NEW_ITEMS_POSITION_BOTTOM
getId()
get object id public
const SORT_NEW_ITEMS_ORDER_CREATION
settings(string $cmd=self::CMD_SETTINGS)
getRefId()
get reference id public
static redirect($a_script)
getReturnLocation($a_cmd, $a_location="")
get return location for command (command is method name without "Object", e.g.
+ Here is the call graph for this function:

◆ checkAccess()

ilObjLearningSequenceGUI::checkAccess (   $which)
protected

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

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

639  : bool
640  {
641  return $this->access->checkAccess($which, "", $this->ref_id);
642  }
+ Here is the caller graph for this function:

◆ checkLPAccess()

ilObjLearningSequenceGUI::checkLPAccess ( )
protected

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

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

Referenced by getTabs().

645  {
646  $ref_id = $this->getObject()->getRefId();
647  $is_participant = ilLearningSequenceParticipants::_isParticipant($ref_id, $this->user->getId());
648 
649  $lp_access = ilLearningProgressAccess::checkAccess($ref_id, $is_participant);
650  $may_edit_lp_settings = $this->checkAccess('edit_learning_progress');
651 
652  return ($lp_access || $may_edit_lp_settings);
653  }
user()
Definition: user.php:4
static checkAccess($a_ref_id, $a_allow_only_read=true)
check access to learning progress
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

ilObjLearningSequenceGUI::create ( )
protected

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

497  {
498  parent::createObject();
499  }

◆ createMailSignature()

ilObjLearningSequenceGUI::createMailSignature ( )

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

References ilLink\_getLink().

686  {
687  $link = chr(13) . chr(10) . chr(13) . chr(10);
688  $link .= $this->lng->txt('lso_mail_permanent_link');
689  $link .= chr(13) . chr(10) . chr(13) . chr(10);
690  $link .= ilLink::_getLink($this->object->getRefId());
691 
692  return rawurlencode(base64_encode($link));
693  }
+ Here is the call graph for this function:

◆ executeCommand()

ilObjLearningSequenceGUI::executeCommand ( )

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

References $_GET, ilObjectGUI\$tpl, ilLPStatus\_lookupStatus(), ilObjectGUI\addHeaderAction(), ilContainerGUI\addToDeskObject(), addToNavigationHistory(), ilObjectGUI\cancelCreation(), LSControlBuilder\CMD_CHECK_CURRENT_ITEM_LP, ilObjectGUI\confirmedDeleteObject(), ilContainerGUI\cutObject(), ilObjectGUI\deleteObject(), exit, export(), ilObjectGUI\getCreationMode(), getCurrentItemLearningProgress(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), ilObjectGUI\importFileObject(), info(), ilContainerGUI\keepObjectsInClipboardObject(), learnerView(), learningProgress(), ilContainerGUI\linkObject(), Monolog\Handler\mail(), manage_members(), manageContent(), LSControlBuilder\PARAM_LP_CURRENT_ITEM_OBJID, ilContainerGUI\performPasteIntoMultipleObjectsObject(), permissions(), ilContainerGUI\removeFromDeskObject(), settings(), ilContainerGUI\showPasteTreeObject(), ilContainerGUI\showRepTree(), ilContainerGUI\trashObject(), ilContainerGUI\undeleteObject(), user(), and view().

153  {
154  $next_class = $this->ctrl->getNextClass($this);
155  $cmd = $this->ctrl->getCmd();
156 
157  //exit real early for LP-checking.
160  $current_obj_obj_id = (int) $_GET[LSControlBuilder::PARAM_LP_CURRENT_ITEM_OBJID];
161 
162  print (int) ilLPStatus::_lookupStatus(
163  $current_obj_obj_id,
164  $this->user->getId(),
165  true
166  );
167  exit;
168  }
169 
170  //this is the previous way (before #28840)
171  //with iteration over learner items.
172  print $this->getCurrentItemLearningProgress();
173  exit;
174  }
175 
176  $tpl = $this->tpl;
177  parent::prepareOutput();
178  $this->addToNavigationHistory();
179  //showRepTree is from containerGUI;
180  //LSO will attach allowed subitems to whitelist
181  //see: $this::getAdditionalWhitelistTypes
182  $this->showRepTree();
183 
184  $in_player = (
185  $next_class === 'ilobjlearningsequencelearnergui'
186  && $cmd === 'view'
187  );
188 
189  $tpl->setPermanentLink("lso", $this->ref_id);
190 
191  switch ($next_class) {
192  case "ilcommonactiondispatchergui":
194  $this->ctrl->forwardCommand($gui);
195  break;
196  case "ilinfoscreengui":
197  $this->info($cmd);
198  break;
199  case "ilpermissiongui":
200  $this->permissions($cmd);
201  break;
202  case "ilobjlearningsequencesettingsgui":
203  $this->settings($cmd);
204  break;
205  case "ilobjlearningsequencecontentgui":
206  $this->manageContent($cmd);
207  break;
208  case "ilobjlearningsequencelearnergui":
209  $this->learnerView($cmd);
210  break;
211  case "illearningsequencemembershipgui":
212  $this->manage_members($cmd);
213  break;
214  case 'ilmailmembersearchgui':
215  $this->mail();
216  break;
217  case 'illearningprogressgui':
218  $this->learningProgress($cmd);
219  break;
220  case 'ilexportgui':
221  $this->export();
222  break;
223  case 'ilobjectcopygui':
224  $cp = new ilObjectCopyGUI($this);
225  $cp->setType('lso');
226  $this->ctrl->forwardCommand($cp);
227  break;
228  case 'ilobjindividualassessmentgui':
229  $struct = ['ilrepositorygui','ilobjindividualassessmentgui'];
230  if ($cmd === 'edit') {
231  $struct[] = 'ilindividualassessmentsettingsgui';
232  }
233  $this->ctrl->redirectByClass($struct, $cmd);
234 
235  break;
236 
237  case false:
238  if ($cmd === '') {
239  $cmd = self::CMD_VIEW;
240  }
241 
242  switch ($cmd) {
243  case self::CMD_IMPORT:
244  $this->importFileObject();
245  break;
246  case self::CMD_INFO:
247  case self::CMD_INFO_SCREEN:
248  $this->info();
249  break;
250  case self::CMD_VIEW:
251  case self::CMD_LEARNER_VIEW:
252  case self::CMD_CONTENT:
253  case self::CMD_MEMBERS:
254  case self::CMD_SETTINGS:
255  case self::CMD_SAVE:
256  case self::CMD_CREATE:
257  case self::CMD_LP:
258  case self::CMD_UNPARTICIPATE:
259  $this->$cmd();
260  break;
261  case self::CMD_CANCEL:
262  if ($this->getCreationMode()) {
263  $this->cancelCreation();
264  }
265  break;
266  case self::CMD_REMOVE_FROM_DESK:
267  $this->removeFromDeskObject();
268  $this->view();
269  break;
270  case self::CMD_ADD_TO_DESK:
271  $this->addToDeskObject();
272  $this->view();
273  break;
274  case self::CMD_CUT:
275  $this->cutObject();
276  break;
277  case self::CMD_CUT_SHOWTREE:
278  $this->showPasteTreeObject();
279  break;
280  case self::CMD_CUT_CLIPBOARD:
282  break;
283  case self::CMD_LINK:
284  $this->linkObject();
285  break;
286  case self::CMD_DELETE:
287  $this->deleteObject();
288  break;
289  case self::CMD_DELETE_CONFIRMED:
290  $this->confirmedDeleteObject();
291  break;
292  case self::CMD_PERFORM_PASTE:
294  break;
295  case self::CMD_SHOW_TRASH:
296  $this->trashObject();
297  break;
298  case self::CMD_UNDELETE:
299  $this->undeleteObject();
300  break;
301 
302  case self::CMD_CANCEL_CUT:
303  case self::CMD_CANCEL_DELETE:
304  case self::CMD_CANCEL_LINK:
305  $cmd = self::CMD_CONTENT;
306  $this->$cmd();
307  break;
308 
309  default:
310  throw new ilException("ilObjLearningSequenceGUI: Invalid command '$cmd'");
311  }
312  break;
313  default:
314  throw new ilException("ilObjLearningSequenceGUI: Can't forward to next class $next_class");
315  }
316 
317  if (!$in_player) {
318  $this->addHeaderAction();
319  }
320  }
cancelCreation()
cancel create action and go back to repository parent
GUI class for the workflow of copying objects.
$_GET["client_id"]
trashObject()
Show trash content of object.
learningProgress(string $cmd=self::CMD_LP)
const PARAM_LP_CURRENT_ITEM_OBJID
confirmedDeleteObject()
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
user()
Definition: user.php:4
mail($to, $subject, $message, $additional_headers=null, $additional_parameters=null)
undeleteObject()
Get objects back from trash.
linkObject()
create an new reference of an object in tree it's like a hard link of unix
manage_members(string $cmd=self::CMD_MANAGE_MEMBERS)
manageContent(string $cmd=self::CMD_CONTENT)
settings(string $cmd=self::CMD_SETTINGS)
showPasteTreeObject()
Show paste tree.
importFileObject($parent_id=null, $a_catch_errors=true)
Import.
learnerView(string $cmd=self::CMD_LEARNER_VIEW)
exit
Definition: backend.php:16
getCreationMode()
get creation mode
cutObject()
cut object(s) out from a container and write the information to clipboard
deleteObject($a_error=false)
Display deletion confirmation screen.
permissions(string $cmd=self::CMD_PERMISSIONS)
addHeaderAction()
Add header action menu.
keepObjectsInClipboardObject()
Keep objects in the clipboard.
static _lookupStatus($a_obj_id, $a_user_id, $a_create=true)
Lookup status.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
+ Here is the call graph for this function:

◆ export()

ilObjLearningSequenceGUI::export ( )
protected

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

Referenced by executeCommand().

483  {
484  $this->tabs->setTabActive(self::TAB_EXPORT);
485  $gui = new ilExportGUI($this);
486  $gui->addFormat("xml");
487 
488  $this->ctrl->forwardCommand($gui);
489  }
Export User Interface Class.
+ Here is the caller graph for this function:

◆ getAdditionalWhitelistTypes()

ilObjLearningSequenceGUI::getAdditionalWhitelistTypes ( )
protected

append additional types to ilRepositoryExplorerGUI's whitelist

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

References $type.

743  : array
744  {
745  $types = array_filter(
746  array_keys($this->obj_definition->getSubObjects('lso', false)),
747  function ($type) {
748  return $type !== 'rolf';
749  }
750  );
751 
752  return $types;
753  }
$type

◆ getClassForTabs()

ilObjLearningSequenceGUI::getClassForTabs ( string  $cmd)
protected

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

Referenced by getLinkTarget().

665  : string
666  {
667  switch ($cmd) {
668  case self::CMD_CONTENT:
669  return 'ilObjLearningSequenceContentGUI';
670  case self::CMD_LEARNER_VIEW:
671  return 'ilObjLearningSequenceLearnerGUI';
672  case self::CMD_SETTINGS:
673  return 'ilObjLearningSequenceSettingsGUI';
674  case self::CMD_INFO:
675  return 'ilInfoScreenGUI';
676  case self::CMD_PERMISSIONS:
677  return 'ilPermissionGUI';
678  case self::CMD_LP:
679  return 'ilLearningProgressGUI';
680  }
681 
682  throw new InvalidArgumentException('cannot resolve class for command: ' . $cmd);
683  }
+ Here is the caller graph for this function:

◆ getCurrentItemForLearner()

ilObjLearningSequenceGUI::getCurrentItemForLearner ( int  $usr_id)
protected

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

References getObject().

Referenced by getCurrentItemLearningProgress(), and learnerView().

700  : int
701  {
702  return $this->getObject()->getCurrentItemForLearner($usr_id);
703  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCurrentItemLearningProgress()

ilObjLearningSequenceGUI::getCurrentItemLearningProgress ( )
protected

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

References $index, getCurrentItemForLearner(), getLearnerItems(), and user().

Referenced by executeCommand().

131  {
132  $usr_id = (int) $this->user->getId();
133  $items = $this->getLearnerItems($usr_id);
134  $current_item_ref_id = $this->getCurrentItemForLearner($usr_id);
135  foreach ($items as $index => $item) {
136  if ($item->getRefId() === $current_item_ref_id) {
137  return $item->getLearningProgressStatus();
138  }
139  }
140  }
$index
Definition: metadata.php:60
user()
Definition: user.php:4
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLearnerItems()

ilObjLearningSequenceGUI::getLearnerItems ( int  $usr_id)
protected

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

References getObject().

Referenced by getCurrentItemLearningProgress(), and learnerView().

695  : array
696  {
697  return $this->getObject()->getLSLearnerItems($usr_id);
698  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLinkTarget()

ilObjLearningSequenceGUI::getLinkTarget ( string  $cmd)
protected

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

References getClassForTabs().

Referenced by addSubTabsForContent(), and getTabs().

655  : string
656  {
657  $class = $this->getClassForTabs($cmd);
658  $class_path = [
659  strtolower('ilObjLearningSequenceGUI'),
660  $class
661  ];
662  return $this->ctrl->getLinkTargetByClass($class_path, $cmd);
663  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLocalRoles()

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

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

References $title, and ilObjRole\_getTranslation().

722  : array
723  {
724  $local_roles = $this->object->getLocalLearningSequenceRoles(false);
725  $lso_member = $this->object->getDefaultMemberRole();
726  $lso_roles = array();
727 
728  if (in_array($lso_member, $local_roles)) {
729  $lso_roles[$lso_member] = ilObjRole::_getTranslation(array_search($lso_member, $local_roles));
730  unset($local_roles[$lso_roles[$lso_member]]);
731  }
732 
733  foreach ($local_roles as $title => $role_id) {
734  $lso_roles[$role_id] = ilObjRole::_getTranslation($title);
735  }
736 
737  return $lso_roles;
738  }
static _getTranslation($a_role_title)
+ Here is the call graph for this function:

◆ getObject()

ilObjLearningSequenceGUI::getObject ( )

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

References $object, and ilObjLearningSequence\getInstanceByRefId().

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

706  {
707  if ($this->object === null) {
708  $this->object = ilObjLearningSequence::getInstanceByRefId($this->ref_id);
709  }
710 
711  return $this->object;
712  }
static getInstanceByRefId(int $ref_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTabs()

ilObjLearningSequenceGUI::getTabs ( )

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

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

551  {
552  if ($this->checkAccess("read")) {
553  $this->tabs->addTab(
554  self::TAB_CONTENT_MAIN,
555  $this->lng->txt(self::TAB_CONTENT_MAIN),
556  $this->ctrl->getLinkTarget($this, self::CMD_VIEW, "", false, false)
557  );
558  }
559 
560  if ($this->checkAccess("read") || $this->checkAccess("visible")) {
561  $this->tabs->addTab(
562  self::TAB_INFO,
563  $this->lng->txt(self::TAB_INFO),
564  $this->getLinkTarget(self::CMD_INFO)
565  );
566  }
567 
568  if ($this->checkAccess("write")) {
569  $this->tabs->addTab(
570  self::TAB_SETTINGS,
571  $this->lng->txt(self::TAB_SETTINGS),
572  $this->getLinkTarget(self::CMD_SETTINGS)
573  );
574  }
575 
576  if ($this->checkAccess("read")) {
577  if ($this->checkAccess("manage_members")
578  || (
579  $this->getObject()->getLSSettings()->getMembersGallery()
580  &&
581  $this->object->isMember((int) $this->user->getId())
582  )
583  ) {
584  $this->tabs->addTab(
585  self::TAB_MEMBERS,
586  $this->lng->txt(self::TAB_MEMBERS),
587  $this->ctrl->getLinkTarget($this, self::CMD_MEMBERS, "", false, false)
588  );
589  }
590  }
591 
593  $this->tabs->addTab(
594  self::TAB_LP,
595  $this->lng->txt(self::TAB_LP),
596  $this->getLinkTarget(self::CMD_LP)
597  );
598  }
599 
600  if ($this->checkAccess("write")) {
601  $this->tabs->addTab(
602  self::TAB_EXPORT,
603  $this->lng->txt(self::TAB_EXPORT),
604  $this->ctrl->getLinkTargetByClass("ilexportgui", "")
605  );
606  }
607 
608  if ($this->checkAccess("edit_permission")) {
609  $this->tabs->addTab(
610  self::TAB_PERMISSIONS,
611  $this->lng->txt(self::TAB_PERMISSIONS),
612  $this->getLinkTarget(self::CMD_PERMISSIONS)
613  );
614  }
615  }
user()
Definition: user.php:4
static _enabledLearningProgress()
check wether learing progress is enabled or not
+ Here is the call graph for this function:

◆ getTrackingObject()

ilObjLearningSequenceGUI::getTrackingObject ( )
protected

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

Referenced by manage_members().

715  {
716  return new ilObjUserTracking();
717  }
+ Here is the caller graph for this function:

◆ info()

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

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

References $info.

Referenced by executeCommand(), and view().

334  {
335  $this->tabs->setTabActive(self::TAB_INFO);
336  $this->ctrl->setCmdClass('ilinfoscreengui');
337  $this->ctrl->setCmd($cmd);
338  $info = new ilInfoScreenGUI($this);
339  $this->ctrl->forwardCommand($info);
340  }
Class ilInfoScreenGUI.
$info
Definition: index.php:5
+ Here is the caller graph for this function:

◆ initDidacticTemplate()

ilObjLearningSequenceGUI::initDidacticTemplate ( ilPropertyFormGUI  $form)
protected

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

References $form.

492  {
493  return $form;
494  }
if(isset($_POST['submit'])) $form

◆ learnerView()

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

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

References addSubTabsForContent(), getCurrentItemForLearner(), getLearnerItems(), getObject(), and user().

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

400  {
401  $this->tabs->activateTab(self::TAB_CONTENT_MAIN);
402  $this->addSubTabsForContent($cmd);
403  $this->tabs->activateSubTab(self::TAB_VIEW_CONTENT);
404 
405  $usr_id = (int) $this->user->getId();
406  $items = $this->getLearnerItems($usr_id);
407  $current_item_ref_id = $this->getCurrentItemForLearner($usr_id);
408 
410  $this->getObject(),
411  $usr_id,
412  $items,
413  $current_item_ref_id,
414  $this->ctrl,
415  $this->lng,
416  $this->tpl,
417  $this->toolbar,
418  $this->ui_factory,
419  $this->ui_renderer
420  );
421 
422  $this->ctrl->setCmd($cmd);
423  $this->ctrl->forwardCommand($gui);
424  }
Class ilObjLearningSequenceLearnerGUI.
user()
Definition: user.php:4
+ 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 458 of file class.ilObjLearningSequenceGUI.php.

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

Referenced by executeCommand().

459  {
460  $this->tabs->setTabActive(self::TAB_LP);
461 
462  $for_user = $this->user->getId();
463 
464  if ($_GET['user_id']) {
465  $for_user = $_GET['user_id'];
466  }
467 
468  $lp_gui = new ilLearningProgressGUI(
470  $this->getObject()->getRefId(),
471  $for_user
472  );
473 
474  if ($cmd === self::CMD_LP) {
475  $cmd = '';
476  }
477 
478  $this->ctrl->setCmd($cmd);
479  $this->ctrl->forwardCommand($lp_gui);
480  }
$_GET["client_id"]
user()
Definition: user.php:4
Class ilObjUserTrackingGUI.
+ 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 437 of file class.ilObjLearningSequenceGUI.php.

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

Referenced by executeCommand(), and members().

438  {
439  $this->tabs->setTabActive(self::TAB_MEMBERS);
440 
441  $ms_gui = new ilLearningSequenceMembershipGUI(
442  $this,
443  $this->getObject(),
444  $this->getTrackingObject(),
446  $this->lng,
447  $this->ctrl,
448  $this->access,
449  $this->rbac_review,
450  $this->settings,
451  $this->toolbar
452  );
453 
454  $this->ctrl->setCmd($cmd);
455  $this->ctrl->forwardCommand($ms_gui);
456  }
settings(string $cmd=self::CMD_SETTINGS)
static _getInstance()
Get instance of ilPrivacySettings.
GUI class for learning sequence membership features.
+ 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 380 of file class.ilObjLearningSequenceGUI.php.

References addSubTabsForContent().

Referenced by executeCommand(), and view().

381  {
382  $this->tabs->activateTab(self::TAB_CONTENT_MAIN);
383  $this->addSubTabsForContent($cmd);
384  $this->tabs->activateSubTab(self::TAB_MANAGE);
385 
387  $this,
388  $this->ctrl,
389  $this->tpl,
390  $this->lng,
391  $this->access,
392  new ilConfirmationGUI(),
393  new LSItemOnlineStatus()
394  );
395  $this->ctrl->setCmd($cmd);
396  $this->ctrl->forwardCommand($gui);
397  }
Class ilObjLearningSequenceContentGUI.
Confirmation screen class.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ members()

ilObjLearningSequenceGUI::members ( )
protected

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

References checkAccess(), and manage_members().

427  {
428  $may_manage_members = $this->checkAccess("edit_members");
429  $this->ctrl->setCmdClass('ilLearningSequenceMembershipGUI');
430  if ($may_manage_members) {
431  $this->manage_members(self::CMD_MANAGE_MEMBERS);
432  } else {
433  $this->manage_members(self::CMD_MEMBERS_GALLERY);
434  }
435  }
manage_members(string $cmd=self::CMD_MANAGE_MEMBERS)
+ Here is the call graph for this function:

◆ permissions()

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

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

Referenced by executeCommand().

343  {
344  $this->tabs->setTabActive(self::TAB_PERMISSIONS);
345  $perm_gui = new ilPermissionGUI($this);
346  $this->ctrl->setCmd($cmd);
347  $this->ctrl->forwardCommand($perm_gui);
348  }
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
+ Here is the caller graph for this function:

◆ recordLearningSequenceRead()

ilObjLearningSequenceGUI::recordLearningSequenceRead ( )
protected

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

References ilChangeEvent\_recordReadEvent(), and user().

Referenced by view().

143  {
145  $this->object->getType(),
146  $this->object->getRefId(),
147  $this->object->getId(),
148  $this->user->getId()
149  );
150  }
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.
user()
Definition: user.php:4
+ 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 545 of file class.ilObjLearningSequenceGUI.php.

546  {
547  $this->ls_object->leave($usr_id);
548  }

◆ renderObject()

ilObjLearningSequenceGUI::renderObject ( )

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

618  {
619  // disables this method in ilContainerGUI
620  }

◆ save()

ilObjLearningSequenceGUI::save ( )
protected

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

502  {
503  parent::saveObject();
504  }

◆ settings()

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

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

References getObject().

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

351  {
352  $this->tabs->activateTab(self::TAB_SETTINGS);
354  $this->getObject(),
355  $this->ctrl,
356  $this->lng,
357  $this->tpl,
358  $this->obj_service
359  );
360  $this->ctrl->setCmd($cmd);
361  $this->ctrl->forwardCommand($gui);
362  }
Class ilObjLearningSequenceSettingsGUI.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unparticipate()

ilObjLearningSequenceGUI::unparticipate ( )

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

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

537  {
538  if ($this->checkAccess('unparticipate')) {
539  $usr_id = (int) $this->user->getId();
540  $this->getObject()->leave($usr_id);
541  $this->learnerView();
542  }
543  }
user()
Definition: user.php:4
learnerView(string $cmd=self::CMD_LEARNER_VIEW)
+ Here is the call graph for this function:

◆ view()

ilObjLearningSequenceGUI::view ( )
protected

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

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

Referenced by executeCommand().

365  {
366  $this->tabs->clearSubTabs();
367  if ($this->checkAccess("write")) {
368  $this->manageContent(self::CMD_CONTENT);
369  return;
370  }
371  if ($this->checkAccess("read")) {
372  $this->learnerView(self::CMD_LEARNER_VIEW);
374  return;
375  }
376  $this->info(self::CMD_INFO);
378  }
manageContent(string $cmd=self::CMD_CONTENT)
learnerView(string $cmd=self::CMD_LEARNER_VIEW)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $object

ilObjLearningSequenceGUI::$object

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

Referenced by getObject().

◆ CMD_ADD_TO_DESK

const ilObjLearningSequenceGUI::CMD_ADD_TO_DESK = "addToDesk"

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

◆ CMD_CANCEL

const ilObjLearningSequenceGUI::CMD_CANCEL = "cancel"

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

◆ CMD_CANCEL_CUT

const ilObjLearningSequenceGUI::CMD_CANCEL_CUT = "cancelCut"

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

◆ CMD_CANCEL_DELETE

const ilObjLearningSequenceGUI::CMD_CANCEL_DELETE = "cancelDelete"

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

◆ CMD_CANCEL_LINK

const ilObjLearningSequenceGUI::CMD_CANCEL_LINK = "cancelMoveLink"

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

◆ CMD_CONTENT

const ilObjLearningSequenceGUI::CMD_CONTENT = "manageContent"

◆ CMD_CREATE

const ilObjLearningSequenceGUI::CMD_CREATE = "create"

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

◆ CMD_CUT

const ilObjLearningSequenceGUI::CMD_CUT = "cut"

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

◆ CMD_CUT_CLIPBOARD

const ilObjLearningSequenceGUI::CMD_CUT_CLIPBOARD = "keepObjectsInClipboard"

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

◆ CMD_CUT_SHOWTREE

const ilObjLearningSequenceGUI::CMD_CUT_SHOWTREE = "showPasteTree"

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

◆ CMD_DELETE

const ilObjLearningSequenceGUI::CMD_DELETE = "delete"

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

◆ CMD_DELETE_CONFIRMED

const ilObjLearningSequenceGUI::CMD_DELETE_CONFIRMED = "confirmedDelete"

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

◆ 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.

◆ CMD_INFO

const ilObjLearningSequenceGUI::CMD_INFO = "showSummary"

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

◆ CMD_INFO_SCREEN

const ilObjLearningSequenceGUI::CMD_INFO_SCREEN = "infoScreen"

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

◆ 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.

◆ CMD_LP

const ilObjLearningSequenceGUI::CMD_LP = "learningProgress"

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

◆ 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.

◆ 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.

◆ CMD_PERMISSIONS

const ilObjLearningSequenceGUI::CMD_PERMISSIONS = "perm"

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

◆ CMD_REMOVE_FROM_DESK

const ilObjLearningSequenceGUI::CMD_REMOVE_FROM_DESK = "removeFromDesk"

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

◆ CMD_SAVE

const ilObjLearningSequenceGUI::CMD_SAVE = "save"

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

◆ 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.

◆ CMD_UNDELETE

const ilObjLearningSequenceGUI::CMD_UNDELETE = 'undelete'

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

◆ 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: