ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilPortfolioPageGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilPortfolioPageGUI:
+ Collaboration diagram for ilPortfolioPageGUI:

Public Member Functions

 __construct (int $a_portfolio_id, int $a_id=0, int $a_old_nr=0, bool $a_enable_comments=true)
 
 getParentType ()
 
 executeCommand ()
 
 showPage ()
 
 getTabs (string $a_activate="")
 
 setEmbedded (bool $a_value)
 Set embedded mode: will suppress tabs. More...
 
 setAdditional (array $a_additional)
 Set Additonal Information. More...
 
 getAdditional ()
 Get Additonal Information. More...
 
 getJsOnloadCode ()
 
 postOutputProcessing (string $a_output)
 
 getExportMaterial ()
 
 makePlaceHoldersClickable (string $a_html)
 
 getViewPageLink ()
 
 getViewPageText ()
 
 getPagePermaLink ()
 
 getCommentsHTMLExport ()
 
 finishEditing ()
 
- Public Member Functions inherited from ilPageObjectGUI
 __construct (string $a_parent_type, int $a_id, int $a_old_nr=0, bool $a_prevent_get_id=false, string $a_lang="", string $concrete_lang="")
 
 setTemplate (ilGlobalTemplateInterface $main_tpl)
 
 afterConstructor ()
 
 setAdvMdRecordObject (int $a_adv_ref_id, string $a_adv_type, string $a_adv_subtype="-")
 Set object, that defines the adv md records being used. More...
 
 getAdvMdRecordObject ()
 Get adv md record type. More...
 
 setParentType (string $a_val)
 
 getParentType ()
 
 setId (int $a_val)
 
 getId ()
 
 setOldNr (int $a_val)
 Set old nr (historic page) More...
 
 getOldNr ()
 
 setLanguage (string $a_val)
 
 getLanguage ()
 
 setEnablePCType (string $a_pc_type, bool $a_val)
 
 getEnablePCType (string $a_pc_type)
 
 setPageConfig (ilPageConfig $a_val)
 
 getPageConfig ()
 
 setPageObject (ilPageObject $a_pg_obj)
 
 getPageObject ()
 
 setOutputMode (string $a_mode=self::PRESENTATION)
 
 getOutputMode ()
 
 setTemplateOutput (bool $a_output=true)
 
 outputToTemplate ()
 
 setPresentationTitle (string $a_title="")
 
 getPresentationTitle ()
 
 setHeader (string $a_title="")
 
 getHeader ()
 
 setLinkParams (string $l_params="")
 
 getLinkParams ()
 
 setLinkFrame (string $l_frame="")
 
 getLinkFrame ()
 
 setPageLinker (\ILIAS\COPage\PageLinker $page_linker)
 
 getLinkXML ()
 
 setQuestionHTML (array $question_html)
 
 getQuestionHTML ()
 
 setTemplateTargetVar (string $a_variable)
 
 getTemplateTargetVar ()
 
 getTemplateOutputVar ()
 
 setSourcecodeDownloadScript (string $script_name)
 
 getSourcecodeDownloadScript ()
 
 setTabs (ilTabsGUI $a_tabs)
 
 setPageBackTitle (string $a_title)
 
 setFileDownloadLink (string $a_download_link)
 
 getFileDownloadLink ()
 
 setFullscreenLink (string $a_fullscreen_link)
 
 getFullscreenLink ()
 
 setIntLinkReturn (string $a_return)
 
 enableChangeComments (bool $a_enabled)
 
 isEnabledChangeComments ()
 
 enableNotes (bool $a_enabled, int $a_parent_id)
 
 isEnabledNotes ()
 
 setOfflineDirectory (string $offdir)
 
 getOfflineDirectory ()
 
 setViewPageLink (string $a_link, string $a_target="")
 set link for "view page" button More...
 
 getViewPageLink ()
 
 getViewPageTarget ()
 
 getViewPageText ()
 
 setActivationListener (object $a_obj, string $a_meth)
 
 setEnabledNews (bool $a_enabled, int $a_news_obj_id=0, string $a_news_obj_type="")
 
 getEnabledNews ()
 
 setTabHook (object $a_object, string $a_function)
 
 setEditPreview (bool $a_editpreview)
 Set Display first Edit tab, then Preview tab, instead of Page and Edit. More...
 
 getEditPreview ()
 
 setEnabledTabs (bool $a_enabledtabs)
 
 getEnabledTabs ()
 
 setEnabledPageFocus (bool $a_enabledpagefocus)
 
 setOpenPlaceHolder (string $a_val)
 
 getOpenPlaceHolder ()
 
 getEnabledPageFocus ()
 
 setPrependingHtml (string $a_prependinghtml)
 
 getPrependingHtml ()
 
 setEnableEditing (bool $a_enableediting)
 
 getEnableEditing ()
 
 setRawPageContent (bool $a_rawpagecontent)
 Set Get raw page content only. More...
 
 getRawPageContent ()
 
 setStyleId (int $a_styleid)
 
 getStyleId ()
 
 setCompareMode (bool $a_val)
 
 getCompareMode ()
 
 setAbstractOnly (bool $a_val, string $pcid="")
 Get only abstract (first text paragraph) More...
 
 getAbstractOnly ()
 
 setRenderPageContainer (bool $a_val)
 
 getRenderPageContainer ()
 
 getDisabledText ()
 
 getEnabledHref ()
 
 setEnabledHref (bool $enable)
 
 activateMetaDataEditor (ilObject $a_rep_obj, string $a_type, int $a_sub_obj_id, object $a_observer_obj=null, string $a_observer_func="")
 Activate meda data editor. More...
 
 determineFileDownloadLink ()
 
 determineFullscreenLink ()
 
 determineSourcecodeDownloadScript ()
 
 getComponentPluginsXML ()
 Put information about activated plugins into XML. More...
 
 executeCommand ()
 execute command More...
 
 setQEditTabs (string $a_active)
 Set question editing tabs. More...
 
 onFeedbackEditingForwarding ()
 
 deactivatePage ()
 
 activatePage ()
 
 showPage ()
 display content of page More...
 
 replaceCurlyBrackets (string $output)
 
 getActivationCaptions ()
 Get captions for activation action menu entries. More...
 
 setEditMode ()
 Set edit mode. More...
 
 setDefaultLinkXml ()
 
 setLinkXml (string $xml)
 
 getProfileBackUrl ()
 
 setProfileBackUrl (string $url)
 
 downloadFile ()
 
 displayMediaFullscreen ()
 
 displayMedia (bool $a_fullscreen=false)
 
 download_paragraph ()
 download source code paragraph More...
 
 insertPageToc (string $a_output)
 
 insertResources (string $a_output)
 
 insertAdvTrigger (string $a_output)
 Insert adv content trigger. More...
 
 postOutputProcessing (string $a_output)
 Finalizing output processing. More...
 
 previewHistory ()
 Preview history. More...
 
 preview ()
 
 edit ()
 
 getBlockingInfoMessage ()
 
 insertJSAtPlaceholder ()
 
 presentation (string $a_mode=self::PRESENTATION)
 
 getHTML ()
 
 showMediaFullscreen (int $a_style_id=0)
 show fullscreen view of media object More...
 
 displayValidationError ($a_error)
 display validation error More...
 
 history ()
 Get history table as HTML. More...
 
 rollbackConfirmation ()
 Rollback confirmation. More...
 
 rollback ()
 Rollback to a previous version. More...
 
 setScreenIdComponent ()
 
 getMetaDataLink ()
 
 getTabs (string $a_activate="")
 
 compareVersion ()
 Compares two revisions of the page. More...
 
 replaceDiffTags (string $a_html)
 
 editActivation ()
 Edit activation (only, if scheduled page activation is activated in administration) More...
 
 initActivationForm ()
 Init activation form. More...
 
 getActivationFormValues ()
 Get values for activation form. More...
 
 saveActivation ()
 Save Activation. More...
 
 getNotesHTML (object $a_content_object=null, bool $a_enable_private_notes=true, bool $a_enable_public_notes=false, bool $a_enable_notes_deletion=false, callable $a_callback=null, bool $export=false)
 Get html for public and/or private notes. More...
 
 processAnswer ()
 Process answer. More...
 
 initialOpenedContent ()
 Initially opened content. More...
 
 initOpenedContentForm ()
 
 saveInitialOpenedContent ()
 
 switchToLanguage ()
 Switch to language. More...
 
 confirmPageTranslationCreation ()
 Confirm page translation creation. More...
 
 editMasterLanguage ()
 Edit master language. More...
 
 createPageTranslation ()
 Create page translation. More...
 
 releasePageLock ()
 Release page lock. More...
 
 finishEditing ()
 
 getPagePermaLink ()
 
 getAdditionalPageActions ()
 Get additional page actions. More...
 
 afterDeleteContents ()
 

Data Fields

const EMBEDDED_NO_OUTPUT = -99
 
- Data Fields inherited from ilPageObjectGUI
const PRESENTATION = "presentation"
 
const EDIT = "edit"
 
const PREVIEW = "preview"
 
const OFFLINE = "offline"
 
const PRINTING = "print"
 
string $page_back_title = ""
 
ilPageObject $obj
 
string $presentation_title = ""
 
string $target_script = ""
 
string $return_location = ""
 
string $target_var = ""
 
string $template_output_var = ""
 
bool $output2template = false
 
string $link_params = ""
 
string $sourcecode_download_script = ""
 
bool $change_comments = false
 
bool $activation = false
 
bool $activated = true
 
bool $editpreview = false
 
bool $use_meta_data = false
 
ilObject $meta_data_rep_obj = null
 
int $meta_data_sub_obj_id = 0
 
string $meta_data_type = ""
 
object $meta_data_observer_obj = null
 
string $meta_data_observer_func = ""
 
bool $link_xml_set = false
 
bool $enableediting = true
 
bool $rawpagecontent = false
 
bool $enabledcontentincludes = false
 
bool $compare_mode = false
 
ilPageConfig $page_config = null
 
bool $tabs_enabled = true
 
bool $render_page_container = false
 
string $pl_start = "{{{{{"
 
string $pl_end = "}}}}}"
 

Protected Member Functions

 getPageContentUserId (int $a_user_id)
 
 renderPageElement (string $a_type, string $a_html)
 
 renderTeaser (string $a_type, string $a_title, string $a_options="")
 
 renderProfile (int $a_user_id, string $a_type, array $a_fields=null)
 
 renderVerification (int $a_user_id, string $a_type, int $a_id)
 
 dltstv ()
 
 dlexcv ()
 
 dlcrsv ()
 
 dlcmxv ()
 
 dlltiv ()
 
 dlscov ()
 
 dlcrta ()
 
 renderBlog (int $a_user_id, int $a_blog_id, array $a_posting_ids=null)
 
 renderBlogTeaser (int $a_user_id, int $a_blog_id, array $a_posting_ids=null)
 
 renderSkills (int $a_user_id, int $a_skills_id)
 
 renderSkillsTeaser (int $a_user_id, int $a_skills_id)
 
 renderConsultationHoursTeaser (int $a_user_id, string $a_mode, ?array $a_group_ids=null)
 
 renderConsultationHours (int $a_user_id, string $a_mode, ?array $a_group_ids=null)
 
 isMyCoursesActive ()
 
 renderMyCoursesTeaser (int $a_user_id, $a_default_sorting)
 
 renderMyCourses (int $a_user_id, string $a_default_sorting)
 
 getCourseSortAction (ilCtrl $ctrl)
 Get course sort action. More...
 
 getCoursesOfUser (int $a_user_id, bool $a_add_path=false)
 
 parseLOUserResults (int $a_course_obj_id, int $a_user_id)
 
- Protected Member Functions inherited from ilPageObjectGUI
 initPageObject ()
 Init page object. More...
 
 showEditToolbar ()
 Show edit toolbar. More...
 
 setEditorToolContext ()
 Set editor tool context. More...
 
 initEditing ()
 
 showEditLockInfo ()
 
 setBackToEditTabs ()
 
 setBackToHistoryTabs ()
 
 checkLangPageAvailable (int $id, string $lang)
 
 isPageContainerToBeRendered ()
 
 addResourcesToTemplate (ilGlobalTemplateInterface $tpl)
 Add resources to template. More...
 

Protected Attributes

bool $enable_comments
 
int $portfolio_id
 
ILIAS Portfolio StandardGUIRequest $port_request
 
bool $embedded = false
 
ilObjectDefinition $obj_definition
 
ilTree $tree
 
array $js_onload_code = array()
 
array $additional = array()
 
array $export_material = array("js" => array(), "images" => array(), "files" => array())
 
int $requested_ppage
 
- Protected Attributes inherited from ilPageObjectGUI
ILIAS TestQuestionPool QuestionInfoService $questioninfo
 
ILIAS COPage Page PageManager $pm
 
ILIAS COPage Link LinkManager $link
 
ILIAS COPage InternalGUIService $gui
 
ILIAS COPage PC PCDefinition $pc_definition
 
ILIAS COPage Xsl XslManager $xsl
 
ILIAS COPage Editor GUIService $editor_gui
 
ILIAS Notes Service $notes
 
int $requested_ref_id
 
int $requested_pg_id
 
string $requested_file_id
 
string $requested_transl
 
int $requested_old_nr
 
EditGUIRequest $request
 
EditSessionRepository $edit_repo
 
string $exp_target_script = ""
 
string $exp_id = ""
 
string $exp_frame = ""
 
string $act_meth = ""
 
object $act_obj
 
int $notes_parent_id = 0
 
ilPropertyFormGUI $form
 
int $styleid = 0
 
bool $enabledpagefocus
 
string $link_xml
 
int $old_nr = 0
 
int $id
 
string $language
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
ilCtrl $ctrl
 
ilTabsGUI $tabs_gui
 
ilAccessHandler $access
 
ilLogger $log
 
ilObjUser $user
 
ilHelpGUI $help
 
string $output_mode = ""
 
string $parent_type = ""
 
string $file_download_link = ''
 
string $fullscreen_link = ''
 
string $link_frame = ''
 
ILIAS GlobalScreen ScreenContext ContextServices $tool_context
 
ILIAS DI UIServices $ui
 
ILIAS COPage PageLinker $page_linker
 
string $abstract_pcid = ""
 
ilToolbarGUI $toolbar
 
string $open_place_holder = ""
 
int $requested_user_id = 0
 
int $requested_q_id = 0
 
int $requested_history_mode = 0
 
bool $enabled_news = false
 
int $news_obj_id = 0
 
string $news_obj_type = ""
 
array $tab_hook = null
 
string $view_page_link = ""
 
string $view_page_target = ""
 
string $offline_directory = ""
 
bool $notes_enabled = false
 
string $prependinghtml = ""
 
string $header = ""
 
string $int_link_return = ""
 
bool $enabled_href = true
 
int $adv_ref_id = null
 
string $adv_type = null
 
string $adv_subtype = null
 
string $concrete_lang = ""
 
string $profile_back_url = ""
 
ilComponentFactory $component_factory
 
ILIAS COPage Compare PageCompare $compare
 

Static Protected Attributes

static int $initialized = 0
 
static bool $calender_initialized = false
 

Private Member Functions

 createPersistentCertificateUrl (int $a_id, ilUserCertificateRepository $userCertificateRepository, string $url)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPageObjectGUI
static getTinyMenu (string $a_par_type, bool $a_int_links=false, bool $a_wiki_links=false, bool $a_keywords=false, $a_style_id=0, $a_paragraph_styles=true, $a_save_return=true, $a_anchors=false, $a_save_new=true, $a_user_links=false, \ILIAS\COPage\Editor\Server\UIWrapper $ui_wrapper=null)
 Get Tiny Menu. More...
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Portfolio page gui class

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om ilPortfolioPageGUI: ilPageEditorGUI, ilEditClipboardGUI, ilMediaPoolTargetSelector ilPortfolioPageGUI: ilPageObjectGUI, ilObjBlogGUI, ilBlogPostingGUI, ilPublicUserProfileGUI ilPortfolioPageGUI: ilCalendarMonthGUI, ilConsultationHoursGUI, ilLearningHistoryGUI

Definition at line 26 of file class.ilPortfolioPageGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilPortfolioPageGUI::__construct ( int  $a_portfolio_id,
int  $a_id = 0,
int  $a_old_nr = 0,
bool  $a_enable_comments = true 
)

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

References $DIC, ilPageObjectGUI\$tpl, ILIAS\MetaData\Repository\Validation\Data\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilObjStyleSheet\getContentStylePath(), ilPageObjectGUI\getPageObject(), getParentType(), ilObjStyleSheet\getSyntaxStylePath(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\parseCurrentBlock(), ilGlobalTemplateInterface\setCurrentBlock(), ilGlobalTemplateInterface\setVariable(), and ILIAS\Repository\user().

48  {
49  global $DIC;
50 
51  $this->tpl = $DIC["tpl"];
52  $this->ctrl = $DIC->ctrl();
53  $this->user = $DIC->user();
54  $this->obj_definition = $DIC["objDefinition"];
55  $this->access = $DIC->access();
56  $this->tree = $DIC->repositoryTree();
57  $this->lng = $DIC->language();
58  $tpl = $DIC["tpl"];
59  $this->port_request = $DIC->portfolio()
60  ->internal()
61  ->gui()
62  ->standardRequest();
63 
64  $this->portfolio_id = $a_portfolio_id;
65  $this->enable_comments = $a_enable_comments;
66 
67  parent::__construct($this->getParentType(), $a_id, $a_old_nr);
68  $this->getPageObject()->setPortfolioId($this->portfolio_id);
69 
70  // content style
71 
72  $tpl->setCurrentBlock("SyntaxStyle");
74  "LOCATION_SYNTAX_STYLESHEET",
76  );
78 
79  $tpl->setCurrentBlock("ContentStyle");
81  "LOCATION_CONTENT_STYLESHEET",
83  );
85 
86  $this->requested_ppage = $this->port_request->getPortfolioPageId();
87  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
global $DIC
Definition: feed.php:28
__construct(VocabulariesInterface $vocabularies)
ilGlobalTemplateInterface $tpl
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
+ Here is the call graph for this function:

Member Function Documentation

◆ createPersistentCertificateUrl()

ilPortfolioPageGUI::createPersistentCertificateUrl ( int  $a_id,
ilUserCertificateRepository  $userCertificateRepository,
string  $url 
)
private

Definition at line 1182 of file class.ilPortfolioPageGUI.php.

References Vendor\Package\$e, ilUserCertificateRepository\fetchActiveCertificateForPresentation(), ILIAS\Repository\lng(), and ILIAS\Repository\user().

Referenced by renderVerification().

1186  : string {
1187  try {
1188  $presentation = $userCertificateRepository->fetchActiveCertificateForPresentation($this->user->getId(), $a_id);
1189  } catch (Exception $e) {
1190  return "";
1191  }
1192  $caption = $this->lng->txt('certificate') . ': ';
1193  $caption .= $this->lng->txt($presentation->getUserCertificate()->getObjType()) . ' ';
1194  $caption .= '"' . $presentation->getObjectTitle() . '"';
1195 
1196  return '<div><a href="' . $url . '">' . $caption . '</a></div>';
1197  }
$url
Definition: ltiregstart.php:35
fetchActiveCertificateForPresentation(int $userId, int $objectId)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dlcmxv()

ilPortfolioPageGUI::dlcmxv ( )
protected

Definition at line 449 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$id, and ilObject2GUI\WORKSPACE_OBJECT_ID.

449  : void
450  {
451  $id = $this->port_request->getVerificationId();
452  if ($id) {
454  $verification->downloadFromPortfolioPage($this->getPortfolioPage());
455  }
456  }

◆ dlcrsv()

ilPortfolioPageGUI::dlcrsv ( )
protected

Definition at line 440 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$id, and ilObject2GUI\WORKSPACE_OBJECT_ID.

440  : void
441  {
442  $id = $this->port_request->getVerificationId();
443  if ($id) {
445  $verification->downloadFromPortfolioPage($this->getPortfolioPage());
446  }
447  }
GUI class for course verification.

◆ dlcrta()

ilPortfolioPageGUI::dlcrta ( )
protected

Definition at line 476 of file class.ilPortfolioPageGUI.php.

References ILIAS\Repository\user().

476  : void
477  {
478  $objectId = $this->port_request->getVerificationId();
479  if ($objectId) {
481  $object->downloadFromPortfolioPage($this->getPortfolioPage(), $objectId, $this->user->getId());
482  }
483  }
+ Here is the call graph for this function:

◆ dlexcv()

ilPortfolioPageGUI::dlexcv ( )
protected

Definition at line 431 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$id, and ilObject2GUI\WORKSPACE_OBJECT_ID.

431  : void
432  {
433  $id = $this->port_request->getVerificationId();
434  if ($id) {
436  $verification->downloadFromPortfolioPage($this->getPortfolioPage());
437  }
438  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ dlltiv()

ilPortfolioPageGUI::dlltiv ( )
protected

Definition at line 458 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$id, and ilObject2GUI\WORKSPACE_OBJECT_ID.

458  : void
459  {
460  $id = $this->port_request->getVerificationId();
461  if ($id) {
463  $verification->downloadFromPortfolioPage($this->getPortfolioPage());
464  }
465  }

◆ dlscov()

ilPortfolioPageGUI::dlscov ( )
protected

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

References ilPageObjectGUI\$id, and ilObject2GUI\WORKSPACE_OBJECT_ID.

467  : void
468  {
469  $id = $this->port_request->getVerificationId();
470  if ($id) {
472  $verification->downloadFromPortfolioPage($this->getPortfolioPage());
473  }
474  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ dltstv()

ilPortfolioPageGUI::dltstv ( )
protected

Definition at line 422 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$id, and ilObject2GUI\WORKSPACE_OBJECT_ID.

422  : void
423  {
424  $id = $this->port_request->getVerificationId();
425  if ($id) {
427  $verification->downloadFromPortfolioPage($this->getPortfolioPage());
428  }
429  }
GUI class for test verification.

◆ executeCommand()

ilPortfolioPageGUI::executeCommand ( )

Definition at line 107 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$ctrl, ilPageObjectGUI\$user, ilCalendarCategories\_getInstance(), ILIAS\Repository\ctrl(), ilPageObjectGUI\getPageObject(), IL_CAL_DATE, IL_CAL_UNIX, ILIAS\Repository\int(), ilCalendarCategories\MODE_PORTFOLIO_CONSULTATION, ilPageObjectGUI\setPresentationTitle(), and ilObject2GUI\WORKSPACE_NODE_ID.

107  : string
108  {
109  $ilCtrl = $this->ctrl;
110  $ilUser = $this->user;
111 
112  $next_class = $this->ctrl->getNextClass($this);
113  $cmd = $this->ctrl->getCmd();
114 
115  switch ($next_class) {
116  case "ilobjbloggui":
117  // #12879 - we need the wsp-id for the keywords
118  $wsp_tree = new ilWorkspaceTree($ilUser->getId());
119  $blog_obj_id = (int) $this->getPageObject()->getTitle();
120  $blog_node_id = $wsp_tree->lookupNodeId($blog_obj_id);
121 
122  $blog_gui = new ilObjBlogGUI($blog_node_id, ilObject2GUI::WORKSPACE_NODE_ID);
123  $blog_gui->disableNotes(!$this->enable_comments);
124  $blog_gui->prtf_embed = true; // disables prepareOutput()/getStandardTemplate() in blog
125  $ilCtrl->forwardCommand($blog_gui);
126  return $blog_gui->getRenderedContent();
127 
128  case "ilcalendarmonthgui":
129  $this->ctrl->saveParameter($this, "chuid");
130  // booking action
131  if ($cmd && $cmd !== "preview") {
132  $categories = ilCalendarCategories::_getInstance();
133  if ($categories->getMode() === 0) {
134  $chuid = $this->port_request->getConsultationHourUserId();
135  if ($chuid > 0) {
136  $categories->setCHUserId($chuid);
137  }
138  $categories->initialize(ilCalendarCategories::MODE_PORTFOLIO_CONSULTATION, 0, true);
139  }
140 
141  $req_seed = $this->port_request->getCalendarSeed();
142  if ($req_seed !== "") {
143  $seed = new ilDate($req_seed, IL_CAL_DATE);
144  } else {
145  $seed = new ilDate(time(), IL_CAL_UNIX);
146  }
147 
148  $month_gui = new ilCalendarMonthGUI($seed);
149  return (string) $ilCtrl->forwardCommand($month_gui);
150  }
151 
152  // calendar month navigation
153  //$ilCtrl->setParameter($this, "cmd", "preview");
154  return (string) self::EMBEDDED_NO_OUTPUT;
155  default:
156  $this->setPresentationTitle($this->getPageObject()->getTitle());
157  return (string) parent::executeCommand();
158  }
159  }
const IL_CAL_UNIX
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjBlogGUI.
setPresentationTitle(string $a_title="")
static _getInstance($a_usr_id=0)
get singleton instance
const IL_CAL_DATE
+ Here is the call graph for this function:

◆ finishEditing()

ilPortfolioPageGUI::finishEditing ( )

Definition at line 1212 of file class.ilPortfolioPageGUI.php.

References ILIAS\Repository\ctrl().

1212  : void
1213  {
1214  $this->ctrl->redirectByClass("ilObjPortfolioGUI", "view");
1215  }
+ Here is the call graph for this function:

◆ getAdditional()

ilPortfolioPageGUI::getAdditional ( )

Get Additonal Information.

Definition at line 204 of file class.ilPortfolioPageGUI.php.

References $additional.

Referenced by renderProfile().

204  : array
205  {
206  return $this->additional;
207  }
+ Here is the caller graph for this function:

◆ getCommentsHTMLExport()

ilPortfolioPageGUI::getCommentsHTMLExport ( )

Definition at line 1199 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\getId(), and ilPageObjectGUI\getPageObject().

1199  : string
1200  {
1201  $notes_gui = new ilCommentGUI(
1202  $this->portfolio_id,
1203  $this->getPageObject()->getId(),
1204  "pfpg"
1205  );
1206  $notes_gui->enablePublicNotes(true);
1207  $notes_gui->setRepositoryMode(false);
1208  $notes_gui->setExportMode();
1209  return $notes_gui->getListHTML();
1210  }
Comment GUI.
+ Here is the call graph for this function:

◆ getCoursesOfUser()

ilPortfolioPageGUI::getCoursesOfUser ( int  $a_user_id,
bool  $a_add_path = false 
)
protected

Definition at line 905 of file class.ilPortfolioPageGUI.php.

References $path, $ref_id, $res, $tree, ilObjUserTracking\_enabledLearningProgress(), ilObjUserTracking\_enabledUserRelatedData(), ilObject\_getAllReferences(), ilParticipants\_getMembershipByType(), ilObjUserTracking\_hasLearningProgressLearner(), ilObjCourseAccess\_isActivated(), ilObject\_lookupTitle(), ilObjCourse\_lookupViewMode(), ilLOTestAssignments\getInstance(), ilTree\getNodeData(), ilTrQuery\getObjectsStatusForUser(), ilTree\getPathFull(), ilCourseConstants\IL_CRS_VIEW_OBJECTIVE, ilTree\isDeleted(), ILIAS\Repository\lng(), ilCourseObjective\lookupObjectiveTitle(), ilLPObjSettings\LP_MODE_OBJECTIVES, parseLOUserResults(), ROOT_FOLDER_ID, ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.

Referenced by renderMyCourses().

908  : array {
909  $tree = $this->tree;
910 
911  // see ilPDSelectedItemsBlockGUI
912 
913  $items = ilParticipants::_getMembershipByType($a_user_id, ['crs']);
914 
915  $repo_title = $tree->getNodeData(ROOT_FOLDER_ID);
916  $repo_title = $repo_title["title"];
917  if ($repo_title == "ILIAS") {
918  $repo_title = $this->lng->txt("repository");
919  }
920 
921  $references = $lp_obj_refs = array();
922  foreach ($items as $obj_id) {
924  if (is_array($ref_id) && count($ref_id)) {
925  $ref_id = array_pop($ref_id);
926  if (!$tree->isDeleted($ref_id)) {
927  $visible = false;
928  $active = ilObjCourseAccess::_isActivated($obj_id, $visible, false);
929  if ($active && $visible) {
930  $references[$ref_id] = array(
931  'ref_id' => $ref_id,
932  'obj_id' => $obj_id,
933  'title' => ilObject::_lookupTitle($obj_id)
934  );
935 
936  if ($a_add_path) {
937  $path = array();
938  foreach ($tree->getPathFull($ref_id) as $item) {
939  $path[] = $item["title"];
940  }
941  // top level comes first
942  if (count($path) === 2) {
943  $path[0] = 0;
944  } else {
945  $path[0] = 1;
946  }
947  $references[$ref_id]["path_sort"] = implode("__", $path);
948  array_shift($path);
949  array_pop($path);
950  if (!count($path)) {
951  array_unshift($path, $repo_title);
952  }
953  $references[$ref_id]["path"] = implode(" &rsaquo; ", $path);
954  }
955 
956  $lp_obj_refs[$obj_id] = $ref_id;
957  }
958  }
959  }
960  }
961 
962  // get lp data for valid courses
963 
964  if (count($lp_obj_refs)) {
965  // listing the objectives should NOT depend on any LP status / setting
966  foreach ($lp_obj_refs as $obj_id => $ref_id) {
967  // only if set in DB (default mode is not relevant
969  $references[$ref_id]["objectives"] = $this->parseObjectives($obj_id, $a_user_id);
970  }
971  }
972 
973  // LP must be active, personal and not anonymized
977  // see ilLPProgressTableGUI
978  $lp_data = ilTrQuery::getObjectsStatusForUser($a_user_id, $lp_obj_refs);
979  foreach ($lp_data as $item) {
980  $ref_id = $item["ref_ids"];
981  $references[$ref_id]["lp_status"] = $item["status"];
982  }
983  }
984  }
985 
986  return $references;
987  }
getNodeData(int $a_node_id, ?int $a_tree_pk=null)
get all information of a node.
const ROOT_FOLDER_ID
Definition: constants.php:32
static _getAllReferences(int $id)
get all reference ids for object ID
isDeleted(int $a_node_id)
This is a wrapper for isSaved() with a more useful name.
getPathFull(int $a_endnode_id, int $a_startnode_id=0)
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnod...
$path
Definition: ltiservices.php:32
static _lookupViewMode(int $a_id)
$ref_id
Definition: ltiauth.php:67
static _lookupTitle(int $obj_id)
static _isActivated(int $a_obj_id, ?bool &$a_visible_flag=null, bool $a_mind_member_view=true)
static getObjectsStatusForUser(int $a_user_id, array $obj_refs)
static _getMembershipByType(int $a_usr_id, array $a_type, bool $a_only_member_role=false)
get membership by type Get course or group membership
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCourseSortAction()

ilPortfolioPageGUI::getCourseSortAction ( ilCtrl  $ctrl)
protected

Get course sort action.

Definition at line 900 of file class.ilPortfolioPageGUI.php.

References ilCtrl\getFormActionByClass().

Referenced by renderMyCourses().

900  : string
901  {
902  return $ctrl->getFormActionByClass("ilobjportfoliogui", "preview");
903  }
getFormActionByClass( $a_class, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getExportMaterial()

ilPortfolioPageGUI::getExportMaterial ( )

Definition at line 1071 of file class.ilPortfolioPageGUI.php.

References $export_material.

1071  : array
1072  {
1073  return $this->export_material;
1074  }

◆ getJsOnloadCode()

ilPortfolioPageGUI::getJsOnloadCode ( )

Definition at line 209 of file class.ilPortfolioPageGUI.php.

References $js_onload_code.

209  : array
210  {
211  return $this->js_onload_code;
212  }

◆ getPageContentUserId()

ilPortfolioPageGUI::getPageContentUserId ( int  $a_user_id)
protected

Definition at line 94 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\getPageObject().

Referenced by renderConsultationHours(), renderMyCourses(), renderProfile(), and renderSkills().

94  : int
95  {
96  // user id from content-xml
97  return $a_user_id;
98  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPagePermaLink()

ilPortfolioPageGUI::getPagePermaLink ( )

Definition at line 1176 of file class.ilPortfolioPageGUI.php.

References ilLink\_getStaticLink(), ilPortfolioPage\findPortfolioForPage(), and ilPageObjectGUI\getId().

Referenced by renderVerification().

1176  : string
1177  {
1179  return ilLink::_getStaticLink($pid, "prtf", true, "_" . $this->getId());
1180  }
static findPortfolioForPage(int $a_page_id)
Get portfolio id of page id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getParentType()

ilPortfolioPageGUI::getParentType ( )

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

Referenced by __construct().

89  : string
90  {
91  return "prtf";
92  }
+ Here is the caller graph for this function:

◆ getTabs()

ilPortfolioPageGUI::getTabs ( string  $a_activate = "")

Definition at line 178 of file class.ilPortfolioPageGUI.php.

178  : void
179  {
180  if (!$this->embedded) {
181  parent::getTabs($a_activate);
182  }
183  }

◆ getViewPageLink()

ilPortfolioPageGUI::getViewPageLink ( )

Definition at line 1161 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$ctrl, $DIC, ilCtrl\getLinkTargetByClass(), and ilCtrl\setParameterByClass().

1161  : string
1162  {
1163  global $DIC;
1164 
1165  $ctrl = $DIC->ctrl();
1166 
1167  $ctrl->setParameterByClass("ilobjportfoliogui", "user_page", $this->requested_ppage);
1168  return $ctrl->getLinkTargetByClass("ilobjportfoliogui", "preview");
1169  }
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
setParameterByClass(string $a_class, string $a_parameter, $a_value)
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

◆ getViewPageText()

ilPortfolioPageGUI::getViewPageText ( )

Definition at line 1171 of file class.ilPortfolioPageGUI.php.

References ILIAS\Repository\lng().

1171  : string
1172  {
1173  return $this->lng->txt("preview");
1174  }
+ Here is the call graph for this function:

◆ isMyCoursesActive()

ilPortfolioPageGUI::isMyCoursesActive ( )
protected

Definition at line 673 of file class.ilPortfolioPageGUI.php.

Referenced by renderMyCourses(), and renderMyCoursesTeaser().

673  : bool
674  {
675  $prfa_set = new ilSetting("prfa");
676  return (bool) $prfa_set->get("mycrs", true);
677  }
+ Here is the caller graph for this function:

◆ makePlaceHoldersClickable()

ilPortfolioPageGUI::makePlaceHoldersClickable ( string  $a_html)

Definition at line 1076 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$ctrl, ilPageObjectGUI\$lng, $param, ilPageObjectGUI\$user, ilObject\_lookupOwner(), ilPageObjectGUI\getId(), ilPageObjectGUI\getOutputMode(), and ilLanguage\txt().

Referenced by postOutputProcessing().

1076  : string
1077  {
1078  $ilCtrl = $this->ctrl;
1079  $lng = $this->lng;
1080  $ilUser = $this->user;
1081 
1082  $end = 0;
1083  $start = strpos($a_html, "{{{{{PlaceHolder#");
1084  if (is_int($start)) {
1085  $end = strpos($a_html, "}}}}}", $start);
1086  }
1087  while ($end > 0) {
1088  $param = substr($a_html, $start + 17, $end - $start - 17);
1089  $param = explode("#", $param);
1090 
1091  $html = $param[2];
1092  switch ($param[2]) {
1093  case "Text":
1094  $html = $lng->txt("cont_text_placeh");
1095  break;
1096 
1097  case "Media":
1098  $html = $lng->txt("cont_media_placeh");
1099  break;
1100 
1101  case "Question":
1102  $html = $lng->txt("cont_question_placeh");
1103  break;
1104 
1105  case "Verification":
1106  $html = $lng->txt("cont_verification_placeh");
1107  break;
1108  }
1109 
1110  // only if not owner
1111  if ($ilUser->getId() === ilObjPortfolio::_lookupOwner($this->portfolio_id)
1112  && $this->getOutputMode() === "presentation") {
1113  switch ($param[2]) {
1114  case "Text":
1115  $ilCtrl->setParameterByClass("ilportfoliopagegui", "prt_id", $this->port_request->getPortfolioId());
1116  $ilCtrl->setParameterByClass("ilportfoliopagegui", "ppage", $this->getId());
1117  $ilCtrl->setParameterByClass("ilportfoliopagegui", "pl_pc_id", $param[0]);
1118  $ilCtrl->setParameterByClass("ilportfoliopagegui", "pl_hier_id", $param[1]);
1119  $href = $ilCtrl->getLinkTargetByClass("ilportfoliopagegui", "insertJSAtPlaceholder");
1120  $html = "<a href='" . $href . "'>" . $html . "</a>";
1121  break;
1122 
1123  case "Media":
1124  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "prt_id", $this->port_request->getPortfolioId());
1125  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "ppage", $this->getId());
1126  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "pl_pc_id", $param[0]);
1127  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "pl_hier_id", $param[1]);
1128  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "subCmd", "insertNew");
1129  $href = $ilCtrl->getLinkTargetByClass(array("ilPortfolioPageGUI", "ilPageEditorGUI", "ilPCPlaceHolderGUI", "ilpcmediaobjectgui"), "insert");
1130  $html = "<a href='" . $href . "'>" . $html . "</a>";
1131  break;
1132 
1133  /* see #34170, may need a different change, keep code to monitor
1134  case "Verification":
1135  $ilCtrl->setParameterByClass("ilPCVerificationGUI", "prt_id", $this->port_request->getPortfolioId());
1136  $ilCtrl->setParameterByClass("ilPCVerificationGUI", "ppage", $this->getId());
1137  $ilCtrl->setParameterByClass("ilPCVerificationGUI", "pl_pc_id", $param[0]);
1138  $ilCtrl->setParameterByClass("ilPCVerificationGUI", "pl_hier_id", $param[1]);
1139  $ilCtrl->setParameterByClass("ilPCVerificationGUI", "subCmd", "insertNew");
1140  $href = $ilCtrl->getLinkTargetByClass(array("ilPortfolioPageGUI", "ilPageEditorGUI", "ilPCPlaceHolderGUI", "ilPCVerificationGUI"), "insert");
1141  $html = "<a href='" . $href . "'>" . $html . "</a>";
1142  break;
1143  */
1144  }
1145  }
1146 
1147  $h2 = substr($a_html, 0, $start) .
1148  $html .
1149  substr($a_html, $end + 5);
1150  $a_html = $h2;
1151 
1152  $start = strpos($a_html, "{{{{{PlaceHolder#", $start + 5);
1153  $end = 0;
1154  if (is_int($start)) {
1155  $end = strpos($a_html, "}}}}}", $start);
1156  }
1157  }
1158  return $a_html;
1159  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _lookupOwner(int $obj_id)
Lookup owner user ID for object ID.
$param
Definition: xapitoken.php:46
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseLOUserResults()

ilPortfolioPageGUI::parseLOUserResults ( int  $a_course_obj_id,
int  $a_user_id 
)
protected

Definition at line 1039 of file class.ilPortfolioPageGUI.php.

References $res, ilLOUserResults\TYPE_INITIAL, and ilLOUserResults\TYPE_QUALIFIED.

Referenced by getCoursesOfUser().

1042  : array {
1043  $res = array();
1044  $initial_status = "";
1045 
1046  $lur = new ilLOUserResults($a_course_obj_id, $a_user_id);
1047  foreach ($lur->getCourseResultsForUserPresentation() as $objective_id => $types) {
1048  // show either initial or qualified for objective
1049  if (isset($types[ilLOUserResults::TYPE_INITIAL])) {
1050  $initial_status = $types[ilLOUserResults::TYPE_INITIAL]["status"];
1051  }
1052 
1053  // qualified test has priority
1054  if (isset($types[ilLOUserResults::TYPE_QUALIFIED])) {
1055  $result = $types[ilLOUserResults::TYPE_QUALIFIED];
1056  $result["type"] = ilLOUserResults::TYPE_QUALIFIED;
1057  $result["initial"] = $types[ilLOUserResults::TYPE_INITIAL] ?? null;
1058  } else {
1059  $result = $types[ilLOUserResults::TYPE_INITIAL];
1060  $result["type"] = ilLOUserResults::TYPE_INITIAL;
1061  }
1062 
1063  $result["initial_status"] = $initial_status;
1064 
1065  $res[$objective_id] = $result;
1066  }
1067 
1068  return $res;
1069  }
$res
Definition: ltiservices.php:69
+ Here is the caller graph for this function:

◆ postOutputProcessing()

ilPortfolioPageGUI::postOutputProcessing ( string  $a_output)

Definition at line 214 of file class.ilPortfolioPageGUI.php.

References $parts, makePlaceHoldersClickable(), and renderPageElement().

214  : string
215  {
216  $parts = array(
217  "Profile" => array("0-9", "a-z", "0-9a-z_;\W"), // user, mode, fields
218  "Verification" => array("0-9", "a-z", "0-9"), // user, type, id
219  "Blog" => array("0-9", "0-9", "0-9;\W"), // user, blog id, posting ids
220  "BlogTeaser" => array("0-9", "0-9", "0-9;\W"), // user, blog id, posting ids
221  "Skills" => array("0-9", "0-9"), // user, skill id
222  "SkillsTeaser" => array("0-9", "0-9"), // user, skill id
223  "ConsultationHours" => array("0-9", "a-z", "0-9;\W"), // user, mode, group ids
224  "ConsultationHoursTeaser" => array("0-9", "a-z", "0-9;\W"), // user, mode, group ids
225  "MyCourses" => array("0-9", "a-z*"), // user, sort
226  "MyCoursesTeaser" => array("0-9", "a-z*") // user, sort
227  );
228 
229  foreach ($parts as $type => $def) {
230  // #15732 - allow optional parts
231  $def_parts = array();
232  foreach ($def as $part) {
233  $is_opt = (substr($part, -1) === "*");
234  if (!$is_opt) {
235  $def_parts[] = "#";
236  $end_marker = "+";
237  } else {
238  $def_parts[] = "#*";
239  $end_marker = "*";
240  $part = substr($part, 0, -1);
241  }
242  $def_parts[] = "([" . $part . "]" . $end_marker . ")";
243  }
244  $def = implode("", $def_parts);
245 
246  if (preg_match_all(
247  "/" . $this->pl_start . $type . $def . $this->pl_end . "/",
248  $a_output,
249  $blocks
250  )) {
251  foreach ($blocks[0] as $idx => $block) {
252  switch ($type) {
253  case "Profile":
254  case "Blog":
255  case "BlogTeaser":
256  case "Skills":
257  case "SkillsTeaser":
258  case "ConsultationHours":
259  case "ConsultationHoursTeaser":
260  case "MyCourses":
261  case "MyCoursesTeaser":
262  $subs = null;
263  if (trim(($blocks[3][$idx] ?? ""))) {
264  foreach (explode(";", $blocks[3][$idx]) as $sub) {
265  if (trim($sub)) {
266  $subs[] = trim($sub);
267  }
268  }
269  }
270  $snippet = $this->{"render" . $type}(
271  $blocks[1][$idx],
272  $blocks[2][$idx],
273  $subs
274  );
275  break;
276 
277  default:
278  $snippet = $this->{"render" . $type}(
279  $blocks[1][$idx],
280  $blocks[2][$idx],
281  $blocks[3][$idx]
282  );
283  break;
284  }
285 
286  $snippet = $this->renderPageElement($type, $snippet);
287  $a_output = str_replace($block, $snippet, $a_output);
288  }
289  }
290  }
291 
292  $a_output = $this->makePlaceHoldersClickable($a_output);
293 
294  return $a_output;
295  }
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:64
makePlaceHoldersClickable(string $a_html)
renderPageElement(string $a_type, string $a_html)
+ Here is the call graph for this function:

◆ renderBlog()

ilPortfolioPageGUI::renderBlog ( int  $a_user_id,
int  $a_blog_id,
array  $a_posting_ids = null 
)
protected

Definition at line 485 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$ctrl, $post, ilObject\_lookupTitle(), ilObject\_lookupType(), ilPageObjectGUI\getOutputMode(), ilPageObjectGUI\PREVIEW, and ilObject2GUI\WORKSPACE_OBJECT_ID.

Referenced by showPage().

489  : string {
490  $ilCtrl = $this->ctrl;
491 
492  // not used
493  // $user_id = $this->getPageContentUserId($a_user_id);
494 
495  // full blog (separate tab/page)
496  if (!$a_posting_ids) {
497  if (ilObject::_lookupType($a_blog_id) !== "blog") {
498  return "";
499  }
500  $blog = new ilObjBlogGUI($a_blog_id, ilObject2GUI::WORKSPACE_OBJECT_ID);
501  $blog->disableNotes(!$this->enable_comments);
502  $blog->setContentStyleSheet();
503 
504  if ($this->getOutputMode() !== "offline") {
505  return $ilCtrl->getHTML($blog);
506  }
507  }
508  // embedded postings
509  else {
510  $html = array();
511 
512  $html[] = ilObjBlog::_lookupTitle($a_blog_id);
513 
514  foreach ($a_posting_ids as $post) {
515  $page = new ilBlogPostingGUI(0, null, $post);
516  if ($this->getOutputMode() !== "offline") {
517  $page->setOutputMode(ilPageObjectGUI::PREVIEW);
518  } else {
519  $page->setOutputMode("offline");
520  }
521  $html[] = $page->showPage();
522  }
523 
524  return implode("\n", $html);
525  }
526  return "";
527  }
Class ilBlogPosting GUI class.
static _lookupTitle(int $obj_id)
Class ilObjBlogGUI.
static _lookupType(int $id, bool $reference=false)
$post
Definition: ltitoken.php:49
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderBlogTeaser()

ilPortfolioPageGUI::renderBlogTeaser ( int  $a_user_id,
int  $a_blog_id,
array  $a_posting_ids = null 
)
protected

Definition at line 529 of file class.ilPortfolioPageGUI.php.

References $post, ilObject\_lookupTitle(), ilDatePresentation\formatDate(), ILIAS\Repository\lng(), and renderTeaser().

533  : string {
534  // not used
535  // $user_id = $this->getPageContentUserId($a_user_id);
536 
537  $postings = "";
538  if ($a_posting_ids) {
539  $postings = array("<ul>");
540  foreach ($a_posting_ids as $post) {
541  $post = new ilBlogPosting($post);
542  $postings[] = "<li>" . $post->getTitle() . " - " .
543  ilDatePresentation::formatDate($post->getCreated()) . "</li>";
544  }
545  $postings[] = "</ul>";
546  $postings = implode("\n", $postings);
547  }
548 
549  return $this->renderTeaser("blog", $this->lng->txt("obj_blog") . ' "' .
550  ilObject::_lookupTitle($a_blog_id) . '"', $postings);
551  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
static _lookupTitle(int $obj_id)
$post
Definition: ltitoken.php:49
renderTeaser(string $a_type, string $a_title, string $a_options="")
+ Here is the call graph for this function:

◆ renderConsultationHours()

ilPortfolioPageGUI::renderConsultationHours ( int  $a_user_id,
string  $a_mode,
?array  $a_group_ids = null 
)
protected

Definition at line 609 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$user, ilCalendarCategories\_getInstance(), ILIAS\Repository\ctrl(), ilPageObjectGUI\getOutputMode(), getPageContentUserId(), ilUtil\getStyleSheetLocation(), IL_CAL_DATE, IL_CAL_UNIX, ILIAS\Repository\lng(), ilCalendarCategories\MODE_PORTFOLIO_CONSULTATION, and renderConsultationHoursTeaser().

613  : string {
614  $ilUser = $this->user;
615  if ($this->getOutputMode() === "preview") {
616  return $this->renderConsultationHoursTeaser($a_user_id, $a_mode, $a_group_ids);
617  }
618 
619  if ($this->getOutputMode() === "offline") {
620  return "";
621  }
622 
623  if ($this->getOutputMode() === "print") {
624  return "";
625  }
626 
627  $user_id = $this->getPageContentUserId($a_user_id);
628 
629  // only if not owner
630  $bkid = 0;
631  if ($ilUser->getId() !== $user_id) {
632  $bkid = $user_id;
633  }
634  $this->ctrl->setParameter($this, "chuid", $user_id);
635 
636  if ($a_mode !== "manual") {
637  $a_group_ids = null;
638  }
639  ilCalendarCategories::_getInstance()->setCHUserId($user_id);
640  if (!self::$calender_initialized) {
643  0,
644  true
645  );
646  self::$calender_initialized = true;
647  }
648 
649  $seed = $this->port_request->getCalendarSeed();
650  if ($seed === "") {
651  $seed = new ilDate(time(), IL_CAL_UNIX);
652  } else {
653  $seed = new ilDate($seed, IL_CAL_DATE);
654  }
655 
656  $month_gui = new ilCalendarMonthGUI($seed);
657  if ($bkid > 0) {
658  $month_gui->setBkId($bkid);
659  }
660  $month_gui->setConsulationHoursUserId($user_id);
661 
662  // custom schedule filter: handle booking group ids
663  $filter = new ilCalendarScheduleFilterBookings($user_id, $a_group_ids);
664  $month_gui->addScheduleFilter($filter);
665 
666  $this->tpl->addCss(ilUtil::getStyleSheetLocation('filesystem', 'delos.css', 'Services/Calendar'));
667 
668  $this->lng->loadLanguageModule("dateplaner");
669  return '<h3>' . $this->lng->txt("app_consultation_hours") . '</h3>' .
670  $this->ctrl->getHTML($month_gui);
671  }
Calendar schedule filter for consultation hour bookings.
const IL_CAL_UNIX
static getStyleSheetLocation(string $mode="output", string $a_css_name="", string $a_css_location="")
get full style sheet file name (path inclusive) of current user
renderConsultationHoursTeaser(int $a_user_id, string $a_mode, ?array $a_group_ids=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getInstance($a_usr_id=0)
get singleton instance
const IL_CAL_DATE
getPageContentUserId(int $a_user_id)
+ Here is the call graph for this function:

◆ renderConsultationHoursTeaser()

ilPortfolioPageGUI::renderConsultationHoursTeaser ( int  $a_user_id,
string  $a_mode,
?array  $a_group_ids = null 
)
protected

Definition at line 581 of file class.ilPortfolioPageGUI.php.

References ILIAS\Repository\lng(), ilConsultationHourGroups\lookupTitle(), and renderTeaser().

Referenced by renderConsultationHours().

585  : string {
586  // not used
587  // $user_id = $this->getPageContentUserId($a_user_id);
588  if ($a_mode === "auto") {
589  $mode = $this->lng->txt("cont_cach_mode_automatic");
590  $groups = null;
591  } else {
592  $mode = $this->lng->txt("cont_cach_mode_manual");
593 
594  $groups = array();
595  foreach ($a_group_ids as $grp_id) {
596  $groups[] = ilConsultationHourGroups::lookupTitle($grp_id);
597  }
598  $groups = " (" . implode(", ", $groups) . ")";
599  }
600 
601  $this->lng->loadLanguageModule("dateplaner");
602  return $this->renderTeaser(
603  "consultation_hours",
604  $this->lng->txt("app_consultation_hours"),
605  $mode . $groups
606  );
607  }
static lookupTitle(int $a_group_id)
Lookup group title.
renderTeaser(string $a_type, string $a_title, string $a_options="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderMyCourses()

ilPortfolioPageGUI::renderMyCourses ( int  $a_user_id,
string  $a_default_sorting 
)
protected

Definition at line 696 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$access, ilPageObjectGUI\$ctrl, $data, $GLOBALS, $params, ilPageObjectGUI\$tpl, $url, ilPageObjectGUI\$user, ilObject\_getIcon(), ilTooltipGUI\addTooltip(), ANONYMOUS_USER_ID, ilContainerObjectiveGUI\buildObjectiveProgressBar(), ilLegacyFormElementsUtil\formSelect(), ilGlobalTemplateInterface\get(), getCoursesOfUser(), getCourseSortAction(), ilLPStatusIcons\getInstance(), ilLOSettings\getInstanceByObjId(), ilPageObjectGUI\getOutputMode(), getPageContentUserId(), ilLPStatusIcons\ICON_VARIANT_LONG, isMyCoursesActive(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\parseCurrentBlock(), renderMyCoursesTeaser(), ilGlobalTemplateInterface\setCurrentBlock(), ilGlobalTemplateInterface\setVariable(), ilArrayUtil\sortArray(), and ilGlobalTemplateInterface\touchBlock().

699  : string {
700  $ilAccess = $this->access;
701  $ilUser = $this->user;
702  $ilCtrl = $this->ctrl;
703 
704  if ($this->getOutputMode() === "preview") {
705  return $this->renderMyCoursesTeaser($a_user_id, $a_default_sorting);
706  }
707 
708  if (!$this->isMyCoursesActive()) {
709  return "";
710  }
711 
712  $img_path = null;
714 
715  $user_id = $this->getPageContentUserId($a_user_id);
716 
717  // sorting pref
718  $req_sorting = $this->port_request->getCourseSorting();
719  if (in_array($req_sorting, array("alpha", "loc"))) {
720  $ilUser->writePref("prtf_mcrs_sort", $req_sorting);
721  }
722  $sorting = $ilUser->getPref("prtf_mcrs_sort");
723  if (!$sorting) {
724  $sorting = $a_default_sorting;
725  }
726 
727  $data = $this->getCoursesOfUser($user_id, ($sorting === "loc"));
728  if (count($data)) {
729  if ($sorting !== "loc") {
730  $data = ilArrayUtil::sortArray($data, "title", "ASC");
731  } else {
732  $data = ilArrayUtil::sortArray($data, "path_sort", "ASC");
733  }
734 
735  $tpl = new ilTemplate("tpl.pc_my_courses.html", true, true, "Modules/Portfolio");
736  $tpl->setVariable("TITLE", $this->lng->txt("prtf_page_element_my_courses_title"));
737  $tpl->setVariable("INFO", $this->lng->txt("prtf_page_element_my_courses_info")); // #14464
738 
739  $this->lng->loadLanguageModule("trac");
740  $this->lng->loadLanguageModule("crs");
741 
742  // sorting
743  if ($this->getOutputMode() !== "print") {
744  $options = array(
745  "alpha" => $this->lng->txt("cont_mycourses_sortorder_alphabetical"),
746  "loc" => $this->lng->txt("cont_mycourses_sortorder_location")
747  );
748  $tpl->setVariable(
749  "SORT_SELECT",
751  $sorting,
752  "srt",
753  $options,
754  false,
755  true,
756  0,
757  "",
758  ["onchange" => "form.submit()"]
759  )
760  );
761  $tpl->setVariable("SORT_FORM", $this->getCourseSortAction($ilCtrl));
762  }
763 
764  $old_path = null;
765 
766  foreach ($data as $course) {
767  if (($sorting === "loc") && $course["path"] != $old_path) {
768  $tpl->setCurrentBlock("path_bl");
769  $tpl->setVariable("PATH", $course["path"]);
771 
772  $old_path = $course["path"];
773  }
774 
775  if (isset($course["lp_status"])) {
776  $lp_icon_rendered = $lp_icons->renderIconForStatus($course["lp_status"]);
777 
778  $tpl->setCurrentBlock("lp_bl");
779  $tpl->setVariable("LP_ICON", $lp_icon_rendered);
781  }
782 
783  $do_links = false;
784  if ($ilUser->getId() !== ANONYMOUS_USER_ID) {
785  $do_links = $ilAccess->checkAccessOfUser($ilUser->getId(), "read", "", $course["ref_id"], "crs") ||
786  ($ilAccess->checkAccessOfUser($ilUser->getId(), "visible", "", $course["ref_id"], "crs") &&
787  $ilAccess->checkAccessOfUser($ilUser->getId(), "join", "", $course["ref_id"], "crs"));
788  }
789 
790  if (isset($course["objectives"])) {
791  $loc_settings = ilLOSettings::getInstanceByObjId($course["obj_id"]);
792  $has_initial_test = (bool) $loc_settings->getInitialTest();
793 
794  foreach ($course["objectives"] as $objtv) {
795  if ($do_links) {
796  $params = array("oobj" => $objtv["id"]);
797  $url = ilLink::_getLink($course["ref_id"], "crs", $params);
798 
799  // #15510
800  $url .= "#objtv_acc_" . $objtv["id"];
801 
802  if ($this->getOutputMode() !== "print") {
803  $tpl->touchBlock("objective_dnone");
804  }
805 
806  $tpl->setCurrentBlock("objective_link_bl");
807 
808  if (trim($objtv["desc"] ?? "") !== "") {
809  $desc = nl2br($objtv["desc"]);
810  $tt_id = "objtvtt_" . $objtv["id"] . "_" . (self::$initialized);
811 
812  ilTooltipGUI::addTooltip($tt_id, $desc, "", "bottom center", "top center", false);
813 
814  $tpl->setVariable("OBJECTIVE_LINK_ID", $tt_id);
815  }
816 
817  $tpl->setVariable("OBJECTIVE_LINK_URL", $url);
818  $tpl->setVariable("OBJECTIVE_LINK_TITLE", $objtv["title"]);
819  } else {
820  $tpl->setCurrentBlock("objective_nolink_bl");
821  $tpl->setVariable("OBJECTIVE_NOLINK_TITLE", $objtv["title"]);
822  }
824 
825  $objtv_icon = ilObject::_getIcon($objtv["id"], 'big', "lobj");
826  if ($img_path) {
827  $objtv_icon = $img_path . basename($objtv_icon);
828  }
829 
830  $tpl->setCurrentBlock("objective_bl");
831  $tpl->setVariable("OBJTV_ICON_URL", $objtv_icon);
832  $tpl->setVariable("OBJTV_ICON_ALT", $this->lng->txt("crs_objectives"));
833 
834  if (isset($objtv["type"])) {
835  $tpl->setVariable(
836  "LP_OBJTV_PROGRESS",
838  $has_initial_test,
839  $objtv["id"],
840  $objtv,
841  true,
842  false,
843  self::$initialized
844  )
845  );
846  }
847 
849  }
850 
851  $tpl->setCurrentBlock("objectives_bl");
852  $tpl->setVariable("OBJTV_LIST_CRS_ID", $course["obj_id"]);
854  }
855 
856  // always check against current user
857  if ($do_links) {
858  $tpl->setCurrentBlock("course_link_bl");
859  $tpl->setVariable("COURSE_LINK_TITLE", $course["title"]);
860  $tpl->setVariable("COURSE_LINK_URL", ilLink::_getLink($course["ref_id"]));
861  } else {
862  $tpl->setCurrentBlock("course_nolink_bl");
863  $tpl->setVariable("COURSE_NOLINK_TITLE", $course["title"]);
864  }
866 
867  $crs_icon = ilObject::_getIcon($course["obj_id"], 'small', 'crs');
868  if ($img_path) {
869  $crs_icon = $img_path . basename($crs_icon);
870  }
871 
872  $tpl->setCurrentBlock("course_bl");
873 
874  if (isset($course["objectives"])) {
875  $tpl->setVariable("TOGGLE_CLASS", "ilPCMyCoursesToggle");
876  } else {
877  $tpl->setVariable("NO_TOGGLE", ' style="visibility:hidden;"');
878  }
879 
880  $tpl->setVariable("CRS_ICON_URL", $crs_icon);
881  $tpl->setVariable("CRS_ICON_ALT", $this->lng->txt("obj_crs"));
883  }
884 
885  // #15508
886  if (!self::$initialized) {
887  $GLOBALS["tpl"]->addJavaScript("Modules/Portfolio/js/ilPortfolio.js");
888  $GLOBALS["tpl"]->addOnLoadCode("ilPortfolio.init()");
889  }
890  self::$initialized++;
891 
892  return $tpl->get();
893  }
894  return "";
895  }
getCourseSortAction(ilCtrl $ctrl)
Get course sort action.
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
const ANONYMOUS_USER_ID
Definition: constants.php:27
touchBlock(string $block)
overwrites ITX::touchBlock.
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:33
static getInstance(int $variant=ilLPStatusIcons::ICON_VARIANT_DEFAULT, ?\ILIAS\UI\Renderer $renderer=null, ?\ILIAS\UI\Factory $factory=null)
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
static formSelect( $selected, string $varname, array $options, bool $multiple=false, bool $direct_text=false, int $size=0, string $style_class="", array $attribs=[], bool $disabled=false)
Builds a select form field with options and shows the selected option first.
renderMyCoursesTeaser(int $a_user_id, $a_default_sorting)
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static buildObjectiveProgressBar(bool $a_has_initial_test, int $a_objective_id, array $a_lo_result, bool $a_list_mode=false, bool $a_sub=false, string $a_tt_suffix=null)
Render progressbar(s) for given objective and result data.
getCoursesOfUser(int $a_user_id, bool $a_add_path=false)
$GLOBALS["DIC"]
Definition: wac.php:31
ilGlobalTemplateInterface $tpl
ilAccessHandler $access
$url
Definition: ltiregstart.php:35
static addTooltip(string $a_el_id, string $a_text, string $a_container="", string $a_my="bottom center", string $a_at="top center", bool $a_use_htmlspecialchars=true)
static getInstanceByObjId(int $a_obj_id)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
getPageContentUserId(int $a_user_id)
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
+ Here is the call graph for this function:

◆ renderMyCoursesTeaser()

ilPortfolioPageGUI::renderMyCoursesTeaser ( int  $a_user_id,
  $a_default_sorting 
)
protected

Definition at line 679 of file class.ilPortfolioPageGUI.php.

References isMyCoursesActive(), ILIAS\Repository\lng(), and renderTeaser().

Referenced by renderMyCourses().

682  : string {
683  // not used
684  // $user_id = $this->getPageContentUserId($a_user_id);
685 
686  $title = $this->isMyCoursesActive()
687  ? "my_courses"
688  : "my_courses_inactive";
689 
690  return $this->renderTeaser(
691  $title,
692  $this->lng->txt("prtf_page_element_my_courses_title")
693  );
694  }
renderTeaser(string $a_type, string $a_title, string $a_options="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderPageElement()

ilPortfolioPageGUI::renderPageElement ( string  $a_type,
string  $a_html 
)
protected

Definition at line 297 of file class.ilPortfolioPageGUI.php.

Referenced by postOutputProcessing().

300  : string {
301  return trim($a_html);
302  }
+ Here is the caller graph for this function:

◆ renderProfile()

ilPortfolioPageGUI::renderProfile ( int  $a_user_id,
string  $a_type,
array  $a_fields = null 
)
protected

Definition at line 320 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$ctrl, getAdditional(), ilPageObjectGUI\getOutputMode(), and getPageContentUserId().

324  : string {
325  $ilCtrl = $this->ctrl;
326 
327  $user_id = $this->getPageContentUserId($a_user_id);
328 
329  $pub_profile = new ilPublicUserProfileGUI($user_id);
330  $pub_profile->setEmbedded(true, ($this->getOutputMode() === "offline"));
331 
332  // full circle: additional was set in the original public user profile call
333  $pub_profile->setAdditional($this->getAdditional());
334 
335  if ($a_type === "manual" && is_array($a_fields) && count($a_fields) > 0) {
336  $prefs = array();
337  foreach ($a_fields as $field) {
338  $field = trim($field);
339  if ($field) {
340  $prefs["public_" . $field] = "y";
341  }
342  }
343 
344  $pub_profile->setCustomPrefs($prefs);
345  }
346 
347  if ($this->getOutputMode() !== "offline") {
348  return $ilCtrl->getHTML($pub_profile);
349  }
350 
351  return $pub_profile->getEmbeddable();
352  }
getAdditional()
Get Additonal Information.
GUI class for public user profile presentation.
getPageContentUserId(int $a_user_id)
+ Here is the call graph for this function:

◆ renderSkills()

ilPortfolioPageGUI::renderSkills ( int  $a_user_id,
int  $a_skills_id 
)
protected

Definition at line 553 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$gui, ilPageObjectGUI\getOutputMode(), getPageContentUserId(), and renderSkillsTeaser().

556  : string {
557  if ($this->getOutputMode() === "preview") {
558  return $this->renderSkillsTeaser($a_user_id, $a_skills_id);
559  }
560 
561  $user_id = $this->getPageContentUserId($a_user_id);
562 
563  $gui = new ilPersonalSkillsGUI();
564  if ($this->getOutputMode() === "offline") {
565  $gui->setOfflineMode("./files/");
566  }
567  return $gui->getSkillHTML($a_skills_id, $user_id);
568  }
ILIAS COPage InternalGUIService $gui
Personal skills GUI class.
getPageContentUserId(int $a_user_id)
renderSkillsTeaser(int $a_user_id, int $a_skills_id)
+ Here is the call graph for this function:

◆ renderSkillsTeaser()

ilPortfolioPageGUI::renderSkillsTeaser ( int  $a_user_id,
int  $a_skills_id 
)
protected

Definition at line 570 of file class.ilPortfolioPageGUI.php.

References ilSkillTreeNode\_lookupTitle(), ILIAS\Repository\lng(), and renderTeaser().

Referenced by renderSkills().

573  : string {
574  // not used
575  // $user_id = $this->getPageContentUserId($a_user_id);
576 
577  return $this->renderTeaser("skills", $this->lng->txt("skills") . ' "' .
578  ilSkillTreeNode::_lookupTitle($a_skills_id) . '"');
579  }
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
renderTeaser(string $a_type, string $a_title, string $a_options="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderTeaser()

ilPortfolioPageGUI::renderTeaser ( string  $a_type,
string  $a_title,
string  $a_options = "" 
)
protected

Definition at line 304 of file class.ilPortfolioPageGUI.php.

References ILIAS\Repository\lng().

Referenced by renderBlogTeaser(), ilPortfolioTemplatePageGUI\renderBlogTemplate(), renderConsultationHoursTeaser(), renderMyCoursesTeaser(), and renderSkillsTeaser().

308  : string {
309  $options = "";
310  if ($a_options) {
311  $options = '<div class="il_Footer">' . $this->lng->txt("prtf_page_element_teaser_settings") .
312  ": " . $a_options . '</div>';
313  }
314 
315  return '<div style="margin:5px" class="ilBox"><h3>' . $a_title . '</h3>' .
316  '<div class="il_Description_no_margin">' . $this->lng->txt("prtf_page_element_teaser_" . $a_type) . '</div>' .
317  $options . '</div>';
318  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderVerification()

ilPortfolioPageGUI::renderVerification ( int  $a_user_id,
string  $a_type,
int  $a_id 
)
protected
Exceptions
ilException

Definition at line 357 of file class.ilPortfolioPageGUI.php.

References $obj_definition, $url, ilObject\_exists(), createPersistentCertificateUrl(), ILIAS\Repository\ctrl(), ilPageObjectGUI\getOutputMode(), getPagePermaLink(), ILIAS\Repository\lng(), and ilObject2GUI\WORKSPACE_OBJECT_ID.

361  : string {
362  $objDefinition = $this->obj_definition;
363 
364  $outputMode = $this->getOutputMode();
365 
366  // not used
367  // $user_id = $this->getPageContentUserId($a_user_id);
368  if ($a_type === 'crta' && $outputMode === 'offline') {
369  $fileService = new ilPortfolioCertificateFileService();
370 
371  $certificatePdfFile = $fileService->createCertificateFilePath($a_user_id, $a_id);
372  $this->export_material["files"][] = $certificatePdfFile;
373 
374  $url = 'files/' . basename($certificatePdfFile);
375 
376  $userCertificateRepository = new ilUserCertificateRepository();
377 
378  return $this->createPersistentCertificateUrl($a_id, $userCertificateRepository, $url);
379  }
380 
381  if ($a_type === 'crta' && $outputMode === 'print') {
382  $userCertificateRepository = new ilUserCertificateRepository();
383  $url = $this->getPagePermaLink();
384 
385  return $this->createPersistentCertificateUrl($a_id, $userCertificateRepository, $url);
386  }
387 
388  if ($a_type === 'crta') {
389  $this->ctrl->setParameter($this, "dlid", $a_id);
390  $url = $this->ctrl->getLinkTarget($this, "dl" . $a_type);
391  $this->ctrl->setParameter($this, "dlid", "");
392 
393  $userCertificateRepository = new ilUserCertificateRepository();
394 
395  return $this->createPersistentCertificateUrl($a_id, $userCertificateRepository, $url);
396  }
397 
398  if (!ilObject::_exists($a_id)) {
399  return $this->lng->txt('deleted');
400  }
401 
402  $class = "ilObj" . $objDefinition->getClassName($a_type) . "GUI";
403  $verification = new $class($a_id, ilObject2GUI::WORKSPACE_OBJECT_ID);
404 
405  if ($outputMode === "print") {
406  $url = $this->getPagePermaLink();
407  } elseif ($outputMode !== "offline") {
408  // direct download link
409  $this->ctrl->setParameter($this, "dlid", $a_id);
410  $url = $this->ctrl->getLinkTarget($this, "dl" . $a_type);
411  $this->ctrl->setParameter($this, "dlid", "");
412  } else {
413  $file = $verification->getObject()->getFilePath();
414  $url = "files/" . basename($file);
415 
416  $this->export_material["files"][] = $file;
417  }
418 
419  return $verification->render(true, $url);
420  }
ilObjectDefinition $obj_definition
createPersistentCertificateUrl(int $a_id, ilUserCertificateRepository $userCertificateRepository, string $url)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
$url
Definition: ltiregstart.php:35
+ Here is the call graph for this function:

◆ setAdditional()

ilPortfolioPageGUI::setAdditional ( array  $a_additional)

Set Additonal Information.

Definition at line 196 of file class.ilPortfolioPageGUI.php.

Referenced by ilObjPortfolioTemplateGUI\getPageGUIInstance().

196  : void
197  {
198  $this->additional = $a_additional;
199  }
+ Here is the caller graph for this function:

◆ setEmbedded()

ilPortfolioPageGUI::setEmbedded ( bool  $a_value)

Set embedded mode: will suppress tabs.

Definition at line 188 of file class.ilPortfolioPageGUI.php.

188  : void
189  {
190  $this->embedded = $a_value;
191  }

◆ showPage()

ilPortfolioPageGUI::showPage ( )

Definition at line 161 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$user, ilPageObjectGUI\getPageObject(), ILIAS\Repository\int(), renderBlog(), ilPageObjectGUI\setTemplateOutput(), and ilPortfolioPage\TYPE_BLOG.

161  : string
162  {
163  $ilUser = $this->user;
164 
165  if (!$this->getPageObject()) {
166  return "";
167  }
168 
169  if ($this->getPageObject()->getType() === ilPortfolioPage::TYPE_BLOG) {
170  return $this->renderBlog($ilUser->getId(), (int) $this->getPageObject()->getTitle());
171  }
172 
173  $this->setTemplateOutput(false);
174  // $this->setPresentationTitle($this->getPageObject()->getTitle());
175  return parent::showPage();
176  }
renderBlog(int $a_user_id, int $a_blog_id, array $a_posting_ids=null)
setTemplateOutput(bool $a_output=true)
+ Here is the call graph for this function:

Field Documentation

◆ $additional

array ilPortfolioPageGUI::$additional = array()
protected

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

Referenced by getAdditional().

◆ $calender_initialized

bool ilPortfolioPageGUI::$calender_initialized = false
staticprotected

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

◆ $embedded

bool ilPortfolioPageGUI::$embedded = false
protected

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

◆ $enable_comments

bool ilPortfolioPageGUI::$enable_comments
protected

Definition at line 29 of file class.ilPortfolioPageGUI.php.

◆ $export_material

array ilPortfolioPageGUI::$export_material = array("js" => array(), "images" => array(), "files" => array())
protected

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

Referenced by getExportMaterial().

◆ $initialized

int ilPortfolioPageGUI::$initialized = 0
staticprotected

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

◆ $js_onload_code

array ilPortfolioPageGUI::$js_onload_code = array()
protected

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

Referenced by getJsOnloadCode().

◆ $obj_definition

ilObjectDefinition ilPortfolioPageGUI::$obj_definition
protected

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

Referenced by renderVerification().

◆ $port_request

ILIAS Portfolio StandardGUIRequest ilPortfolioPageGUI::$port_request
protected

Definition at line 31 of file class.ilPortfolioPageGUI.php.

◆ $portfolio_id

int ilPortfolioPageGUI::$portfolio_id
protected

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

◆ $requested_ppage

int ilPortfolioPageGUI::$requested_ppage
protected

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

◆ $tree

ilTree ilPortfolioPageGUI::$tree
protected

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

Referenced by getCoursesOfUser().

◆ EMBEDDED_NO_OUTPUT

const ilPortfolioPageGUI::EMBEDDED_NO_OUTPUT = -99

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

Referenced by ilObjPortfolioBaseGUI\handlePageCall().


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