ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilObjStudyProgrammeGUI Class Reference

Class ilObjStudyProgrammeGUI class. More...

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

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 getAsyncCreationForm ()
 Method for implementing async windows-output Should be moved into core to enable async requests on creation-form. More...
 
 getTabs ()
 Adds the default tabs to the gui. More...
 
 getSubTabs ($a_parent_tab)
 Adds subtabs based on the parent tab. More...
 
 setContentSubTabs ()
 Disable default content subtabs. More...
 
 addToNavigationHistory ()
 
- 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...
 
 setContentSubTabs ()
 Set content sub tabs. More...
 
 showAdministrationPanel (&$tpl)
 show administration panel More...
 
 __showTimingsButton (&$tpl)
 
 showPermanentLink (&$tpl)
 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...
 
 addStandardRow (&$a_tpl, $a_html, $a_item_ref_id="", $a_item_obj_id="", $a_image_type="")
 adds a standard 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 ()
 
 lockObject ()
 
 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...
 
 showCustomIconsEditing ($a_input_colspan=1, ilPropertyFormGUI $a_form=null, $a_as_section=true)
 show edit section of custom icons for container 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 type $lng. 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...
 

Static Public Member Functions

static _goto ($a_target)
 _goto Deep link More...
 
- 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

 $ctrl
 
 $tpl
 
 $tabs_gui
 
 $tree
 
 $object
 
 $ilias
 
const TAB_VIEW_CONTENT = "view_content"
 
const SUBTAB_VIEW_TREE = "view_tree"
 
const TAB_INFO = "info_short"
 
const TAB_SETTINGS = "settings"
 
const TAB_MEMBERS = "members"
 
const TAB_SUBTYPES = "subtypes"
 
- 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

 create ()
 creates the object More...
 
 save ()
 Saves the object. More...
 
 cancel ()
 Cancel the object generation. More...
 
 afterSave (ilObject $a_new_object)
 After save hook Sets the sorting of the container correctly. More...
 
 view ()
 Default view method. More...
 
 initAdvancedSettingsForm ()
 Initialize the form for editing advanced meta data. More...
 
 editAdvancedSettings ()
 Edit Advanced Metadata. More...
 
 updateAdvancedSettings ()
 Update Advanced Metadata. More...
 
 initCreationForms ($a_new_type)
 Overwritten from ilObjectGUI since copy and import are not implemented. More...
 
 checkAccess ($a_which)
 
 denyAccessIfNot ($a_perm)
 
 denyAccessIfNotAnyOf ($a_perms)
 
 getLinkTarget ($a_cmd)
 Generates a link based on a cmd. More...
 
 fillInfoScreen ($a_info_screen)
 Adding meta-data to the info-screen. More...
 
 edit ()
 
- 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...
 
 initSortingForm (ilPropertyFormGUI $form, array $a_sorting_settings)
 Append sorting settings to property form. 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
 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...
 

Protected Attributes

 $ilAccess
 
 $toolbar
 
 $ilLocator
 
 $ilLog
 
 $help
 
- 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
 
- Protected Attributes inherited from ilObjectGUI
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $rbacsystem
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjStudyProgrammeGUI::__construct ( )

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

References $_GET, $DIC, $ilAccess, $ilCtrl, $ilias, $ilLocator, $ilLog, ilObjectGUI\$lng, $tpl, $tree, and array.

93  {
94  global $DIC;
95  $tpl = $DIC['tpl'];
96  $ilCtrl = $DIC['ilCtrl'];
97  $ilAccess = $DIC['ilAccess'];
98  $ilToolbar = $DIC['ilToolbar'];
99  $ilLocator = $DIC['ilLocator'];
100  $tree = $DIC['tree'];
101  $lng = $DIC['lng'];
102  $ilLog = $DIC['ilLog'];
103  $ilias = $DIC['ilias'];
104  $ilHelp = $DIC['ilHelp'];
105 
106  parent::__construct(array(), (int) $_GET['ref_id'], true, false);
107 
108  $this->tpl = $tpl;
109  $this->ctrl = $ilCtrl;
110  $this->ilAccess = $ilAccess;
111  $this->ilLocator = $ilLocator;
112  $this->tree = $tree;
113  $this->toolbar = $ilToolbar;
114  $this->ilLog = $ilLog;
115  $this->ilias = $ilias;
116  $this->type = "prg";
117  $this->help = $ilHelp;
118 
119  $lng->loadLanguageModule("prg");
120  }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
logging
Definition: class.ilLog.php:18
Class ilAccessHandler.
global $ilCtrl
Definition: ilias.php:18
redirection script todo: (a better solution should control the processing via a xml file) ...
Create styles array
The data for the language used.

Member Function Documentation

◆ _goto()

static ilObjStudyProgrammeGUI::_goto (   $a_target)
static

_goto Deep link

Parameters
string$a_target

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

References $DIC, $id, $ilAccess, $ilCtrl, ilObjectGUI\$ilErr, and array.

693  {
694  global $DIC;
695  $ilAccess = $DIC['ilAccess'];
696  $ilErr = $DIC['ilErr'];
697  $ilCtrl = $DIC['ilCtrl'];
698  $id = explode("_", $a_target);
699  $ilCtrl->setTargetScript("ilias.php");
700  $ilCtrl->initBaseClass("ilRepositoryGUI");
701  $ilCtrl->setParameterByClass("ilobjstudyprogrammegui", "ref_id", $id[0]);
702 
703  $ilCtrl->redirectByClass(array( "ilRepositoryGUI", "ilobjstudyprogrammegui" ), "view");
704  }
global $DIC
Definition: saml.php:7
if(!array_key_exists('StateId', $_REQUEST)) $id
global $ilCtrl
Definition: ilias.php:18
Create styles array
The data for the language used.

◆ addToNavigationHistory()

ilObjStudyProgrammeGUI::addToNavigationHistory ( )

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

References $_GET, $DIC, ilLink\_getLink(), ilAccess\checkAccess(), and ilObjectGUI\getCreationMode().

Referenced by executeCommand().

707  {
708  global $DIC;
709  $ilNavigationHistory = $DIC['ilNavigationHistory'];
710 
711  if (!$this->getCreationMode() &&
712  $this->ilAccess->checkAccess('read', '', $_GET['ref_id'])) {
713  $link = ilLink::_getLink($_GET["ref_id"], "iass");
714 
715  $ilNavigationHistory->addItem(
716  $_GET['ref_id'],
717  $link,
718  'prg'
719  );
720  }
721  }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
Class ilAccessHandler.
checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type="", $a_obj_id="", $a_tree_id="")
check access for an object (provide $a_type and $a_obj_id if available for better performance)(option...
getCreationMode()
get creation mode
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterSave()

ilObjStudyProgrammeGUI::afterSave ( ilObject  $a_new_object)
protected

After save hook Sets the sorting of the container correctly.

If its a async call, a json string is returned.

Parameters
ilObject$a_new_object

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

References ilContainerGUI\$settings, array, ilAsyncOutputHandler\encodeAsyncResponse(), ilObject\getId(), ilObject\getRefId(), ilObjectGUI\getReturnLocation(), ilAsyncOutputHandler\handleAsyncOutput(), ilUtil\redirect(), ilUtil\sendSuccess(), ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_NEW_ITEMS_ORDER_CREATION, and ilContainer\SORT_NEW_ITEMS_POSITION_BOTTOM.

384  {
385  // set default sort to manual
386  $settings = new ilContainerSortingSettings($a_new_object->getId());
387  $settings->setSortMode(ilContainer::SORT_MANUAL);
388  $settings->setSortDirection(ilContainer::SORT_DIRECTION_ASC);
390  $settings->setSortNewItemsPosition(ilContainer::SORT_NEW_ITEMS_POSITION_BOTTOM);
391  $settings->save();
392 
393  $async_response = ilAsyncOutputHandler::encodeAsyncResponse(array("cmd" =>"cancel", "success"=>true, "message"=>$this->lng->txt("object_added")));
394 
395  ilAsyncOutputHandler::handleAsyncOutput("", $async_response, false);
396 
397  ilUtil::sendSuccess($this->lng->txt("object_added"), true);
398 
399  $this->ctrl->setParameter($this, "ref_id", $a_new_object->getRefId());
401  "save",
402  $this->ctrl->getLinkTarget($this, "edit", "", false, false)
403  ));
404  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
const SORT_NEW_ITEMS_POSITION_BOTTOM
static encodeAsyncResponse(array $data=array())
Encode data as json for async output.
getId()
get object id public
const SORT_NEW_ITEMS_ORDER_CREATION
Create styles array
The data for the language used.
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.
static handleAsyncOutput($normal_content, $async_content=null, $apply_to_tpl=true)
Handles async output.
+ Here is the call graph for this function:

◆ cancel()

ilObjStudyProgrammeGUI::cancel ( )
protected

Cancel the object generation.

If

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

References array, ilAsyncOutputHandler\encodeAsyncResponse(), and ilAsyncOutputHandler\handleAsyncOutput().

368  {
369  $async_response = ilAsyncOutputHandler::encodeAsyncResponse(array("cmd" =>"cancel", "success"=>false));
370 
371  ilAsyncOutputHandler::handleAsyncOutput("", $async_response, false);
372 
373  parent::cancelCreation();
374  }
static encodeAsyncResponse(array $data=array())
Encode data as json for async output.
Create styles array
The data for the language used.
static handleAsyncOutput($normal_content, $async_content=null, $apply_to_tpl=true)
Handles async output.
+ Here is the call graph for this function:

◆ checkAccess()

ilObjStudyProgrammeGUI::checkAccess (   $a_which)
protected

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

References ilAccess\checkAccess().

Referenced by denyAccessIfNotAnyOf(), getSubTabs(), and getTabs().

510  {
511  return $this->ilAccess->checkAccess($a_which, "", $this->ref_id);
512  }
Class ilAccessHandler.
checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type="", $a_obj_id="", $a_tree_id="")
check access for an object (provide $a_type and $a_obj_id if available for better performance)(option...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

ilObjStudyProgrammeGUI::create ( )
protected

creates the object

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

339  {
340  parent::createObject();
341  }

◆ denyAccessIfNot()

ilObjStudyProgrammeGUI::denyAccessIfNot (   $a_perm)
protected

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

References array, and denyAccessIfNotAnyOf().

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

515  {
516  return $this->denyAccessIfNotAnyOf(array($a_perm));
517  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ denyAccessIfNotAnyOf()

ilObjStudyProgrammeGUI::denyAccessIfNotAnyOf (   $a_perms)
protected

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

References checkAccess(), and ilUtil\sendFailure().

Referenced by denyAccessIfNot(), and executeCommand().

520  {
521  foreach ($a_perms as $perm) {
522  if ($this->checkAccess($perm)) {
523  return;
524  }
525  }
526 
527  if ($this->checkAccess("visible")) {
528  ilUtil::sendFailure($this->lng->txt("msg_no_perm_write"));
529  $this->ctrl->redirectByClass('ilinfoscreengui', '');
530  }
531 
532  $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->WARNING);
533  }
redirection script todo: (a better solution should control the processing via a xml file) ...
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ edit()

ilObjStudyProgrammeGUI::edit ( )
protected

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

References denyAccessIfNot(), and getSubTabs().

673  {
674  $this->denyAccessIfNot("write");
675 
676  $this->getSubTabs('settings');
677  $this->tabs_gui->setTabActive(self::TAB_SETTINGS);
678  $this->tabs_gui->setSubTabActive('settings');
679 
680  require_once("Modules/StudyProgramme/classes/class.ilObjStudyProgrammeSettingsGUI.php");
681  $gui = new ilObjStudyProgrammeSettingsGUI($this, $this->ref_id);
682  $this->ctrl->setCmd("view");
683  $this->ctrl->forwardCommand($gui);
684  }
getSubTabs($a_parent_tab)
Adds subtabs based on the parent tab.
Class ilObjStudyProgrammeSettingsGUI.
+ Here is the call graph for this function:

◆ editAdvancedSettings()

ilObjStudyProgrammeGUI::editAdvancedSettings ( )
protected

Edit Advanced Metadata.

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

References $form, ilAccess\checkAccess(), initAdvancedSettingsForm(), ilAdvancedMDRecordGUI\MODE_EDITOR, object, ilUtil\sendFailure(), and ilAdvancedMDRecordGUI\setPropertyForm().

Referenced by executeCommand().

437  {
438  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
439  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
440  $this->ctrl->redirect($this);
441  }
442  $form = $this->initAdvancedSettingsForm();
443  $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'prg', $this->object->getId(), 'prg_type', $this->object->getSubtypeId());
444  $gui->setPropertyForm($form);
445  $gui->parse();
446  $this->tpl->setContent($form->getHTML());
447  }
setPropertyForm($form)
set property form object
Class ilAccessHandler.
checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type="", $a_obj_id="", $a_tree_id="")
check access for an object (provide $a_type and $a_obj_id if available for better performance)(option...
if(isset($_POST['submit'])) $form
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Create new PHPExcel object
obj_idprivate
initAdvancedSettingsForm()
Initialize the form for editing advanced meta data.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjStudyProgrammeGUI::executeCommand ( )

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

References $_SESSION, $info, ilObjStudyProgramme\_getStudyProgrammeUserProgressDB(), addToNavigationHistory(), array, denyAccessIfNot(), denyAccessIfNotAnyOf(), editAdvancedSettings(), fillInfoScreen(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), getSubTabs(), setContentSubTabs(), ilContainerGUI\showRepTree(), and updateAdvancedSettings().

124  {
125  $cmd = $this->ctrl->getCmd();
126  $next_class = $this->ctrl->getNextClass($this);
127 
128  if ($cmd == "") {
129  $cmd = "view";
130  }
131 
132  $this->addToNavigationHistory();
133 
134  parent::prepareOutput();
135 
136  // show repository tree
137  $this->showRepTree();
138 
139  switch ($next_class) {
140  case "ilinfoscreengui":
141  $this->tabs_gui->setTabActive(self::TAB_INFO);
142  $this->denyAccessIfNotAnyOf(array("read", "visible"));
143  $info = new ilInfoScreenGUI($this);
144  $this->fillInfoScreen($info);
145  $this->ctrl->forwardCommand($info);
146 
147  // I guess this is how it was supposed to work, but it doesn't... it won't respect our sub-id and sub-type when creating the objects!
148  // So we reimplemented the stuff in the method parseInfoScreen()
149  // $info = new ilInfoScreenGUI($this);
150  // $amd_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
151  // $amd_gui->setInfoObject($info);
152  // $amd_gui->setSelectedOnly(true);
153  // $amd_gui->parse();
154  // $this->ctrl->forwardCommand($info);
155  break;
156  case 'ilpermissiongui':
157  $this->tabs_gui->setTabActive('perm_settings');
158  $ilPermissionGUI = new ilPermissionGUI($this);
159  $this->ctrl->forwardCommand($ilPermissionGUI);
160  break;
161  case "ilcommonactiondispatchergui":
162  require_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
164  $this->ctrl->forwardCommand($gui);
165  break;
166  case "ilobjstudyprogrammesettingsgui":
167  $this->denyAccessIfNot("write");
168 
169  $this->getSubTabs('settings');
170  $this->tabs_gui->setTabActive(self::TAB_SETTINGS);
171  $this->tabs_gui->setSubTabActive('settings');
172 
173  require_once("Modules/StudyProgramme/classes/class.ilObjStudyProgrammeSettingsGUI.php");
174  $gui = new ilObjStudyProgrammeSettingsGUI($this, $this->ref_id);
175  $this->ctrl->forwardCommand($gui);
176  break;
177  /*case 'iltranslationgui':
178  $this->denyAccessIfNot("write");
179 
180  $this->getSubTabs('settings');
181  $this->tabs_gui->setTabActive("settings");
182  $this->tabs_gui->setSubTabActive('edit_translations');
183 
184  $ilTranslationGui = new ilTranslationGUI($this);
185  $this->ctrl->forwardCommand($ilTranslationGui);
186  break;*/
187  case "ilobjstudyprogrammemembersgui":
188  $this->denyAccessIfNot("manage_members");
189  $this->tabs_gui->setTabActive(self::TAB_MEMBERS);
190  require_once("Modules/StudyProgramme/classes/class.ilObjStudyProgrammeMembersGUI.php");
192  $this->ctrl->forwardCommand($gui);
193  break;
194  case "ilobjstudyprogrammetreegui":
195  $this->denyAccessIfNot("write");
196 
197  $this->getSubTabs($cmd);
198  $this->setContentSubTabs();
199  $this->tabs_gui->setTabActive(self::TAB_VIEW_CONTENT);
200  $this->tabs_gui->setSubTabActive(self::SUBTAB_VIEW_TREE);
201 
202  // disable admin panel
203  $_SESSION["il_cont_admin_panel"] = false;
204 
205  $gui = new ilObjStudyProgrammeTreeGUI($this->id);
206  $this->ctrl->forwardCommand($gui);
207  break;
208  case 'ilstudyprogrammetypegui':
209  $this->tabs_gui->setTabActive('subtypes');
210 
211  $types_gui = new ilStudyProgrammeTypeGUI($this);
212  $this->ctrl->forwardCommand($types_gui);
213  break;
214  case 'ilobjectcopygui':
215  $gui = new ilobjectcopygui($this);
216  $this->ctrl->forwardCommand($gui);
217  break;
218  case false:
219  $this->getSubTabs($cmd);
220  switch ($cmd) {
221  case "cancelDelete":
222  $cmd = "view";
223  // no break
224  case "create":
225  case "save":
226  case "view":
227  case "cancel":
228  case "edit":
229  $this->$cmd();
230  break;
231  case "delete":
232  $this->tabs_gui->clearTargets();
233  $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
234  parent::deleteObject();
235  break;
236  case 'confirmedDelete':
237  parent::confirmedDeleteObject();
238  break;
239  case 'editAdvancedSettings':
240  $this->tabs_gui->setTabActive("settings");
241  $this->tabs_gui->setSubTabActive('edit_advanced_settings');
242  //$this->setSubTabsSettings('edit_advanced_settings');
243  $this->editAdvancedSettings();
244  break;
245  case 'updateAdvancedSettings':
246  $this->tabs_gui->setTabActive("settings");
247  $this->tabs_gui->setSubTabActive('edit_advanced_settings');
248  //$this->setSubTabsSettings('edit_advanced_settings');
249  $this->updateAdvancedSettings();
250  break;
251  case "infoScreen":
252  $this->ctrl->redirectByClass("ilInfoScreenGUI", "showSummary");
253  break;
254  case 'getAsynchItemList':
255  parent::getAsynchItemListObject();
256  break;
257  case 'trash':
258  case 'undelete':
259  case 'confirmRemoveFromSystem':
260  case 'removeFromSystem':
261  $cmd .= "Object";
262  $this->$cmd();
263  break;
264  /*case 'editSettings':
265  $this->tabs_gui->setTabActive("settings");
266  $this->setSubTabsSettings('edit_settings');
267  $this->editSettings();
268  break;
269  case '':
270  case 'view':
271  case 'render':
272  case 'cancel':
273  case 'cancelDelete':
274  $this->view();
275  break;
276  case 'create':
277 
278  parent::createObject();
279  break;
280  case 'save':
281  parent::saveObject();
282  break;
283  case 'delete':
284  $this->tabs_gui->clearTargets();
285  $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
286  parent::deleteObject();
287  break;
288  case 'confirmedDelete':
289  parent::confirmedDeleteObject();
290  break;
291  case 'cut':
292  $this->tabs_gui->clearTargets();
293  $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
294  parent::cutObject();
295  break;
296  case 'clear':
297  parent::clearObject();
298  break;
299  case 'enableAdministrationPanel':
300  parent::enableAdministrationPanelObject();
301  break;
302  case 'disableAdministrationPanel':
303  parent::disableAdministrationPanelObject();
304  break;
305  case 'editSettings':
306  $this->tabs_gui->setTabActive("settings");
307  $this->setSubTabsSettings('edit_settings');
308  $this->editSettings();
309  break;
310  case 'updateSettings':
311  $this->tabs_gui->setTabActive("settings");
312  $this->setSubTabsSettings('edit_settings');
313  $this->updateSettings();
314  break;
315  case 'editAdvancedSettings':
316  $this->tabs_gui->setTabActive("settings");
317  $this->setSubTabsSettings('edit_advanced_settings');
318  $this->editAdvancedSettings();
319  break;
320  case 'updateAdvancedSettings':
321  $this->tabs_gui->setTabActive("settings");
322  $this->setSubTabsSettings('edit_advanced_settings');
323  $this->updateAdvancedSettings();
324  break;*/
325  default:
326  throw new ilException("ilObjStudyProgrammeGUI: Command not supported: $cmd");
327  }
328  break;
329  default:
330  throw new ilException("ilObjStudyProgrammeGUI: Can't forward to next class $next_class");
331  }
332  }
Class ilInfoScreenGUI.
$_SESSION["AccountId"]
static _getStudyProgrammeUserProgressDB()
Get an instance of ilStudyProgrammeUserProgressDB.
Class ilStudyProgrammeTypeGUI.
getSubTabs($a_parent_tab)
Adds subtabs based on the parent tab.
editAdvancedSettings()
Edit Advanced Metadata.
updateAdvancedSettings()
Update Advanced Metadata.
Class ilObjStudyProgrammeMembersGUI.
Create styles array
The data for the language used.
setContentSubTabs()
Disable default content subtabs.
fillInfoScreen($a_info_screen)
Adding meta-data to the info-screen.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
$info
Definition: index.php:5
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Class ilObjStudyProgrammeSettingsGUI.
Class ilObjStudyProgrammeTreeGUI Generates the manage view for ilTrainingProgramme-Repository objects...
+ Here is the call graph for this function:

◆ fillInfoScreen()

ilObjStudyProgrammeGUI::fillInfoScreen (   $a_info_screen)
protected

Adding meta-data to the info-screen.

Parameters
$a_info_screen

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

References $type, ilAdvancedMDRecordGUI\MODE_INFO, object, and ilAdvancedMDRecordGUI\setInfoObject().

Referenced by executeCommand().

656  {
657  require_once('./Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php');
658  require_once('./Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php');
659  require_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
660  require_once('./Services/ADT/classes/class.ilADTFactory.php');
661 
662  $type = ilStudyProgrammeType::find($this->object->getSubtypeId());
663  if (!$type) {
664  return;
665  }
666 
667  $record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'prg', $this->object->getId(), 'prg_type', $this->object->getSubtypeId());
668  $record_gui->setInfoObject($a_info_screen);
669  $record_gui->parse();
670  }
$type
setInfoObject($info)
get info sections
Create new PHPExcel object
obj_idprivate
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAsyncCreationForm()

ilObjStudyProgrammeGUI::getAsyncCreationForm ( )

Method for implementing async windows-output Should be moved into core to enable async requests on creation-form.

Returns
ilAsyncPropertyFormGUI

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

References initCreationForms().

Referenced by save().

495  {
496  $asyncForm = new ilAsyncPropertyFormGUI();
497 
498  $tmp_forms = $this->initCreationForms('prg');
499  $asyncForm->cloneForm($tmp_forms[self::CFORM_NEW]);
500  $asyncForm->setAsync(true);
501 
502  return $asyncForm;
503  }
initCreationForms($a_new_type)
Overwritten from ilObjectGUI since copy and import are not implemented.
Class ilAsyncPropertyFormGUI.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLinkTarget()

ilObjStudyProgrammeGUI::getLinkTarget (   $a_cmd)
protected

Generates a link based on a cmd.

Parameters
$a_cmd
Returns
string

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

Referenced by getSubTabs(), and getTabs().

629  {
630  if ($a_cmd == "info_short") {
631  return $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary");
632  }
633  if ($a_cmd == "settings") {
634  return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammesettingsgui", "view");
635  }
636  if ($a_cmd == self::SUBTAB_VIEW_TREE) {
637  return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammetreegui", "view");
638  }
639  if ($a_cmd == "members") {
640  return $this->ctrl->getLinkTargetByClass("ilobjstudyprogrammemembersgui", "view");
641  }
642  if ($a_cmd == "subtypes") {
643  return $this->ctrl->getLinkTargetByClass("ilstudyprogrammetypegui", "listTypes");
644  }
645 
646  return $this->ctrl->getLinkTarget($this, $a_cmd);
647  }
+ Here is the caller graph for this function:

◆ getSubTabs()

ilObjStudyProgrammeGUI::getSubTabs (   $a_parent_tab)

Adds subtabs based on the parent tab.

Parameters
$a_parent_tab| string of the parent tab-id

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

References $type, checkAccess(), getLinkTarget(), and object.

Referenced by edit(), and executeCommand().

584  {
585  switch ($a_parent_tab) {
586  case self::TAB_VIEW_CONTENT:
587  case self::SUBTAB_VIEW_TREE:
588  case 'view':
589  if ($this->checkAccess("read")) {
590  $this->tabs_gui->addSubTab(self::TAB_VIEW_CONTENT, $this->lng->txt("view"), $this->getLinkTarget("view"));
591  }
592 
593  if ($this->checkAccess("write")) {
594  $this->tabs_gui->addSubTab(self::SUBTAB_VIEW_TREE, $this->lng->txt("cntr_manage"), $this->getLinkTarget(self::SUBTAB_VIEW_TREE));
595  }
596  break;
597  case 'settings':
598  case 'editAdvancedSettings':
599  $this->tabs_gui->addSubTab('settings', $this->lng->txt('settings'), $this->getLinkTarget('settings'));
600  //$this->tabs_gui->addSubTab("edit_translations", $this->lng->txt("obj_multilinguality"), $this->ctrl->getLinkTargetByClass("iltranslationgui", "editTranslations"));
601 
602  $type = ilStudyProgrammeType::find($this->object->getSubtypeId());
603 
604  if (!is_null($type) && count($type->getAssignedAdvancedMDRecords(true))) {
605  $this->tabs_gui->addSubTab('edit_advanced_settings', $this->lng->txt('prg_adv_settings'), $this->ctrl->getLinkTarget($this, 'editAdvancedSettings'));
606  }
607  break;
608  }
609  }
$type
getLinkTarget($a_cmd)
Generates a link based on a cmd.
Create new PHPExcel object
obj_idprivate
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTabs()

ilObjStudyProgrammeGUI::getTabs ( )

Adds the default tabs to the gui.

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

References checkAccess(), and getLinkTarget().

546  {
547  $this->help->setScreenIdComponent("prg");
548  if ($this->checkAccess("read")) {
549  $this->tabs_gui->addTab(self::TAB_VIEW_CONTENT, $this->lng->txt("content"), $this->getLinkTarget("view"));
550  }
551 
552  if ($this->checkAccess("read")) {
553  $this->tabs_gui->addTab(
554  self::TAB_INFO,
555  $this->lng->txt("info_short"),
556  $this->getLinkTarget("info_short")
557  );
558  }
559 
560  if ($this->checkAccess("write")) {
561  $this->tabs_gui->addTab(
562  self::TAB_SETTINGS,
563  $this->lng->txt("settings"),
564  $this->getLinkTarget("settings")
565  );
566  }
567 
568  if ($this->checkAccess("manage_members")) {
569  $this->tabs_gui->addTab(
570  self::TAB_MEMBERS,
571  $this->lng->txt("members"),
572  $this->getLinkTarget("members")
573  );
574  }
575  parent::getTabs();
576  }
getLinkTarget($a_cmd)
Generates a link based on a cmd.
+ Here is the call graph for this function:

◆ initAdvancedSettingsForm()

ilObjStudyProgrammeGUI::initAdvancedSettingsForm ( )
protected

Initialize the form for editing advanced meta data.

Returns
ilPropertyFormGUI

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

References $form.

Referenced by editAdvancedSettings(), and updateAdvancedSettings().

424  {
425  $form = new ilPropertyFormGUI();
426  $form->setFormAction($this->ctrl->getFormAction($this));
427  $form->addCommandButton('updateAdvancedSettings', $this->lng->txt('save'));
428  $form->addCommandButton('editAdvancedSettings', $this->lng->txt('cancel'));
429 
430  return $form;
431  }
This class represents a property form user interface.
if(isset($_POST['submit'])) $form
+ Here is the caller graph for this function:

◆ initCreationForms()

ilObjStudyProgrammeGUI::initCreationForms (   $a_new_type)
protected

Overwritten from ilObjectGUI since copy and import are not implemented.

Parameters
string$a_new_type
Returns
array

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

References array, and ilObjectGUI\initCreateForm().

Referenced by getAsyncCreationForm().

483  {
484  return array( self::CFORM_NEW => $this->initCreateForm($a_new_type));
485  }
initCreateForm($a_new_type)
Init object creation form.
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilObjStudyProgrammeGUI::save ( )
protected

Saves the object.

If its a async call, the response is sent as a json string

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

References $form, array, ilAsyncOutputHandler\encodeAsyncResponse(), exit, and getAsyncCreationForm().

350  {
351  parent::saveObject();
352 
353  if ($this->ctrl->isAsynch()) {
354  $form = $this->getAsyncCreationForm();
355  $form->setValuesByPost();
356  echo ilAsyncOutputHandler::encodeAsyncResponse(array("cmd" =>$this->ctrl->getCmd(), "success"=>false, "errors"=>$form->getErrors()));
357  exit();
358  }
359  }
static encodeAsyncResponse(array $data=array())
Encode data as json for async output.
if(isset($_POST['submit'])) $form
getAsyncCreationForm()
Method for implementing async windows-output Should be moved into core to enable async requests on cr...
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ setContentSubTabs()

ilObjStudyProgrammeGUI::setContentSubTabs ( )

Disable default content subtabs.

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

Referenced by executeCommand().

616  {
617  return;
618  }
+ Here is the caller graph for this function:

◆ updateAdvancedSettings()

ilObjStudyProgrammeGUI::updateAdvancedSettings ( )
protected

Update Advanced Metadata.

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

References $form, ilAccess\checkAccess(), initAdvancedSettingsForm(), ilAdvancedMDRecordGUI\MODE_EDITOR, object, ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilAdvancedMDRecordGUI\setPropertyForm().

Referenced by executeCommand().

454  {
455  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
456  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
457  $this->ctrl->redirect($this);
458  }
459 
460  $form = $this->initAdvancedSettingsForm();
461  $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'prg', $this->object->getId(), 'prg_type', $this->object->getSubtypeId());
462  $gui->setPropertyForm($form);
463  $form->checkInput();
464  $gui->parse();
465  if ($gui->importEditFormPostValues()) {
466  $gui->writeEditForm();
467  ilUtil::sendSuccess($this->lng->txt('settings_saved'), true);
468  $this->ctrl->redirect($this, 'editAdvancedSettings');
469  } else {
470  $this->tpl->setContent($form->getHTML());
471  }
472  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
setPropertyForm($form)
set property form object
Class ilAccessHandler.
checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type="", $a_obj_id="", $a_tree_id="")
check access for an object (provide $a_type and $a_obj_id if available for better performance)(option...
if(isset($_POST['submit'])) $form
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Create new PHPExcel object
obj_idprivate
initAdvancedSettingsForm()
Initialize the form for editing advanced meta data.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ view()

ilObjStudyProgrammeGUI::view ( )
protected

Default view method.

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

References denyAccessIfNot().

411  {
412  $this->denyAccessIfNot("read");
413  $this->tabs_gui->setTabActive(self::TAB_VIEW_CONTENT);
414 
415  parent::renderObject();
416  }
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilObjStudyProgrammeGUI::$ctrl

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

◆ $help

ilObjStudyProgrammeGUI::$help
protected

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

◆ $ilAccess

ilObjStudyProgrammeGUI::$ilAccess
protected

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

Referenced by __construct(), and _goto().

◆ $ilias

ilObjStudyProgrammeGUI::$ilias

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

Referenced by __construct().

◆ $ilLocator

ilObjStudyProgrammeGUI::$ilLocator
protected

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

Referenced by __construct().

◆ $ilLog

ilObjStudyProgrammeGUI::$ilLog
protected

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

Referenced by __construct().

◆ $object

ilObjStudyProgrammeGUI::$object

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

◆ $tabs_gui

ilObjStudyProgrammeGUI::$tabs_gui

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

◆ $toolbar

ilObjStudyProgrammeGUI::$toolbar
protected

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

◆ $tpl

ilObjStudyProgrammeGUI::$tpl

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

Referenced by __construct().

◆ $tree

ilObjStudyProgrammeGUI::$tree

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

Referenced by __construct().

◆ SUBTAB_VIEW_TREE

const ilObjStudyProgrammeGUI::SUBTAB_VIEW_TREE = "view_tree"

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

◆ TAB_INFO

const ilObjStudyProgrammeGUI::TAB_INFO = "info_short"

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

◆ TAB_MEMBERS

const ilObjStudyProgrammeGUI::TAB_MEMBERS = "members"

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

◆ TAB_SETTINGS

const ilObjStudyProgrammeGUI::TAB_SETTINGS = "settings"

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

◆ TAB_SUBTYPES

const ilObjStudyProgrammeGUI::TAB_SUBTYPES = "subtypes"

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

◆ TAB_VIEW_CONTENT

const ilObjStudyProgrammeGUI::TAB_VIEW_CONTENT = "view_content"

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


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