ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilObjPortfolioBaseGUI Class Reference

Portfolio view gui base class. More...

+ Inheritance diagram for ilObjPortfolioBaseGUI:
+ Collaboration diagram for ilObjPortfolioBaseGUI:

Public Member Functions

 __construct (int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)
 
 setAdditional (array $a_additional)
 Set Additonal Information (used in public profile?) More...
 
 getAdditional ()
 
 setPermaLink (int $a_obj_id, string $a_type)
 Set custom perma link (used in public profile?) More...
 
 getPageGUIClassName ()
 
 view ()
 Show list of portfolio pages. More...
 
 initPageForm (string $a_mode="create")
 Init portfolio page form. More...
 
 savePage ()
 Create new portfolio page. More...
 
 savePortfolioPagesOrdering ()
 Save ordering of portfolio pages. More...
 
 confirmPortfolioPageDeletion ()
 
 deletePortfolioPages ()
 
 export (bool $a_with_comments=false)
 
 exportWithComments ()
 
 copyPageForm (?ilPropertyFormGUI $a_form=null)
 Select target portfolio for page(s) copy. More...
 
 copyPage ()
 
 initCopyPageForm ()
 
 setContentStyleSheet (?ilGlobalTemplateInterface $a_tpl=null)
 
- Public Member Functions inherited from ilObject2GUI
 __construct (int $id=0, int $id_type=self::REPOSITORY_NODE_ID, int $parent_node_id=0)
 
 executeCommand ()
 execute command More...
 
 getIdType ()
 
 delete ()
 Display delete confirmation form (repository/workspace switch) More...
 
 confirmedDelete ()
 Delete objects (repository/workspace switch) More...
 
 getHTML ()
 
 withReferences ()
 Final/Private declaration of unchanged parent methods. More...
 
 setCreationMode (bool $mode=true)
 If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 isVisible (int $ref_id, string $type)
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 view ()
 view object content (repository/workspace switch) More...
 
 getType ()
 Functions that must be overwritten. More...
 
 create ()
 CRUD. More...
 
 save ()
 
 edit ()
 
 update ()
 
 cancel ()
 
 putObjectInTree (ilObject $obj, ?int $parent_node_id=null)
 Add object to tree at given position. More...
 
- Public Member Functions inherited from ilObjectGUI
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 editAvailabilityPeriodObject ()
 
 saveAvailabilityPeriodObject ()
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, ?int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Static Public Member Functions

static renderFullscreenHeader (ilObjPortfolioBase $a_portfolio, ilGlobalTemplateInterface $a_tpl, int $a_user_id, bool $a_export=false)
 
- Static Public Member Functions inherited from ilObject2GUI
static handleAfterSaveCallback (ilObject $obj, ?int $callback_ref_id)
 After creation callback. More...
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 

Protected Member Functions

 addLocatorItems ()
 Functions to be overwritten. More...
 
 determinePageCall ()
 
 handlePageCall (string $a_cmd)
 
 setSettingsSubTabs (string $a_active)
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 getPageInstance (?int $a_page_id=null, ?int $a_portfolio_id=null)
 
 getPageGUIInstance (int $a_page_id)
 
 addPage ()
 Show portfolio page creation form. More...
 
 getCurrentPage ()
 
 getCommentGUI ()
 
 showEditButton (int $page_id)
 
 initCopyPageFormOptions (ilPropertyFormGUI $a_form)
 
- Protected Member Functions inherited from ilObject2GUI
 afterConstructor ()
 Do anything that should be done after constructor in here. More...
 
 assignObject ()
 create object instance as internal property (repository/workspace switch) More...
 
 getAccessHandler ()
 
 setLocator ()
 set Locator More...
 
 deleteConfirmedObjects ()
 Delete objects (workspace specific) This should probably be moved elsewhere as done with RepUtil. More...
 
 setTitleAndDescription ()
 
 omitLocator (bool $omit=true)
 
 getTargetFrame (string $cmd, string $target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 setTabs ()
 create tabs (repository/workspace switch) More...
 
 getReturnLocation (string $cmd, string $location="")
 Deprecated functions. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 showActions ()
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 addLocatorItems ()
 Functions to be overwritten. More...
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $node_id=null)
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 redrawHeaderAction ()
 Updating icons after ajax call. More...
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 createActionDispatcherGUI ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form)
 
 getTitleForCreationFormPage ()
 
 getCreationFormTitle ()
 
 initCreateForm (string $new_type)
 
 didacticTemplatesToForm ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 retrieveAdditionalDidacticTemplateOptions ()
 
 addAdoptContentLinkToToolbar ()
 
 addImportButtonToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 parseDidacticTemplateVar (string $var, string $type)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 routeImportCmdObject ()
 
 importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir)
 
 deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 getCreatableObjectTypes ()
 
 buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
 
 buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
 

Protected Attributes

ILIAS Notes Service $notes
 
ILIAS Portfolio InternalGUIService $gui
 
StandardGUIRequest $port_request
 
ilHelpGUI $help
 
int $user_id = 0
 
array $additional = array()
 
array $perma_link = []
 
int $page_id = 0
 
string $page_mode
 
int $requested_ppage
 
int $requested_user_page
 
ILIAS DI UIServices $ui
 
ILIAS Style Content GUIService $content_style_gui
 
ILIAS Style Content Object ObjectFacade $content_style_domain
 
- Protected Attributes inherited from ilObject2GUI
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ilFavouritesManager $favourites
 
ilErrorHandling $error
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilToolbarGUI $toolbar
 
Factory $refinery
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
int $request_ref_id
 
int $id_type
 
int $parent_id
 
string $type
 
string $html
 
int $object_id
 
int $node_id = null
 
array $creation_forms = []
 
 $access_handler
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
GlobalHttpState $http
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
CustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Additional Inherited Members

- Data Fields inherited from ilObject2GUI
const OBJECT_ID = 0
 
const REPOSITORY_NODE_ID = 1
 
const WORKSPACE_NODE_ID = 2
 
const REPOSITORY_OBJECT_ID = 3
 
const WORKSPACE_OBJECT_ID = 4
 
const PORTFOLIO_OBJECT_ID = 5
 
- Data Fields inherited from ilObjectGUI
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
const SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED]
 

Detailed Description

Portfolio view gui base class.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 28 of file class.ilObjPortfolioBaseGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjPortfolioBaseGUI::__construct ( int  $a_id = 0,
int  $a_id_type = self::REPOSITORY_NODE_ID,
int  $a_parent_node_id = 0 
)

Reimplemented from ilObject2GUI.

Reimplemented in ilObjPortfolioTemplateGUI.

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

49 {
50 global $DIC;
51
52 $this->user = $DIC->user();
53 $this->locator = $DIC["ilLocator"];
54 $this->toolbar = $DIC->toolbar();
55 $this->settings = $DIC->settings();
56 $this->tree = $DIC->repositoryTree();
57 $this->help = $DIC["ilHelp"];
58 $this->tpl = $DIC["tpl"];
59 $ilUser = $DIC->user();
60 $this->ui = $DIC->ui();
61
62 $this->port_request = $DIC->portfolio()
63 ->internal()
64 ->gui()
65 ->standardRequest();
66
67 parent::__construct($a_id, $a_id_type, $a_parent_node_id);
68
69 $this->user_id = $ilUser->getId();
70
71 $this->lng->loadLanguageModule("prtf");
72 $this->lng->loadLanguageModule("user");
73 $this->lng->loadLanguageModule("obj");
74
75 $this->requested_ppage = $this->port_request->getPortfolioPageId();
76 $this->requested_user_page = $this->port_request->getUserPage();
77
78 $cs = $DIC->contentStyle();
79 $this->content_style_gui = $cs->gui();
80 if ($this->object) {
81 $this->content_style_domain = $cs->domain()->styleForObjId($this->object->getId());
82 }
83 $this->gui = $DIC->portfolio()->internal()->gui();
84 $this->notes = $DIC->notes();
85 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), ILIAS\Repository\object(), ILIAS\Repository\settings(), ILIAS\Repository\toolbar(), ILIAS\Repository\ui(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ addLocatorItems()

ilObjPortfolioBaseGUI::addLocatorItems ( )
protected

Functions to be overwritten.

Reimplemented from ilObject2GUI.

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

87 : void
88 {
89 $ilLocator = $this->locator;
90
91 if ($this->object) {
92 $ilLocator->addItem(
93 strip_tags($this->object->getTitle()),
94 $this->ctrl->getLinkTarget($this, "view")
95 );
96 }
97
98 if ($this->page_id > 0) {
99 $page = $this->getPageInstance($this->page_id);
100 $title = $page->getTitle();
101 $this->ctrl->setParameterByClass($this->getPageGUIClassName(), "ppage", $this->page_id);
102 $ilLocator->addItem(
103 $title,
104 $this->ctrl->getLinkTargetByClass($this->getPageGUIClassName(), "edit")
105 );
106 }
107 }
getPageInstance(?int $a_page_id=null, ?int $a_portfolio_id=null)
ilLocatorGUI $locator

References ilObject2GUI\$locator, ILIAS\Repository\ctrl(), getPageGUIClassName(), getPageInstance(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ addPage()

ilObjPortfolioBaseGUI::addPage ( )
protected

Show portfolio page creation form.

Definition at line 375 of file class.ilObjPortfolioBaseGUI.php.

375 : void
376 {
377 $ilHelp = $this->help;
378
379 $this->tabs_gui->clearTargets();
380 $this->tabs_gui->setBackTarget(
381 $this->lng->txt("back"),
382 $this->ctrl->getLinkTarget($this, "view")
383 );
384
385 $ilHelp->setScreenIdComponent("prtf");
386 $ilHelp->setScreenId("add_page");
387
388
389 $form = $this->initPageForm("create");
390 $this->tpl->setContent($form->getHTML());
391 }
setScreenIdComponent(string $a_comp)
initPageForm(string $a_mode="create")
Init portfolio page form.

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ confirmPortfolioPageDeletion()

ilObjPortfolioBaseGUI::confirmPortfolioPageDeletion ( )

Definition at line 504 of file class.ilObjPortfolioBaseGUI.php.

504 : void
505 {
506 $prtf_pages = $this->port_request->getPortfolioPageIds();
507
508 if (count($prtf_pages) === 0) {
509 $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_checkbox"), true);
510 $this->ctrl->redirect($this, "view");
511 } else {
512 $this->tabs_gui->activateTab("pages");
513
514 $cgui = new ilConfirmationGUI();
515 $cgui->setFormAction($this->ctrl->getFormAction($this));
516 $cgui->setHeaderText($this->lng->txt("prtf_sure_delete_portfolio_pages"));
517 $cgui->setCancel($this->lng->txt("cancel"), "view");
518 $cgui->setConfirm($this->lng->txt("delete"), "deletePortfolioPages");
519
520 foreach ($prtf_pages as $id) {
521 $page = $this->getPageInstance($id);
522 if ($page->getPortfolioId() !== $this->object->getId()) {
523 continue;
524 }
525
526 $title = $page->getTitle();
527 $cgui->addItem("prtf_pages[]", $id, $title);
528 }
529
530 $this->tpl->setContent($cgui->getHTML());
531 }
532 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

+ Here is the call graph for this function:

◆ copyPage()

ilObjPortfolioBaseGUI::copyPage ( )

Definition at line 840 of file class.ilObjPortfolioBaseGUI.php.

840 : void
841 {
842 $form = $this->initCopyPageForm();
843 if ($form->checkInput()) {
844 // existing
845 if ($form->getInput("target") === "old") {
846 $portfolio_id = $form->getInput("prtf");
847 }
848 // new
849 else {
850 $portfolio = new ilObjPortfolio();
851 $portfolio->setTitle($form->getInput("title"));
852 $portfolio->create();
853 $portfolio_id = $portfolio->getId();
854 }
855
856 // copy page(s)
857 $page_ids = $this->port_request->getPortfolioPageIds();
858 foreach ($page_ids as $page_id) {
859 $source = $this->getPageInstance($page_id);
860 $target = $this->getPageInstance(null, $portfolio_id);
861 $target->setXMLContent($source->copyXmlContent(true)); // copy mobs
862 $target->setType($source->getType());
863 $target->setTitle($source->getTitle());
864 $target->create();
865 }
866
867 $this->tpl->setOnScreenMessage('success', $this->lng->txt("prtf_pages_copied"), true);
868 $this->ctrl->redirect($this, "view");
869 }
870
871 $form->setValuesByPost();
872 $this->copyPageForm($form);
873 }
copyPageForm(?ilPropertyFormGUI $a_form=null)
Select target portfolio for page(s) copy.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

+ Here is the call graph for this function:

◆ copyPageForm()

ilObjPortfolioBaseGUI::copyPageForm ( ?ilPropertyFormGUI  $a_form = null)

Select target portfolio for page(s) copy.

Definition at line 815 of file class.ilObjPortfolioBaseGUI.php.

817 : void {
818 $prtf_pages = $this->port_request->getPortfolioPageIds();
819
820 if (count($prtf_pages) === 0) {
821 $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_checkbox"), true);
822 $this->ctrl->redirect($this, "view");
823 } else {
824 $this->tabs_gui->activateTab("pages");
825
826 if (!$a_form) {
827 $a_form = $this->initCopyPageForm();
828 }
829
830 foreach ($prtf_pages as $page_id) {
831 $item = new ilHiddenInputGUI("prtf_pages[]");
832 $item->setValue($page_id);
833 $a_form->addItem($item);
834 }
835
836 $this->tpl->setContent($a_form->getHTML());
837 }
838 }
This class represents a hidden form property in a property form.

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

+ Here is the call graph for this function:

◆ deletePortfolioPages()

ilObjPortfolioBaseGUI::deletePortfolioPages ( )

Definition at line 534 of file class.ilObjPortfolioBaseGUI.php.

534 : void
535 {
536 if (!$this->checkPermissionBool("write")) {
537 return;
538 }
539
540 $page_ids = $this->port_request->getPortfolioPageIds();
541 foreach ($page_ids as $id) {
542 $page = $this->getPageInstance($id);
543 $page->delete();
544 }
545 $this->tpl->setOnScreenMessage('success', $this->lng->txt("prtf_portfolio_page_deleted"), true);
546 $this->ctrl->redirect($this, "view");
547 }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)

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

+ Here is the call graph for this function:

◆ determinePageCall()

ilObjPortfolioBaseGUI::determinePageCall ( )
protected

Definition at line 109 of file class.ilObjPortfolioBaseGUI.php.

109 : bool
110 {
111 // edit
112 if ($this->requested_ppage > 0) {
113 if (!$this->checkPermissionBool("write")) {
114 $this->ctrl->redirect($this, "view");
115 }
116
117 $this->page_id = $this->requested_ppage;
118 $this->page_mode = "edit";
119 $this->ctrl->setParameter($this, "ppage", $this->page_id);
120 return true;
121 }
122
123 // preview
124 $this->page_id = $this->requested_user_page;
125 $this->page_mode = "preview";
126 $this->ctrl->setParameter($this, "user_page", $this->page_id);
127 return false;
128 }

References $requested_ppage, $requested_user_page, ilObject2GUI\checkPermissionBool(), and ILIAS\Repository\ctrl().

Referenced by ilObjPortfolioTemplateGUI\executeCommand().

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

◆ export()

ilObjPortfolioBaseGUI::export ( bool  $a_with_comments = false)

Definition at line 798 of file class.ilObjPortfolioBaseGUI.php.

800 : void {
801 $port_export = new \ILIAS\Portfolio\Export\PortfolioHtmlExport($this);
802 $port_export->includeComments($a_with_comments);
803 $port_export->exportHtml();
804 $port_export->deliver($this->object->getTitle() . ".zip", true);
805 }

◆ exportWithComments()

ilObjPortfolioBaseGUI::exportWithComments ( )

Definition at line 807 of file class.ilObjPortfolioBaseGUI.php.

807 : void
808 {
809 $this->export(true);
810 }
export(bool $a_with_comments=false)

◆ getAdditional()

ilObjPortfolioBaseGUI::getAdditional ( )

Definition at line 177 of file class.ilObjPortfolioBaseGUI.php.

177 : array
178 {
179 return $this->additional;
180 }

References $additional.

◆ getCommentGUI()

ilObjPortfolioBaseGUI::getCommentGUI ( )
protected

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

693 {
694 $gui = $this->notes->gui()->getCommentsGUI(
695 $this->object->getId(),
696 $this->getCurrentPage(),
697 "pfpg"
698 );
699 $gui->setRepositoryMode(false);
700 $gui->enablePublicNotesDeletion(($this->user_id === $this->object->getOwner()) &&
701 $this->settings->get("comments_del_tutor", '1'));
702 return $gui;
703 }
ILIAS Portfolio InternalGUIService $gui

References ILIAS\Repository\object(), and ilNoteGUI\setRepositoryMode().

+ Here is the call graph for this function:

◆ getCurrentPage()

ilObjPortfolioBaseGUI::getCurrentPage ( )
protected

Definition at line 664 of file class.ilObjPortfolioBaseGUI.php.

664 : ?int
665 {
666 $pages = ilPortfolioPage::getAllPortfolioPages($this->object->getId());
667 $current_page = (int) $this->requested_user_page;
668
669 // validate current page
670 if ($pages && $current_page) {
671 $found = false;
672 foreach ($pages as $page) {
673 if ((int) $page["id"] === $current_page) {
674 $found = true;
675 break;
676 }
677 }
678 if (!$found) {
679 $current_page = null;
680 }
681 }
682
683 // display first page of portfolio if none given
684 if (!$current_page && $pages) {
685 $current_page = $pages;
686 $current_page = array_shift($current_page);
687 $current_page = (int) $current_page["id"];
688 }
689 return $current_page;
690 }
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio.

References ilPortfolioPage\getAllPortfolioPages(), ILIAS\Repository\int(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ getEditFormCustomValues()

ilObjPortfolioBaseGUI::getEditFormCustomValues ( array &  $a_values)
protected

Add values to custom edit fields.

Reimplemented from ilObjectGUI.

Reimplemented in ilObjPortfolioGUI, and ilObjPortfolioTemplateGUI.

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

246 : void
247 {
248 $a_values["comments"] = $this->object->hasPublicComments();
249 $a_values["ppic"] = $this->object->hasProfilePicture();
250 /*
251 $a_values["bg_color"] = $this->object->getBackgroundColor();
252 $a_values["font_color"] = $this->object->getFontColor();
253 */
254 }

◆ getPageGUIClassName()

ilObjPortfolioBaseGUI::getPageGUIClassName ( )
abstract

Reimplemented in ilObjPortfolioGUI, and ilObjPortfolioTemplateGUI.

Referenced by addLocatorItems().

+ Here is the caller graph for this function:

◆ getPageGUIInstance()

ilObjPortfolioBaseGUI::getPageGUIInstance ( int  $a_page_id)
abstractprotected

Reimplemented in ilObjPortfolioGUI, and ilObjPortfolioTemplateGUI.

Referenced by handlePageCall().

+ Here is the caller graph for this function:

◆ getPageInstance()

ilObjPortfolioBaseGUI::getPageInstance ( ?int  $a_page_id = null,
?int  $a_portfolio_id = null 
)
abstractprotected

Reimplemented in ilObjPortfolioGUI, and ilObjPortfolioTemplateGUI.

Referenced by addLocatorItems().

+ Here is the caller graph for this function:

◆ handlePageCall()

ilObjPortfolioBaseGUI::handlePageCall ( string  $a_cmd)
protected

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

130 : void
131 {
132 if (!$this->page_id) {
133 $this->ctrl->redirect($this, "view");
134 }
135
136 $page_gui = $this->getPageGUIInstance($this->page_id);
137
138 $this->tabs_gui->clearTargets();
139 $this->tabs_gui->setBackTarget(
140 $this->lng->txt("back"),
141 $this->ctrl->getLinkTarget($this, "view")
142 );
143
144 // needed for editor
145 $page_gui->setStyleId($this->content_style_domain->getEffectiveStyleId());
146
147 $ret = $this->ctrl->forwardCommand($page_gui);
148 if ($ret != "" && $ret !== true) {
149 // preview (fullscreen)
150 if ($this->page_mode === "preview") {
151 // embedded call which did not generate any output (e.g. calendar month navigation)
153 // suppress (portfolio) notes for blog postings
154 $this->preview(false, $ret, ($a_cmd !== "previewEmbedded"));
155 } else {
156 $this->preview(false);
157 }
158 }
159 // edit
160 else {
161 $this->setContentStyleSheet();
162 if (is_string($ret)) {
163 $this->tpl->setContent($ret);
164 }
165 }
166 }
167 }
getPageGUIInstance(int $a_page_id)
setContentStyleSheet(?ilGlobalTemplateInterface $a_tpl=null)

References ILIAS\Repository\ctrl(), ilPortfolioPageGUI\EMBEDDED_NO_OUTPUT, getPageGUIInstance(), ILIAS\Repository\lng(), ILIAS\UI\examples\Symbol\Glyph\Preview\preview(), and setContentStyleSheet().

Referenced by ilObjPortfolioTemplateGUI\executeCommand().

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

◆ initCopyPageForm()

ilObjPortfolioBaseGUI::initCopyPageForm ( )

Definition at line 877 of file class.ilObjPortfolioBaseGUI.php.

878 {
879 $form = new ilPropertyFormGUI();
880 $form->setFormAction($this->ctrl->getFormAction($this));
881 $form->setTitle($this->lng->txt("prtf_copy_page"));
882
883 $this->initCopyPageFormOptions($form);
884
885 $form->addCommandButton("copyPage", $this->lng->txt("save"));
886 $form->addCommandButton("view", $this->lng->txt("cancel"));
887
888 return $form;
889 }
initCopyPageFormOptions(ilPropertyFormGUI $a_form)
This class represents a property form user interface.

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

+ Here is the call graph for this function:

◆ initCopyPageFormOptions()

ilObjPortfolioBaseGUI::initCopyPageFormOptions ( ilPropertyFormGUI  $a_form)
abstractprotected

◆ initEditCustomForm()

ilObjPortfolioBaseGUI::initEditCustomForm ( ilPropertyFormGUI  $a_form)
protected

Add custom fields to update form.

Reimplemented from ilObjectGUI.

Definition at line 218 of file class.ilObjPortfolioBaseGUI.php.

218 : void
219 {
220 $this->setSettingsSubTabs("properties");
221
222
223 // profile picture
224 $ppic = new ilCheckboxInputGUI($this->lng->txt("prtf_profile_picture"), "ppic");
225 $a_form->addItem($ppic);
226
227 $prfa_set = new ilSetting("prfa");
228
229 $section = new ilFormSectionHeaderGUI();
230 $section->setTitle($this->lng->txt('obj_features'));
231 $a_form->addItem($section);
232
233 // comments
234 $comments = new ilCheckboxInputGUI($this->lng->txt("prtf_public_comments"), "comments");
235 $a_form->addItem($comments);
236
237 /* #15000
238 $bg_color = new ilColorPickerInputGUI($this->lng->txt("prtf_background_color"), "bg_color");
239 $a_form->addItem($bg_color);
240
241 $font_color = new ilColorPickerInputGUI($this->lng->txt("prtf_font_color"), "font_color");
242 $a_form->addItem($font_color);
243 */
244 }
This class represents a checkbox property in a property form.
This class represents a section header in a property form.
ILIAS Setting Class.
$comments

References $comments, ilPropertyFormGUI\addItem(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ initPageForm()

ilObjPortfolioBaseGUI::initPageForm ( string  $a_mode = "create")

Init portfolio page form.

Definition at line 396 of file class.ilObjPortfolioBaseGUI.php.

397 {
398 $form = new ilPropertyFormGUI();
399 $form->setFormAction($this->ctrl->getFormAction($this));
400
401 // title
402 $ti = new ilTextInputGUI($this->lng->txt("title"), "title");
403 $ti->setMaxLength(200);
404 $ti->setRequired(true);
405 $form->addItem($ti);
406
407 // save and cancel commands
408 if ($a_mode === "create") {
410 if ($templates) {
411 $use_template = new ilRadioGroupInputGUI($this->lng->txt("prtf_use_page_layout"), "tmpl");
412 $use_template->setRequired(true);
413 $form->addItem($use_template);
414
415 $opt = new ilRadioOption($this->lng->txt("none"), 0);
416 $use_template->addOption($opt);
417
418 foreach ($templates as $templ) {
419 $templ->readObject();
420
421 $opt = new ilRadioOption($templ->getTitle() . $templ->getPreview(), $templ->getId());
422 $use_template->addOption($opt);
423 }
424 }
425
426 $form->setTitle($this->lng->txt("prtf_add_page") . ": " .
427 $this->object->getTitle());
428 $form->addCommandButton("savePage", $this->lng->txt("save"));
429 $form->addCommandButton("view", $this->lng->txt("cancel"));
430 }
431
432 return $form;
433 }
static activeLayouts(int $a_module=0)
Get active layouts.
This class represents a property in a property form.
This class represents an option in a radio group.
This class represents a text property in a property form.

References ilPageLayout\activeLayouts(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilPageLayout\MODULE_PORTFOLIO.

+ Here is the call graph for this function:

◆ renderFullscreenHeader()

static ilObjPortfolioBaseGUI::renderFullscreenHeader ( ilObjPortfolioBase  $a_portfolio,
ilGlobalTemplateInterface  $a_tpl,
int  $a_user_id,
bool  $a_export = false 
)
static

Definition at line 748 of file class.ilObjPortfolioBaseGUI.php.

753 : void {
754 global $DIC;
755
756 $ilUser = $DIC->user();
757
758 if (!$a_export) {
760 $a_portfolio->getType(),
761 ($a_portfolio->getType() === "prtt")
762 ? $a_portfolio->getRefId()
763 : $a_portfolio->getId(),
764 $a_portfolio->getId(),
765 $ilUser->getId()
766 );
767 }
768
769 $name = ilObjUser::_lookupName($a_user_id);
770 $name = $name["lastname"] . ", " . (($t = $name["title"]) ? $t . " " : "") . $name["firstname"];
771
772 $prfa_set = new ilSetting("prfa");
773
774 // profile picture
775 $ppic = null;
776 if ($a_portfolio->hasProfilePicture()) {
777 $ppic = ilObjUser::_getPersonalPicturePath($a_user_id, "xsmall", true, true);
778 if ($a_export) {
779 $ppic = basename($ppic);
780 }
781 }
782
783 $a_tpl->resetHeaderBlock(false);
784 // $a_tpl->setBackgroundColor($a_portfolio->getBackgroundColor());
785 // @todo fix this
786 $a_tpl->setTitleIcon((string) $ppic);
787 $a_tpl->setTitle($a_portfolio->getTitle());
788 // $a_tpl->setTitleColor($a_portfolio->getFontColor());
789 $a_tpl->setDescription($name);
790
791 // to get rid of locator in portfolio template preview
792 $a_tpl->setVariable("LOCATOR", "");
793
794 // :TODO: obsolete?
795 // $a_tpl->setBodyClass("std ilExternal ilPortfolio");
796 }
static _recordReadEvent(string $a_type, int $a_ref_id, int $obj_id, int $usr_id, $a_ext_rc=null, $a_ext_time=null)
static _getPersonalPicturePath(int $usr_id, string $size='small', bool $force_pic=false)
static _lookupName(int $a_user_id)
setDescription(string $a_descr)
Sets description below title in standard template.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
resetHeaderBlock(bool $a_reset_header_action=true)
Reset all header properties: title, icon, description, alerts, action menu.

References ilChangeEvent\_recordReadEvent(), ilObject\getId(), ilObject\getRefId(), and ilObject\getType().

+ Here is the call graph for this function:

◆ savePage()

ilObjPortfolioBaseGUI::savePage ( )

Create new portfolio page.

Definition at line 438 of file class.ilObjPortfolioBaseGUI.php.

438 : void
439 {
440 $form = $this->initPageForm("create");
441 if ($form->checkInput() && $this->checkPermissionBool("write")) {
442 $page = $this->getPageInstance();
443 $page->setType(ilPortfolioPage::TYPE_PAGE);
444 $page->setTitle($form->getInput("title"));
445
446 // use template as basis
447 $layout_id = $form->getInput("tmpl");
448 if ($layout_id) {
449 $layout_obj = new ilPageLayout($layout_id);
450 $page->setXMLContent($layout_obj->copyXmlContent(false));
451 }
452
453 $page->create();
454
455 $this->tpl->setOnScreenMessage('success', $this->lng->txt("prtf_page_created"), true);
456 $this->ctrl->redirect($this, "view");
457 }
458
459 $this->tabs_gui->clearTargets();
460 $this->tabs_gui->setBackTarget(
461 $this->lng->txt("back"),
462 $this->ctrl->getLinkTarget($this, "view")
463 );
464
465 $form->setValuesByPost();
466 $this->tpl->setContent($form->getHTML());
467 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilPortfolioPage\TYPE_PAGE.

+ Here is the call graph for this function:

◆ savePortfolioPagesOrdering()

ilObjPortfolioBaseGUI::savePortfolioPagesOrdering ( )

Save ordering of portfolio pages.

Definition at line 472 of file class.ilObjPortfolioBaseGUI.php.

472 : void
473 {
474 if (!$this->checkPermissionBool("write")) {
475 return;
476 }
477
478 $title_changes = array();
479
480 $order = $this->port_request->getOrder();
481 $titles = $this->port_request->getTitles();
482 if (count($order) > 0) {
483 foreach ($order as $k => $v) {
484 $page = $this->getPageInstance(ilUtil::stripSlashes($k));
485 if ($titles[$k] ?? "") {
486 $new_title = $titles[$k] ?? "";
487 if ($page->getTitle() != $new_title) {
488 $title_changes[$page->getId()] = array("old" => $page->getTitle(), "new" => $new_title);
489 $page->setTitle($new_title);
490 }
491 }
492 $page->setOrderNr(ilUtil::stripSlashes($v));
493 $page->update();
494 }
495 ilPortfolioPage::fixOrdering($this->object->getId());
496 }
497
498 $this->object->fixLinksOnTitleChange($title_changes);
499
500 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
501 $this->ctrl->redirect($this, "view");
502 }
static fixOrdering(int $a_portfolio_id)
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")

References ILIAS\Repository\ctrl(), ilPortfolioPage\fixOrdering(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ setAdditional()

ilObjPortfolioBaseGUI::setAdditional ( array  $a_additional)

Set Additonal Information (used in public profile?)

Definition at line 172 of file class.ilObjPortfolioBaseGUI.php.

172 : void
173 {
174 $this->additional = $a_additional;
175 }

◆ setContentStyleSheet()

ilObjPortfolioBaseGUI::setContentStyleSheet ( ?ilGlobalTemplateInterface  $a_tpl = null)

Definition at line 896 of file class.ilObjPortfolioBaseGUI.php.

898 : void {
900
901 if ($a_tpl) {
902 $ctpl = $a_tpl;
903 } else {
904 $ctpl = $tpl;
905 }
906
907 $this->content_style_gui->addCss(
908 $ctpl,
909 $this->object->getRefId(),
910 $this->object->getId()
911 );
912 }
ilGlobalTemplateInterface $tpl
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.

Referenced by handlePageCall().

+ Here is the caller graph for this function:

◆ setPermaLink()

ilObjPortfolioBaseGUI::setPermaLink ( int  $a_obj_id,
string  $a_type 
)

Set custom perma link (used in public profile?)

Definition at line 185 of file class.ilObjPortfolioBaseGUI.php.

188 : void {
189 $this->perma_link = array("obj_id" => $a_obj_id, "type" => $a_type);
190 }

◆ setSettingsSubTabs()

ilObjPortfolioBaseGUI::setSettingsSubTabs ( string  $a_active)
protected

Definition at line 197 of file class.ilObjPortfolioBaseGUI.php.

197 : void
198 {
199 // #17455
200 $this->lng->loadLanguageModule($this->getType());
201
202 // general properties
203 $this->tabs_gui->addSubTab(
204 "properties",
205 $this->lng->txt($this->getType() . "_properties"),
206 $this->ctrl->getLinkTarget($this, 'edit')
207 );
208
209 $this->tabs_gui->addSubTab(
210 "style",
211 $this->lng->txt("obj_sty"),
212 $this->ctrl->getLinkTargetByClass("ilobjectcontentstylesettingsgui", "")
213 );
214
215 $this->tabs_gui->activateSubTab($a_active);
216 }
getType()
Functions that must be overwritten.

References ILIAS\Repository\lng().

Referenced by ilObjPortfolioTemplateGUI\executeCommand().

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

◆ showEditButton()

ilObjPortfolioBaseGUI::showEditButton ( int  $page_id)
protected

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

707 : void {
708 $page_class = ($this->getType() === "prtt")
709 ? "ilPortfolioTemplatePageGUI"
710 : "ilportfoliopagegui";
711 $button = null;
712 if ($this->checkPermissionBool("write") &&
714 if ($this->getType() === "prtt") {
715 $button = $this->ui->factory()->button()->standard(
716 $this->lng->txt("prtt_edit"),
717 $this->ctrl->getLinkTargetByClass(["ilobjportfoliotemplategui"], "view")
718 );
719 } else {
720 $button = $this->ui->factory()->button()->standard(
721 $this->lng->txt("prtf_edit_portfolio"),
722 $this->ctrl->getLinkTargetByClass([
723 ilDashboardGUI::class,
724 ilPortfolioRepositoryGUI::class,
725 ilObjPortfolioGUI::class
726 ], "view")
727 );
728 }
729 $this->toolbar->addComponent($button);
730 $button = null;
731 }
733 $this->ctrl->setParameterByClass($page_class, "ppage", $page_id);
734 $button = $this->ui->factory()->button()->standard(
735 $this->lng->txt("edit_page"),
736 $this->ctrl->getLinkTargetByClass($page_class, "edit")
737 );
738 if ($this->checkPermissionBool("write")) {
739 $this->toolbar->addComponent($button);
740 }
741 $button = null;
742 }
743 if ($button && $this->checkPermissionBool("write")) {
744 $this->tpl->setHeaderActionMenu($this->ui->renderer()->render($button));
745 }
746 }
static lookupType($a_page_id)

References ILIAS\Repository\lng(), ILIAS\Repository\toolbar(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ updateCustom()

ilObjPortfolioBaseGUI::updateCustom ( ilPropertyFormGUI  $form)
protected

Insert custom update form values into object.

Reimplemented from ilObjectGUI.

Reimplemented in ilObjPortfolioGUI, and ilObjPortfolioTemplateGUI.

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

256 : void
257 {
258 $this->object->setPublicComments($form->getInput("comments"));
259 $this->object->setProfilePicture($form->getInput("ppic"));
260 $prfa_set = new ilSetting("prfa");
261 }
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...

References ilPropertyFormGUI\getInput().

+ Here is the call graph for this function:

◆ view()

ilObjPortfolioBaseGUI::view ( )

Show list of portfolio pages.

Reimplemented from ilObject2GUI.

Definition at line 280 of file class.ilObjPortfolioBaseGUI.php.

280 : void
281 {
282 $ilToolbar = $this->toolbar;
285
286 if (!$this->checkPermissionBool("write")) {
287 $this->ctrl->redirect($this, "infoScreen");
288 }
289
290 $this->tabs_gui->activateTab("pages");
291
293
294 $this->gui->button(
295 $this->lng->txt("prtf_add_page"),
296 $this->ctrl->getLinkTarget($this, "addPage")
297 )->toToolbar(true);
298
299
300 // #16571
301 $modal_html = "";
302 if ($this->getType() === "prtf" && count($pages) > 0) {
303 $ilToolbar->addSeparator();
304
305 $ui = $this->ui;
306
307 if ($this->object->isCommentsExportPossible()) {
308 $this->lng->loadLanguageModule("note");
309 $comment_export_helper = new \ILIAS\Notes\Export\ExportHelperGUI();
310 $comment_modal = $comment_export_helper->getCommentIncludeModalDialog(
311 $this->lng->txt("export_html"),
312 $this->lng->txt("note_html_export_include_comments"),
313 $this->ctrl->getLinkTarget($this, "export"),
314 $this->ctrl->getLinkTarget($this, "exportWithComments")
315 );
316 $button = $ui->factory()->button()->standard($this->lng->txt("export_html"), '')
317 ->withOnClick($comment_modal->getShowSignal());
318 $ilToolbar->addComponent($button);
319 $modal_html = $ui->renderer()->render($comment_modal);
320 } else {
321 $this->gui->button(
322 $this->lng->txt("export_html"),
323 $this->ctrl->getLinkTarget($this, "export")
324 )->toToolbar();
325 }
326
327 $print_view = $this->getPrintView();
328 $modal_elements = $print_view->getModalElements($this->ctrl->getLinkTarget(
329 $this,
330 "printSelection"
331 ));
332 $modal_html .= $ui->renderer()->render($modal_elements->modal);
333 $ilToolbar->addComponent($modal_elements->button);
334 }
335
336 $table = new ilPortfolioPageTableGUI($this, "view");
337
338
339 $this->tpl->setContent($table->getHTML() . $modal_html);
340 }
ilToolbarGUI $toolbar
ilSetting $settings
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $ilSetting
Definition: privfeed.php:31

References $ilSetting, $lng, ILIAS\Repository\ctrl(), ilPortfolioPage\getAllPortfolioPages(), ILIAS\Survey\Mode\getId(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

Field Documentation

◆ $additional

array ilObjPortfolioBaseGUI::$additional = array()
protected

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

Referenced by getAdditional().

◆ $content_style_domain

ILIAS Style Content Object ObjectFacade ilObjPortfolioBaseGUI::$content_style_domain
protected

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

◆ $content_style_gui

ILIAS Style Content GUIService ilObjPortfolioBaseGUI::$content_style_gui
protected

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

◆ $gui

ILIAS Portfolio InternalGUIService ilObjPortfolioBaseGUI::$gui
protected

◆ $help

ilHelpGUI ilObjPortfolioBaseGUI::$help
protected

Definition at line 33 of file class.ilObjPortfolioBaseGUI.php.

◆ $notes

ILIAS Notes Service ilObjPortfolioBaseGUI::$notes
protected

Definition at line 30 of file class.ilObjPortfolioBaseGUI.php.

◆ $page_id

int ilObjPortfolioBaseGUI::$page_id = 0
protected

Definition at line 37 of file class.ilObjPortfolioBaseGUI.php.

◆ $page_mode

string ilObjPortfolioBaseGUI::$page_mode
protected

Definition at line 38 of file class.ilObjPortfolioBaseGUI.php.

◆ $perma_link

array ilObjPortfolioBaseGUI::$perma_link = []
protected

Definition at line 36 of file class.ilObjPortfolioBaseGUI.php.

◆ $port_request

StandardGUIRequest ilObjPortfolioBaseGUI::$port_request
protected

Definition at line 32 of file class.ilObjPortfolioBaseGUI.php.

◆ $requested_ppage

int ilObjPortfolioBaseGUI::$requested_ppage
protected

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

Referenced by determinePageCall().

◆ $requested_user_page

int ilObjPortfolioBaseGUI::$requested_user_page
protected

Definition at line 40 of file class.ilObjPortfolioBaseGUI.php.

Referenced by determinePageCall().

◆ $ui

ILIAS DI UIServices ilObjPortfolioBaseGUI::$ui
protected

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

◆ $user_id

int ilObjPortfolioBaseGUI::$user_id = 0
protected

Definition at line 34 of file class.ilObjPortfolioBaseGUI.php.


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