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

Portfolio page gui class. More...

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

Public Member Functions

 __construct ($a_portfolio_id, $a_id=0, $a_old_nr=0, $a_enable_comments=true)
 Constructor. More...
 
 getParentType ()
 
 executeCommand ()
 execute command More...
 
 showPage ()
 Show page. More...
 
 getTabs ($a_activate="")
 Set all tabs. More...
 
 setEmbedded ($a_value)
 Set embedded mode: will suppress tabs. More...
 
 setAdditional ($a_additional)
 Set Additonal Information. More...
 
 getAdditional ()
 Get Additonal Information. More...
 
 getJsOnloadCode ()
 
 postOutputProcessing ($a_output)
 
 getExportMaterial ()
 
 makePlaceHoldersClickable ($a_html)
 Modify page content after xsl. More...
 
 getViewPageLink ()
 Get view page link. More...
 
 getViewPageText ()
 Get view page link. More...
 
 getPagePermaLink ()
 Get page perma link. More...
 
- Public Member Functions inherited from ilPageObjectGUI
 __construct ( $a_parent_type, $a_id, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
 Constructor. More...
 
 afterConstructor ()
 After constructor. More...
 
 setParentType ($a_val)
 Set parent type. More...
 
 getParentType ()
 Get parent type. More...
 
 setId ($a_val)
 Set ID. More...
 
 getId ()
 Get ID. More...
 
 setOldNr ($a_val)
 Set old nr (historic page) More...
 
 getOldNr ()
 Get old nr (historic page) More...
 
 setLanguage ($a_val)
 Set language. More...
 
 getLanguage ()
 Get language. More...
 
 setEnablePCType ($a_pc_type, $a_val)
 Set enable pc type. More...
 
 getEnablePCType ($a_pc_type)
 Get enable pc type. More...
 
 setPageConfig ($a_val)
 Set page config object. More...
 
 getPageConfig ()
 Get page config object. More...
 
 setPageObject (ilPageObject $a_pg_obj)
 Set Page Object. More...
 
 getPageObject ()
 Get Page Object. More...
 
 setOutputMode ($a_mode=IL_PAGE_PRESENTATION)
 Set Output Mode. More...
 
 getOutputMode ()
 
 setTemplateOutput ($a_output=true)
 
 outputToTemplate ()
 
 setPresentationTitle ($a_title="")
 
 getPresentationTitle ()
 
 setHeader ($a_title="")
 
 getHeader ()
 
 setLinkParams ($l_params="")
 
 getLinkParams ()
 
 setLinkFrame ($l_frame="")
 
 getLinkFrame ()
 
 setLinkXML ($link_xml)
 
 getLinkXML ()
 
 setQuestionXML ($question_xml)
 
 setQuestionHTML ($question_html)
 
 getQuestionXML ()
 
 getQuestionHTML ()
 
 setTemplateTargetVar ($a_variable)
 
 getTemplateTargetVar ()
 
 setTemplateOutputVar ($a_value)
 
 getTemplateOutputVar ()
 
 setSourcecodeDownloadScript ($script_name)
 Set sourcecode download script. More...
 
 getSourcecodeDownloadScript ()
 Get sourcecode download script. More...
 
 setLocator (&$a_locator)
 
 setTabs ($a_tabs)
 
 setPageBackTitle ($a_title)
 
 setFileDownloadLink ($a_download_link)
 Set file download link. More...
 
 getFileDownloadLink ()
 Get file download link. More...
 
 setFullscreenLink ($a_fullscreen_link)
 Set fullscreen link. More...
 
 getFullscreenLink ()
 Get fullscreen link. More...
 
 setIntLinkReturn ($a_return)
 
 enableChangeComments ($a_enabled)
 
 isEnabledChangeComments ()
 
 enableNotes ($a_enabled, $a_parent_id)
 
 isEnabledNotes ()
 
 setOfflineDirectory ($offdir)
 set offline directory to offdir More...
 
 getOfflineDirectory ()
 get offline directory More...
 
 setViewPageLink ($a_link, $a_target="")
 set link for "view page" button More...
 
 getViewPageLink ()
 get view page link More...
 
 getViewPageTarget ()
 get view page target frame More...
 
 getViewPageText ()
 get view page text More...
 
 setActivationListener (&$a_obj, $a_meth)
 
 setEnabledNews ($a_enabled, $a_news_obj_id=0, $a_news_obj_type=0)
 Set enabled news. More...
 
 getEnabledNews ()
 Get enabled news. More...
 
 setTabHook ($a_object, $a_function)
 Set tab hook. More...
 
 setEditPreview ($a_editpreview)
 Set Display first Edit tab, then Preview tab, instead of Page and Edit. More...
 
 getEditPreview ()
 Get Display first Edit tab, then Preview tab, instead of Page and Edit. More...
 
 setEnabledTabs ($a_enabledtabs)
 Set Output tabs. More...
 
 getEnabledTabs ()
 Get Output tabs. More...
 
 setEnabledPageFocus ($a_enabledpagefocus)
 Set Enable page focus. More...
 
 getEnabledPageFocus ()
 Get Enable page focus. More...
 
 setExplorerUpdater ($a_exp_frame, $a_exp_id, $a_exp_target_script)
 Set Explorer Updater. More...
 
 setPrependingHtml ($a_prependinghtml)
 Set Prepending HTML. More...
 
 getPrependingHtml ()
 Get Prepending HTML. More...
 
 setEnableEditing ($a_enableediting)
 Set Enable Editing. More...
 
 getEnableEditing ()
 Get Enable Editing. More...
 
 setRawPageContent ($a_rawpagecontent)
 Set Get raw page content only. More...
 
 getRawPageContent ()
 Get Get raw page content only. More...
 
 setStyleId ($a_styleid)
 Set Style Id. More...
 
 getStyleId ()
 Get Style Id. More...
 
 setCompareMode ($a_val)
 Set compare mode. More...
 
 getCompareMode ()
 Get compare mode. More...
 
 setAbstractOnly ($a_val)
 Set abstract only. More...
 
 getAbstractOnly ()
 Get abstract only. More...
 
 setRenderPageContainer ($a_val)
 Set render page container. More...
 
 getRenderPageContainer ()
 Get render page container. More...
 
 getDisabledText ()
 Get disabled text. More...
 
 activateMetaDataEditor ( $a_rep_obj, $a_type, $a_sub_obj_id, $a_observer_obj=null, $a_observer_func="")
 Activate meda data editor. More...
 
 determineFileDownloadLink ()
 Determine file download link. More...
 
 determineFullscreenLink ()
 Determine fullscreen link. More...
 
 determineSourcecodeDownloadScript ()
 Determine source code download script. More...
 
 getComponentPluginsXML ()
 Put information about activated plugins into XML. More...
 
 executeCommand ()
 execute command More...
 
 setQEditTabs ($a_active)
 Set question editing tabs. More...
 
 onFeedbackEditingForwarding ()
 On feedback editing forwarding. More...
 
 deactivatePage ()
 
 activatePage ()
 
 showPage ()
 display content of page More...
 
 replaceCurlyBrackets ($output)
 Replace curly brackets. More...
 
 addActionsMenu ($a_tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode)
 Add actions menu. More...
 
 addMultiLangActionsAndInfo ($a_list, $a_tpl)
 Add multi-language actions to menu. More...
 
 setEditMode ()
 Set edit mode. More...
 
 setDefaultLinkXml ()
 Set standard link xml. More...
 
 getProfileBackUrl ()
 Get profile back url. More...
 
 downloadFile ()
 Download file of file lists. More...
 
 displayMediaFullscreen ()
 Show media in fullscreen mode. More...
 
 displayMedia ($a_fullscreen=false)
 Display media. More...
 
 download_paragraph ()
 download source code paragraph More...
 
 insertPageToc ($a_output)
 Insert page toc. More...
 
 insertResources ($a_output)
 Insert resources. More...
 
 insertAdvTrigger ($a_output)
 Insert adv content trigger. More...
 
 postOutputProcessing ($a_output)
 Finalizing output processing. More...
 
 insertHelp ($a_tpl)
 Insert help texts. More...
 
 previewHistory ()
 Preview history. More...
 
 preview ()
 preview More...
 
 edit ()
 edit ("view" before) More...
 
 insertJSAtPlaceholder ()
 InsertJS at placeholder. More...
 
 initCaptchaForm ()
 Init captcha form. More...
 
 presentation ($a_mode=IL_PAGE_PRESENTATION)
 
 getHTML ()
 
 showMediaFullscreen ($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 ()
 Set screen id component. More...
 
 getTabs ($a_activate="")
 adds tabs to tab gui object More...
 
 compareVersion ()
 Compares two revisions of the page. More...
 
 replaceDiffTags ($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 ($a_content_object=null, $a_enable_private_notes=true, $a_enable_public_notes=false, $a_enable_notes_deletion=false, $a_callback=null)
 Get html for public and/or private notes. More...
 
 processAnswer ()
 Process answer. More...
 
 initialOpenedContent ()
 Initially opened content. More...
 
 initOpenedContentForm ()
 Init form for initially opened content. More...
 
 saveInitialOpenedContent ()
 Save initial opened content. More...
 
 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...
 
 getPagePermaLink ()
 Get page perma link. More...
 

Data Fields

const EMBEDDED_NO_OUTPUT = -99
 
- Data Fields inherited from ilPageObjectGUI
 $obj
 
 $presentation_title
 
 $target_script
 
 $return_location
 
 $target_var
 
 $template_output_var
 
 $output2template
 
 $link_params
 
 $sourcecode_download_script
 
 $change_comments
 
 $question_html
 
 $activation = false
 
 $activated = true
 
 $editpreview = false
 
 $use_meta_data = false
 
 $link_xml_set = false
 
 $enableediting = true
 
 $rawpagecontent = false
 
 $enabledcontentincludes = false
 
 $compare_mode = false
 
 $page_config = null
 
 $tabs_enabled = true
 
 $render_page_container = false
 
 $pl_start = "{{{{{"
 
 $pl_end = "}}}}}"
 

Protected Member Functions

 getPageContentUserId ($a_user_id)
 
 renderPageElement ($a_type, $a_html)
 
 renderTeaser ($a_type, $a_title, $a_options=null)
 
 renderProfile ($a_user_id, $a_type, array $a_fields=null)
 
 renderVerification ($a_user_id, $a_type, $a_id)
 
 dltstv ()
 
 dlexcv ()
 
 dlcrsv ()
 
 dlscov ()
 
 dlcrta ()
 
 renderBlog ($a_user_id, $a_blog_id, array $a_posting_ids=null)
 
 renderBlogTeaser ($a_user_id, $a_blog_id, array $a_posting_ids=null)
 
 renderSkills ($a_user_id, $a_skills_id)
 
 renderSkillsTeaser ($a_user_id, $a_skills_id)
 
 renderConsultationHoursTeaser ($a_user_id, $a_mode, $a_group_ids)
 
 renderConsultationHours ($a_user_id, $a_mode, $a_group_ids)
 
 isMyCoursesActive ()
 
 renderMyCoursesTeaser ($a_user_id, $a_default_sorting)
 
 renderMyCourses ($a_user_id, $a_default_sorting)
 
 getCourseSortAction ($ctrl)
 Get course sort action. More...
 
 getCoursesOfUser ($a_user_id, $a_add_path=false)
 
 parseObjectives ($a_obj_id, $a_user_id)
 
 parseLOUserResults ($a_course_obj_id, $a_user_id)
 
- Protected Member Functions inherited from ilPageObjectGUI
 initPageObject ()
 Init page object. More...
 
 getActivationCaptions ()
 Get captions for activation action menu entries. More...
 
 getBlockingInfoMessage ()
 Get block info message. More...
 
 isPageContainerToBeRendered ()
 

Protected Attributes

 $obj_definition
 
 $tree
 
 $js_onload_code = array()
 
 $additional = array()
 
 $export_material = array("js" => array(), "images" => array(), "files" => array())
 
 $requested_ppage
 
- Protected Attributes inherited from ilPageObjectGUI
 $tpl
 
 $lng
 
 $ctrl
 
 $tabs_gui
 
 $access
 
 $plugin_admin
 
 $log
 
 $user
 
 $help
 
 $output_mode
 
 $parent_type = ""
 
 $ui
 

Static Protected Attributes

static $initialized = 0
 

Private Member Functions

 createPersistentCertificateUrl ($a_id, $userCertificateRepository, $url)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPageObjectGUI
static getTinyMenu ( $a_par_type, $a_int_links=false, $a_wiki_links=false, $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)
 Get Tiny Menu. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

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

References $_GET, $DIC, ilPageObjectGUI\$tpl, ilObjStyleSheet\getContentStylePath(), ilPageObjectGUI\getPageObject(), getParentType(), ilObjStyleSheet\getPlaceHolderStylePath(), ilObjStyleSheet\getSyntaxStylePath(), and user().

47  {
48  global $DIC;
49 
50  $this->tpl = $DIC["tpl"];
51  $this->ctrl = $DIC->ctrl();
52  $this->user = $DIC->user();
53  $this->obj_definition = $DIC["objDefinition"];
54  $this->access = $DIC->access();
55  $this->tree = $DIC->repositoryTree();
56  $this->lng = $DIC->language();
57  $tpl = $DIC["tpl"];
58 
59  $this->portfolio_id = (int) $a_portfolio_id;
60  $this->enable_comments = (bool) $a_enable_comments;
61 
62  parent::__construct($this->getParentType(), $a_id, $a_old_nr);
63  $this->getPageObject()->setPortfolioId($this->portfolio_id);
64 
65  // content style
66  include_once("./Services/Style/Content/classes/class.ilObjStyleSheet.php");
67 
68  $tpl->setCurrentBlock("SyntaxStyle");
69  $tpl->setVariable(
70  "LOCATION_SYNTAX_STYLESHEET",
72  );
73  $tpl->parseCurrentBlock();
74 
75  $tpl->setCurrentBlock("ContentStyle");
76  $tpl->setVariable(
77  "LOCATION_CONTENT_STYLESHEET",
79  );
80  $tpl->setVariable(
81  "LOCATION_ADDITIONAL_STYLESHEET",
83  );
84  $tpl->parseCurrentBlock();
85 
86  $this->requested_ppage = (int) $_GET["ppage"];
87  }
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
getPageObject()
Get Page Object.
global $DIC
Definition: saml.php:7
$_GET["client_id"]
user()
Definition: user.php:4
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id, $add_random=true)
get content style path
+ Here is the call graph for this function:

Member Function Documentation

◆ createPersistentCertificateUrl()

ilPortfolioPageGUI::createPersistentCertificateUrl (   $a_id,
  $userCertificateRepository,
  $url 
)
private
Parameters
$a_id
$userCertificateRepository
$url
Returns
string

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

References $url, and user().

Referenced by renderVerification().

1215  : string
1216  {
1217  $presentation = $userCertificateRepository->fetchActiveCertificateForPresentation($this->user->getId(), $a_id);
1218  $caption = $this->lng->txt('certificate') . ': ';
1219  $caption .= $this->lng->txt($presentation->getUserCertificate()->getObjType()) . ' ';
1220  $caption .= '"' . $presentation->getObjectTitle() . '"';
1221 
1222  return '<div><a href="' . $url . '">' . $caption . '</a></div>';
1223  }
user()
Definition: user.php:4
$url
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dlcrsv()

ilPortfolioPageGUI::dlcrsv ( )
protected

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

References $_GET, $id, ilPageObjectGUI\getPageObject(), and ilObject2GUI\WORKSPACE_OBJECT_ID.

464  {
465  $id = $_GET["dlid"];
466  if ($id) {
467  include_once "Modules/Course/classes/Verification/class.ilObjCourseVerificationGUI.php";
469  $verification->downloadFromPortfolioPage($this->getPageObject());
470  }
471  }
getPageObject()
Get Page Object.
$_GET["client_id"]
if(!array_key_exists('StateId', $_REQUEST)) $id
GUI class for course verification.
+ Here is the call graph for this function:

◆ dlcrta()

ilPortfolioPageGUI::dlcrta ( )
protected

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

References $_GET, ilPageObjectGUI\getPageObject(), and user().

484  {
485  $objectId = $_GET["dlid"];
486  if ($objectId) {
488  $object->downloadFromPortfolioPage($this->getPageObject(), $objectId, $this->user->getId());
489  }
490  }
getPageObject()
Get Page Object.
$_GET["client_id"]
user()
Definition: user.php:4
+ Here is the call graph for this function:

◆ dlexcv()

ilPortfolioPageGUI::dlexcv ( )
protected

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

References $_GET, $id, ilPageObjectGUI\getPageObject(), and ilObject2GUI\WORKSPACE_OBJECT_ID.

454  {
455  $id = $_GET["dlid"];
456  if ($id) {
457  include_once "Modules/Exercise/classes/class.ilObjExerciseVerificationGUI.php";
459  $verification->downloadFromPortfolioPage($this->getPageObject());
460  }
461  }
getPageObject()
Get Page Object.
$_GET["client_id"]
if(!array_key_exists('StateId', $_REQUEST)) $id
GUI class for exercise verification.
+ Here is the call graph for this function:

◆ dlscov()

ilPortfolioPageGUI::dlscov ( )
protected

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

References $_GET, $id, ilPageObjectGUI\getPageObject(), and ilObject2GUI\WORKSPACE_OBJECT_ID.

474  {
475  $id = $_GET["dlid"];
476  if ($id) {
477  include_once "Modules/ScormAicc/classes/Verification/class.ilObjSCORMVerificationGUI.php";
479  $verification->downloadFromPortfolioPage($this->getPageObject());
480  }
481  }
getPageObject()
Get Page Object.
$_GET["client_id"]
if(!array_key_exists('StateId', $_REQUEST)) $id
GUI class for scorm verification.
+ Here is the call graph for this function:

◆ dltstv()

ilPortfolioPageGUI::dltstv ( )
protected

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

References $_GET, $id, ilPageObjectGUI\getPageObject(), and ilObject2GUI\WORKSPACE_OBJECT_ID.

444  {
445  $id = $_GET["dlid"];
446  if ($id) {
447  include_once "Modules/Test/classes/class.ilObjTestVerificationGUI.php";
449  $verification->downloadFromPortfolioPage($this->getPageObject());
450  }
451  }
getPageObject()
Get Page Object.
$_GET["client_id"]
if(!array_key_exists('StateId', $_REQUEST)) $id
GUI class for test verification.
+ Here is the call graph for this function:

◆ executeCommand()

ilPortfolioPageGUI::executeCommand ( )

execute command

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

References $_GET, ilPageObjectGUI\$ctrl, $ilCtrl, $ilUser, ilPageObjectGUI\$user, ilCalendarCategories\_getInstance(), ilPageObjectGUI\getPageObject(), IL_CAL_DATE, IL_CAL_UNIX, ilCalendarCategories\MODE_PORTFOLIO_CONSULTATION, ilPageObjectGUI\setPresentationTitle(), and ilObject2GUI\WORKSPACE_NODE_ID.

104  {
107 
108  $next_class = $this->ctrl->getNextClass($this);
109  $cmd = $this->ctrl->getCmd();
110 
111  switch ($next_class) {
112  case "ilobjbloggui":
113  // #12879 - we need the wsp-id for the keywords
114  include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
115  $wsp_tree = new ilWorkspaceTree($ilUser->getId());
116  $blog_obj_id = (int) $this->getPageObject()->getTitle();
117  $blog_node_id = $wsp_tree->lookupNodeId($blog_obj_id);
118 
119  include_once "Modules/Blog/classes/class.ilObjBlogGUI.php";
120  $blog_gui = new ilObjBlogGUI($blog_node_id, ilObjBlogGUI::WORKSPACE_NODE_ID);
121  $blog_gui->disableNotes(!$this->enable_comments);
122  $blog_gui->prtf_embed = true; // disables prepareOutput()/getStandardTemplate() in blog
123  return $ilCtrl->forwardCommand($blog_gui);
124 
125  case "ilcalendarmonthgui":
126 
127 
128  // booking action
129  if ($cmd && $cmd != "preview") {
130  $categories = ilCalendarCategories::_getInstance();
131  if ($categories->getMode() == 0) {
132  if ($_GET['chuid']) {
133  $categories->setCHUserId((int) $_GET['chuid']);
134  }
135  $categories->initialize(ilCalendarCategories::MODE_PORTFOLIO_CONSULTATION, null, true);
136  }
137 
138  if ($_GET['seed']) {
139  $seed = new ilDate((string) $_GET['seed'], IL_CAL_DATE);
140  } else {
141  $seed = new ilDate(time(), IL_CAL_UNIX);
142  }
143 
144  include_once('./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
145  $month_gui = new ilCalendarMonthGUI($seed);
146  return $ilCtrl->forwardCommand($month_gui);
147  }
148  // calendar month navigation
149  else {
150  $ilCtrl->setParameter($this, "cmd", "preview");
151  return self::EMBEDDED_NO_OUTPUT;
152  }
153 
154  // no break
155  case "ilpageobjectgui":
156  die("Deprecated. ilPortfolioPage gui forwarding to ilpageobject");
157  return;
158 
159  default:
160  $this->setPresentationTitle($this->getPageObject()->getTitle());
161  return parent::executeCommand();
162  }
163  }
getPageObject()
Get Page Object.
$_GET["client_id"]
const IL_CAL_UNIX
Tree handler for personal workspace.
global $ilCtrl
Definition: ilias.php:18
Class for single dates.
Class ilObjBlogGUI.
setPresentationTitle($a_title="")
$ilUser
Definition: imgupload.php:18
static _getInstance($a_usr_id=0)
get singleton instance
const IL_CAL_DATE
+ Here is the call graph for this function:

◆ getAdditional()

ilPortfolioPageGUI::getAdditional ( )

Get Additonal Information.

Returns
array Additonal Information

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

References $additional.

Referenced by renderProfile().

230  {
231  return $this->additional;
232  }
+ Here is the caller graph for this function:

◆ getCoursesOfUser()

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

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

References $path, $tree, ilObjUserTracking\_enabledLearningProgress(), ilObjUserTracking\_enabledUserRelatedData(), ilObject\_getAllReferences(), ilParticipants\_getMembershipByType(), ilObjUserTracking\_hasLearningProgressLearner(), ilObjCourseAccess\_isActivated(), ilObject\_lookupTitle(), ilObjCourse\_lookupViewMode(), ilTrQuery\getObjectsStatusForUser(), IL_CRS_VIEW_OBJECTIVE, and parseObjectives().

Referenced by renderMyCourses().

914  {
915  $tree = $this->tree;
916 
917  // see ilPDSelectedItemsBlockGUI
918 
919  include_once 'Modules/Course/classes/class.ilObjCourseAccess.php';
920  include_once 'Services/Membership/classes/class.ilParticipants.php';
921  $items = ilParticipants::_getMembershipByType($a_user_id, 'crs');
922 
923  $repo_title = $tree->getNodeData(ROOT_FOLDER_ID);
924  $repo_title = $repo_title["title"];
925  if ($repo_title == "ILIAS") {
926  $repo_title = $this->lng->txt("repository");
927  }
928 
929  $references = $lp_obj_refs = array();
930  foreach ($items as $obj_id) {
931  $ref_id = ilObject::_getAllReferences($obj_id);
932  if (is_array($ref_id) && count($ref_id)) {
933  $ref_id = array_pop($ref_id);
934  if (!$tree->isDeleted($ref_id)) {
935  $visible = false;
936  $active = ilObjCourseAccess::_isActivated($obj_id, $visible, false);
937  if ($active && $visible) {
938  $references[$ref_id] = array(
939  'ref_id' => $ref_id,
940  'obj_id' => $obj_id,
941  'title' => ilObject::_lookupTitle($obj_id)
942  );
943 
944  if ($a_add_path) {
945  $path = array();
946  foreach ($tree->getPathFull($ref_id) as $item) {
947  $path[] = $item["title"];
948  }
949  // top level comes first
950  if (sizeof($path) == 2) {
951  $path[0] = 0;
952  } else {
953  $path[0] = 1;
954  }
955  $references[$ref_id]["path_sort"] = implode("__", $path);
956  array_shift($path);
957  array_pop($path);
958  if (!sizeof($path)) {
959  array_unshift($path, $repo_title);
960  }
961  $references[$ref_id]["path"] = implode(" &rsaquo; ", $path);
962  }
963 
964  $lp_obj_refs[$obj_id] = $ref_id;
965  }
966  }
967  }
968  }
969 
970  // get lp data for valid courses
971 
972  if (sizeof($lp_obj_refs)) {
973  // listing the objectives should NOT depend on any LP status / setting
974  include_once 'Modules/Course/classes/class.ilObjCourse.php';
975  foreach ($lp_obj_refs as $obj_id => $ref_id) {
976  // only if set in DB (default mode is not relevant
978  $references[$ref_id]["objectives"] = $this->parseObjectives($obj_id, $a_user_id);
979  }
980  }
981 
982  // LP must be active, personal and not anonymized
983  include_once "Services/Tracking/classes/class.ilObjUserTracking.php";
987  // see ilLPProgressTableGUI
988  include_once "Services/Tracking/classes/class.ilTrQuery.php";
989  include_once "Services/Tracking/classes/class.ilLPStatusFactory.php";
990  $lp_data = ilTrQuery::getObjectsStatusForUser($a_user_id, $lp_obj_refs);
991  foreach ($lp_data as $item) {
992  $ref_id = $item["ref_ids"];
993  $references[$ref_id]["lp_status"] = $item["status"];
994  }
995  }
996  }
997 
998  return $references;
999  }
$path
Definition: aliased.php:25
const IL_CRS_VIEW_OBJECTIVE
static _getMembershipByType($a_usr_id, $a_type, $a_only_member_role=false)
get membership by type Get course or group membership
static _lookupTitle($a_id)
lookup object title
static _lookupViewMode($a_id)
lookup view mode of container
static getObjectsStatusForUser($a_user_id, array $obj_refs)
static _getAllReferences($a_id)
get all reference ids of object
static _enabledUserRelatedData()
check wether user related tracking is enabled or not
static _enabledLearningProgress()
check wether learing progress is enabled or not
parseObjectives($a_obj_id, $a_user_id)
static _isActivated($a_obj_id, &$a_visible_flag=null, $a_mind_member_view=true)
Is activated?
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCourseSortAction()

ilPortfolioPageGUI::getCourseSortAction (   $ctrl)
protected

Get course sort action.

Parameters
ilCtrl$ctrl
Returns
string

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

References ilPageObjectGUI\$ctrl.

Referenced by renderMyCourses().

908  {
909  return $ctrl->getFormActionByClass("ilobjportfoliogui", "preview");
910  }
+ Here is the caller graph for this function:

◆ getExportMaterial()

ilPortfolioPageGUI::getExportMaterial ( )

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

References $export_material.

1083  {
1084  return $this->export_material;
1085  }

◆ getJsOnloadCode()

ilPortfolioPageGUI::getJsOnloadCode ( )

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

References $js_onload_code.

235  {
236  return $this->js_onload_code;
237  }

◆ getPageContentUserId()

ilPortfolioPageGUI::getPageContentUserId (   $a_user_id)
protected

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

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

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

◆ getPagePermaLink()

ilPortfolioPageGUI::getPagePermaLink ( )

Get page perma link.

Parameters

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

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

Referenced by renderVerification().

1202  {
1203  include_once("./Services/Link/classes/class.ilLink.php");
1205  $href = ilLink::_getStaticLink($pid, "prtf", true, "_" . $this->getId());
1206  return $href;
1207  }
static findPortfolioForPage($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().

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

◆ getTabs()

ilPortfolioPageGUI::getTabs (   $a_activate = "")

Set all tabs.

Parameters

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

198  {
199  if (!$this->embedded) {
200  parent::getTabs($a_activate);
201  }
202  }

◆ getViewPageLink()

ilPortfolioPageGUI::getViewPageLink ( )

Get view page link.

Parameters

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

References ilPageObjectGUI\$ctrl, and $DIC.

1175  {
1176  global $DIC;
1177 
1178  $ctrl = $DIC->ctrl();
1179 
1180  $ctrl->setParameterByClass("ilobjportfoliogui", "user_page", $this->requested_ppage);
1181  return $ctrl->getLinkTargetByClass("ilobjportfoliogui", "preview");
1182  }
global $DIC
Definition: saml.php:7

◆ getViewPageText()

ilPortfolioPageGUI::getViewPageText ( )

Get view page link.

Parameters

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

1191  {
1192  return $this->lng->txt("preview");
1193  }

◆ isMyCoursesActive()

ilPortfolioPageGUI::isMyCoursesActive ( )
protected

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

Referenced by renderMyCourses(), and renderMyCoursesTeaser().

668  {
669  $prfa_set = new ilSetting("prfa");
670  return (bool) $prfa_set->get("mycrs", true);
671  }
+ Here is the caller graph for this function:

◆ makePlaceHoldersClickable()

ilPortfolioPageGUI::makePlaceHoldersClickable (   $a_html)

Modify page content after xsl.

Parameters
string$a_html
Returns
string

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

References $_GET, ilPageObjectGUI\$ctrl, $end, $html, $i, $ilCtrl, $ilUser, ilPageObjectGUI\$lng, $start, ilPageObjectGUI\$user, ilObject2\_lookupOwner(), ilPageObjectGUI\getId(), and ilPageObjectGUI\getOutputMode().

Referenced by postOutputProcessing().

1094  {
1095  $ilCtrl = $this->ctrl;
1096  $lng = $this->lng;
1097  $ilUser = $this->user;
1098 
1099  $c_pos = 0;
1100  $start = strpos($a_html, "{{{{{PlaceHolder#");
1101  if (is_int($start)) {
1102  $end = strpos($a_html, "}}}}}", $start);
1103  }
1104  $i = 1;
1105  while ($end > 0) {
1106  $param = substr($a_html, $start + 17, $end - $start - 17);
1107  $param = explode("#", $param);
1108 
1109  $html = $param[2];
1110  switch ($param[2]) {
1111  case "Text":
1112  $html = $lng->txt("cont_text_placeh");
1113  break;
1114 
1115  case "Media":
1116  $html = $lng->txt("cont_media_placeh");
1117  break;
1118 
1119  case "Question":
1120  $html = $lng->txt("cont_question_placeh");
1121  break;
1122 
1123  case "Verification":
1124  $html = $lng->txt("cont_verification_placeh");
1125  break;
1126  }
1127 
1128  // only if not owner
1129  if ($ilUser->getId() == ilObjPortfolio::_lookupOwner($this->portfolio_id)
1130  && $this->getOutputMode() == "presentation") {
1131  switch ($param[2]) {
1132  case "Text":
1133  $ilCtrl->setParameterByClass("ilportfoliopagegui", "prt_id", $_GET["prt_id"]);
1134  $ilCtrl->setParameterByClass("ilportfoliopagegui", "ppage", $this->getId());
1135  $ilCtrl->setParameterByClass("ilportfoliopagegui", "pl_pc_id", $param[0]);
1136  $ilCtrl->setParameterByClass("ilportfoliopagegui", "pl_hier_id", $param[1]);
1137  $href = $ilCtrl->getLinkTargetByClass("ilportfoliopagegui", "insertJSAtPlaceholder");
1138  $html = "<a href='" . $href . "'>" . $html . "</a>";
1139  break;
1140 
1141  case "Media":
1142  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "prt_id", $_GET["prt_id"]);
1143  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "ppage", $this->getId());
1144  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "pl_pc_id", $param[0]);
1145  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "pl_hier_id", $param[1]);
1146  $ilCtrl->setParameterByClass("ilpcmediaobjectgui", "subCmd", "insertNew");
1147  $href = $ilCtrl->getLinkTargetByClass(array("ilPortfolioPageGUI", "ilPageEditorGUI", "ilPCPlaceHolderGUI", "ilpcmediaobjectgui"), "insert");
1148  $html = "<a href='" . $href . "'>" . $html . "</a>";
1149  break;
1150  }
1151  }
1152 
1153  $h2 = substr($a_html, 0, $start) .
1154  $html .
1155  substr($a_html, $end + 5);
1156  $a_html = $h2;
1157  $i++;
1158 
1159  $start = strpos($a_html, "{{{{{PlaceHolder#", $start + 5);
1160  $end = 0;
1161  if (is_int($start)) {
1162  $end = strpos($a_html, "}}}}}", $start);
1163  }
1164  }
1165  return $a_html;
1166  }
$_GET["client_id"]
static _lookupOwner($a_id)
global $ilCtrl
Definition: ilias.php:18
$start
Definition: bench.php:8
$ilUser
Definition: imgupload.php:18
$i
Definition: disco.tpl.php:19
$html
Definition: example_001.php:87
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseLOUserResults()

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

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

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

Referenced by parseObjectives().

1053  {
1054  $res = array();
1055 
1056  include_once "Modules/Course/classes/Objectives/class.ilLOUserResults.php";
1057  $lur = new ilLOUserResults($a_course_obj_id, $a_user_id);
1058  foreach ($lur->getCourseResultsForUserPresentation() as $objective_id => $types) {
1059  // show either initial or qualified for objective
1060  if (isset($types[ilLOUserResults::TYPE_INITIAL])) {
1061  $initial_status = $types[ilLOUserResults::TYPE_INITIAL]["status"];
1062  }
1063 
1064  // qualified test has priority
1065  if (isset($types[ilLOUserResults::TYPE_QUALIFIED])) {
1068  $result["initial"] = $types[ilLOUserResults::TYPE_INITIAL];
1069  } else {
1072  }
1073 
1074  $result["initial_status"] = $initial_status;
1075 
1076  $res[$objective_id] = $result;
1077  }
1078 
1079  return $res;
1080  }
$result
foreach($_POST as $key=> $value) $res
+ Here is the caller graph for this function:

◆ parseObjectives()

ilPortfolioPageGUI::parseObjectives (   $a_obj_id,
  $a_user_id 
)
protected

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

References $res, $title, ilLOTestAssignments\getInstance(), ilCourseObjective\lookupObjectiveTitle(), ilLPObjSettings\LP_MODE_OBJECTIVES, parseLOUserResults(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.

Referenced by getCoursesOfUser().

1002  {
1003  $res = array();
1004 
1005  // we need the collection for the correct order
1006  include_once "Services/Tracking/classes/class.ilLPObjSettings.php";
1007  include_once "Services/Tracking/classes/collection/class.ilLPCollectionOfObjectives.php";
1009  $coll_objtv = $coll_objtv->getItems();
1010  if ($coll_objtv) {
1011  // #13373
1012  $lo_results = $this->parseLOUserResults($a_obj_id, $a_user_id);
1013 
1014  include_once "Modules/Course/classes/Objectives/class.ilLOTestAssignments.php";
1015  $lo_ass = ilLOTestAssignments::getInstance($a_obj_id);
1016 
1017  $tmp = array();
1018 
1019  include_once "Modules/Course/classes/class.ilCourseObjective.php";
1020  foreach ($coll_objtv as $objective_id) {
1021  $title = ilCourseObjective::lookupObjectiveTitle($objective_id, true);
1022 
1023  $tmp[$objective_id] = array(
1024  "id" => $objective_id,
1025  "title" => $title["title"],
1026  "desc" => $title["description"],
1027  "itest" => $lo_ass->getTestByObjective($objective_id, ilLOSettings::TYPE_TEST_INITIAL),
1028  "qtest" => $lo_ass->getTestByObjective($objective_id, ilLOSettings::TYPE_TEST_QUALIFIED)
1029  );
1030 
1031  if (array_key_exists($objective_id, $lo_results)) {
1032  $lo_result = $lo_results[$objective_id];
1033  $tmp[$objective_id]["user_id"] = $lo_result["user_id"];
1034  $tmp[$objective_id]["result_perc"] = $lo_result["result_perc"];
1035  $tmp[$objective_id]["limit_perc"] = $lo_result["limit_perc"];
1036  $tmp[$objective_id]["status"] = $lo_result["status"];
1037  $tmp[$objective_id]["type"] = $lo_result["type"];
1038  $tmp[$objective_id]["initial"] = $lo_result["initial"];
1039  }
1040  }
1041 
1042  // order
1043  foreach ($coll_objtv as $objtv_id) {
1044  $res[] = $tmp[$objtv_id];
1045  }
1046  }
1047 
1048  return $res;
1049  }
static getInstance($a_container_id)
Get instance by container id.
static lookupObjectiveTitle($a_objective_id, $a_add_description=false)
foreach($_POST as $key=> $value) $res
parseLOUserResults($a_course_obj_id, $a_user_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ postOutputProcessing()

ilPortfolioPageGUI::postOutputProcessing (   $a_output)

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

References $def, $type, makePlaceHoldersClickable(), and renderPageElement().

240  {
241  $parts = array(
242  "Profile" => array("0-9", "a-z", "0-9a-z_;\W"), // user, mode, fields
243  "Verification" => array("0-9", "a-z", "0-9"), // user, type, id
244  "Blog" => array("0-9", "0-9", "0-9;\W"), // user, blog id, posting ids
245  "BlogTeaser" => array("0-9", "0-9", "0-9;\W"), // user, blog id, posting ids
246  "Skills" => array("0-9", "0-9"), // user, skill id
247  "SkillsTeaser" => array("0-9", "0-9"), // user, skill id
248  "ConsultationHours" => array("0-9", "a-z", "0-9;\W"), // user, mode, group ids
249  "ConsultationHoursTeaser" => array("0-9", "a-z", "0-9;\W"), // user, mode, group ids
250  "MyCourses" => array("0-9", "a-z*"), // user, sort
251  "MyCoursesTeaser" => array("0-9", "a-z*") // user, sort
252  );
253 
254  foreach ($parts as $type => $def) {
255  // #15732 - allow optional parts
256  $def_parts = array();
257  foreach ($def as $part) {
258  $is_opt = (substr($part, -1) == "*");
259  if (!$is_opt) {
260  $def_parts[] = "#";
261  $end_marker = "+";
262  } else {
263  $def_parts[] = "#*";
264  $end_marker = "*";
265  $part = substr($part, 0, -1);
266  }
267  $def_parts[] = "([" . $part . "]" . $end_marker . ")";
268  }
269  $def = implode("", $def_parts);
270 
271  if (preg_match_all(
272  "/" . $this->pl_start . $type . $def . $this->pl_end . "/",
273  $a_output,
274  $blocks
275  )) {
276  foreach ($blocks[0] as $idx => $block) {
277  switch ($type) {
278  case "Profile":
279  case "Blog":
280  case "BlogTeaser":
281  case "Skills":
282  case "SkillsTeaser":
283  case "ConsultationHours":
284  case "ConsultationHoursTeaser":
285  case "MyCourses":
286  case "MyCoursesTeaser":
287  $subs = null;
288  if (trim($blocks[3][$idx])) {
289  foreach (explode(";", $blocks[3][$idx]) as $sub) {
290  if (trim($sub)) {
291  $subs[] = trim($sub);
292  }
293  }
294  }
295  $snippet = $this->{"render" . $type}(
296  $blocks[1][$idx],
297  $blocks[2][$idx],
298  $subs
299  );
300  break;
301 
302  default:
303  $snippet = $this->{"render" . $type}(
304  $blocks[1][$idx],
305  $blocks[2][$idx],
306  $blocks[3][$idx]
307  );
308  break;
309  }
310 
311  $snippet = $this->renderPageElement($type, $snippet);
312  $a_output = str_replace($block, $snippet, $a_output);
313  }
314  }
315  }
316 
317  $a_output = $this->makePlaceHoldersClickable($a_output);
318 
319  return $a_output;
320  }
$type
makePlaceHoldersClickable($a_html)
Modify page content after xsl.
$def
Definition: croninfo.php:21
renderPageElement($a_type, $a_html)
+ Here is the call graph for this function:

◆ renderBlog()

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

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

References ilPageObjectGUI\$ctrl, $html, $ilCtrl, $post, ilObject2\_lookupTitle(), ilObject\_lookupType(), ilPageObjectGUI\getOutputMode(), IL_PAGE_PREVIEW, and ilObject2GUI\WORKSPACE_OBJECT_ID.

Referenced by showPage().

493  {
495 
496  // not used
497  // $user_id = $this->getPageContentUserId($a_user_id);
498 
499  // full blog (separate tab/page)
500  if (!$a_posting_ids) {
501  include_once "Modules/Blog/classes/class.ilObjBlogGUI.php";
502  if (ilObject::_lookupType($a_blog_id) != "blog") {
503  return;
504  }
505  $blog = new ilObjBlogGUI($a_blog_id, ilObject2GUI::WORKSPACE_OBJECT_ID);
506  $blog->disableNotes(!$this->enable_comments);
507  $blog->setContentStyleSheet();
508 
509  if ($this->getOutputMode() != "offline") {
510  return $ilCtrl->getHTML($blog);
511  } else {
512  }
513  }
514  // embedded postings
515  else {
516  $html = array();
517 
518  include_once "Modules/Blog/classes/class.ilObjBlog.php";
519  $html[] = ilObjBlog::_lookupTitle($a_blog_id);
520 
521  include_once "Modules/Blog/classes/class.ilBlogPostingGUI.php";
522  foreach ($a_posting_ids as $post) {
523  $page = new ilBlogPostingGUI(0, null, $post);
524  if ($this->getOutputMode() != "offline") {
525  $page->setOutputMode(IL_PAGE_PREVIEW);
526  } else {
527  $page->setOutputMode("offline");
528  }
529  $html[] = $page->showPage();
530  }
531 
532  return implode("\n", $html);
533  }
534  }
const IL_PAGE_PREVIEW
static _lookupTitle($a_id)
Class ilBlogPosting GUI class.
global $ilCtrl
Definition: ilias.php:18
Class ilObjBlogGUI.
$post
Definition: post.php:34
static _lookupType($a_id, $a_reference=false)
lookup object type
$html
Definition: example_001.php:87
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderBlogTeaser()

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

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

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

537  {
538  // not used
539  // $user_id = $this->getPageContentUserId($a_user_id);
540 
541  $postings = "";
542  if ($a_posting_ids) {
543  $postings = array("<ul>");
544  include_once "Modules/Blog/classes/class.ilBlogPosting.php";
545  foreach ($a_posting_ids as $post) {
546  $post = new ilBlogPosting($post);
547  $postings[] = "<li>" . $post->getTitle() . " - " .
548  ilDatePresentation::formatDate($post->getCreated()) . "</li>";
549  }
550  $postings[] = "</ul>";
551  $postings = implode("\n", $postings);
552  }
553 
554  return $this->renderTeaser("blog", $this->lng->txt("obj_blog") . ' "' .
555  ilObject::_lookupTitle($a_blog_id) . '"', $postings);
556  }
Class ilBlogPosting.
static _lookupTitle($a_id)
lookup object title
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
$post
Definition: post.php:34
renderTeaser($a_type, $a_title, $a_options=null)
+ Here is the call graph for this function:

◆ renderConsultationHours()

ilPortfolioPageGUI::renderConsultationHours (   $a_user_id,
  $a_mode,
  $a_group_ids 
)
protected

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

References $_GET, $ilUser, ilPageObjectGUI\$user, ilCalendarCategories\_getInstance(), ilPageObjectGUI\getOutputMode(), getPageContentUserId(), ilUtil\getStyleSheetLocation(), IL_CAL_DATE, IL_CAL_UNIX, ilCalendarCategories\MODE_PORTFOLIO_CONSULTATION, and renderConsultationHoursTeaser().

615  {
617 
618  if ($this->getOutputMode() == "preview") {
619  return $this->renderConsultationHoursTeaser($a_user_id, $a_mode, $a_group_ids);
620  }
621 
622  if ($this->getOutputMode() == "offline") {
623  return;
624  }
625 
626  if ($this->getOutputMode() == "print") {
627  return;
628  }
629 
630  $user_id = $this->getPageContentUserId($a_user_id);
631 
632  // only if not owner
633  if ($ilUser->getId() != $user_id) {
634  $_GET["bkid"] = $user_id;
635  }
636 
637  if ($a_mode != "manual") {
638  $a_group_ids = null;
639  }
640 
641  include_once('./Services/Calendar/classes/class.ilCalendarCategories.php');
642  ilCalendarCategories::_getInstance()->setCHUserId($user_id);
644 
645  if (!$_REQUEST["seed"]) {
646  $seed = new ilDate(time(), IL_CAL_UNIX);
647  } else {
648  $seed = new ilDate($_REQUEST["seed"], IL_CAL_DATE);
649  }
650 
651  include_once('./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
652  $month_gui = new ilCalendarMonthGUI($seed);
653  $month_gui->setConsulationHoursUserId($user_id);
654 
655  // custom schedule filter: handle booking group ids
656  include_once('./Services/Calendar/classes/class.ilCalendarScheduleFilterBookings.php');
657  $filter = new ilCalendarScheduleFilterBookings($user_id, $a_group_ids);
658  $month_gui->addScheduleFilter($filter);
659 
660  $this->tpl->addCss(ilUtil::getStyleSheetLocation('filesystem', 'delos.css', 'Services/Calendar'));
661 
662  $this->lng->loadLanguageModule("dateplaner");
663  return '<h3>' . $this->lng->txt("app_consultation_hours") . '</h3>' .
664  $this->ctrl->getHTML($month_gui);
665  }
Calendar schedule filter for consultation hour bookings.
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
$_GET["client_id"]
const IL_CAL_UNIX
Class for single dates.
$ilUser
Definition: imgupload.php:18
static _getInstance($a_usr_id=0)
get singleton instance
const IL_CAL_DATE
renderConsultationHoursTeaser($a_user_id, $a_mode, $a_group_ids)
+ Here is the call graph for this function:

◆ renderConsultationHoursTeaser()

ilPortfolioPageGUI::renderConsultationHoursTeaser (   $a_user_id,
  $a_mode,
  $a_group_ids 
)
protected

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

References ilConsultationHourGroups\lookupTitle(), and renderTeaser().

Referenced by renderConsultationHours().

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

◆ renderMyCourses()

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

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

References $_POST, ilPageObjectGUI\$access, ilPageObjectGUI\$ctrl, $data, $GLOBALS, $ilCtrl, $ilUser, PHPMailer\PHPMailer\$options, PHPMailer\PHPMailer\$params, ilPageObjectGUI\$tpl, $url, ilPageObjectGUI\$user, ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLink\_getLink(), ilLearningProgressBaseGUI\_getStatusText(), ilContainerObjectiveGUI\buildObjectiveProgressBar(), ilUtil\formSelect(), getCoursesOfUser(), getCourseSortAction(), ilLOSettings\getInstanceByObjId(), ilPageObjectGUI\getOutputMode(), getPageContentUserId(), ilUtil\getTypeIconPath(), isMyCoursesActive(), renderMyCoursesTeaser(), and ilUtil\sortArray().

689  {
690  $ilAccess = $this->access;
693 
694  if ($this->getOutputMode() == "preview") {
695  return $this->renderMyCoursesTeaser($a_user_id, $a_default_sorting);
696  }
697 
698  if (!$this->isMyCoursesActive()) {
699  return;
700  }
701 
702  $img_path = null;
703  if ($this->getOutputMode() == "offline") {
704  $this->export_material["images"][] = "./templates/default/images/icon_crs.svg";
705  $this->export_material["images"][] = "./templates/default/images/icon_lobj.svg";
706  $this->export_material["images"][] = "./templates/default/images/scorm/complete.svg";
707  $this->export_material["images"][] = "./templates/default/images/scorm/not_attempted.svg";
708  $this->export_material["images"][] = "./templates/default/images/scorm/failed.svg";
709  $this->export_material["images"][] = "./templates/default/images/scorm/incomplete.svg";
710 
711  $img_path = "images/";
712  }
713 
714  $user_id = $this->getPageContentUserId($a_user_id);
715 
716  // sorting pref
717  if ($_POST["srt"] &&
718  in_array($_POST["srt"], array("alpha", "loc"))) {
719  $ilUser->writePref("prtf_mcrs_sort", $_POST["srt"]);
720  }
721  $sorting = $ilUser->getPref("prtf_mcrs_sort");
722  if (!$sorting) {
723  $sorting = $a_default_sorting;
724  }
725 
726  $data = $this->getCoursesOfUser($user_id, ($sorting == "loc"));
727  if (sizeof($data)) {
728  if ($sorting != "loc") {
729  $data = ilUtil::sortArray($data, "title", "ASC");
730  } else {
731  $data = ilUtil::sortArray($data, "path_sort", "ASC");
732  }
733 
734  $tpl = new ilTemplate("tpl.pc_my_courses.html", true, true, "Modules/Portfolio");
735  $tpl->setVariable("TITLE", $this->lng->txt("prtf_page_element_my_courses_title"));
736  $tpl->setVariable("INFO", $this->lng->txt("prtf_page_element_my_courses_info")); // #14464
737 
738  include_once("./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php");
739  $this->lng->loadLanguageModule("trac");
740  $this->lng->loadLanguageModule("crs");
741 
742  include_once("./Services/Container/classes/class.ilContainerObjectiveGUI.php");
743  include_once("./Services/Link/classes/class.ilLink.php");
744 
745  // sorting
746  if ($this->getOutputMode() != "print") {
747  $options = array(
748  "alpha" => $this->lng->txt("cont_mycourses_sortorder_alphabetical"),
749  "loc" => $this->lng->txt("cont_mycourses_sortorder_location")
750  );
751  $tpl->setVariable("SORT_SELECT", ilUtil::formSelect(
752  $sorting,
753  "srt",
754  $options,
755  false,
756  true,
757  0,
758  "",
759  array("onchange" => "form.submit()")
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") {
768  if ($course["path"] != $old_path) {
769  $tpl->setCurrentBlock("path_bl");
770  $tpl->setVariable("PATH", $course["path"]);
771  $tpl->parseCurrentBlock();
772 
773  $old_path = $course["path"];
774  }
775  }
776 
777  if (isset($course["lp_status"])) {
778  $lp_icon = ilLearningProgressBaseGUI::_getImagePathForStatus($course["lp_status"]);
779  $lp_alt = ilLearningProgressBaseGUI::_getStatusText($course["lp_status"]);
780 
781  if ($img_path) {
782  $lp_icon = $img_path . basename($lp_icon);
783  }
784 
785  $tpl->setCurrentBlock("lp_bl");
786  $tpl->setVariable("LP_ICON_URL", $lp_icon);
787  $tpl->setVariable("LP_ICON_ALT", $lp_alt);
788  $tpl->parseCurrentBlock();
789  }
790 
791  $do_links = false;
792  if ($ilUser->getId() != ANONYMOUS_USER_ID) {
793  $do_links = $ilAccess->checkAccessOfUser($ilUser->getId(), "read", "", $course["ref_id"], "crs") ||
794  ($ilAccess->checkAccessOfUser($ilUser->getId(), "visible", "", $course["ref_id"], "crs") &&
795  $ilAccess->checkAccessOfUser($ilUser->getId(), "join", "", $course["ref_id"], "crs"));
796  }
797 
798  if (isset($course["objectives"])) {
799  include_once './Modules/Course/classes/Objectives/class.ilLOSettings.php';
800  $loc_settings = ilLOSettings::getInstanceByObjId($course["obj_id"]);
801  $has_initial_test = (bool) $loc_settings->getInitialTest();
802 
803  foreach ($course["objectives"] as $objtv) {
804  if ($do_links) {
805  $params = array("oobj" => $objtv["id"]);
806  $url = ilLink::_getLink($course["ref_id"], "crs", $params);
807 
808  // #15510
809  $url .= "#objtv_acc_" . $objtv["id"];
810 
811  if ($this->getOutputMode() != "print") {
812  $tpl->touchBlock("objective_dnone");
813  }
814 
815  $tpl->setCurrentBlock("objective_link_bl");
816 
817  if (trim($objtv["desc"])) {
818  $desc = nl2br($objtv["desc"]);
819  $tt_id = "objtvtt_" . $objtv["id"] . "_" . ((int) self::$initialized);
820 
821  include_once "Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php";
822  ilToolTipGUI::addTooltip($tt_id, $desc, "", "bottom center", "top center", false);
823 
824  $tpl->setVariable("OBJECTIVE_LINK_ID", $tt_id);
825  }
826 
827  $tpl->setVariable("OBJECTIVE_LINK_URL", $url);
828  $tpl->setVariable("OBJECTIVE_LINK_TITLE", $objtv["title"]);
829  $tpl->parseCurrentBlock();
830  } else {
831  $tpl->setCurrentBlock("objective_nolink_bl");
832  $tpl->setVariable("OBJECTIVE_NOLINK_TITLE", $objtv["title"]);
833  $tpl->parseCurrentBlock();
834  }
835 
836  $objtv_icon = ilUtil::getTypeIconPath("lobj", $objtv["id"]);
837  if ($img_path) {
838  $objtv_icon = $img_path . basename($objtv_icon);
839  }
840 
841  $tpl->setCurrentBlock("objective_bl");
842  $tpl->setVariable("OBJTV_ICON_URL", $objtv_icon);
843  $tpl->setVariable("OBJTV_ICON_ALT", $this->lng->txt("crs_objectives"));
844 
845  if ($objtv["type"]) {
846  $tpl->setVariable(
847  "LP_OBJTV_PROGRESS",
848  ilContainerObjectiveGUI::buildObjectiveProgressBar($has_initial_test, $objtv["id"], $objtv, true, false, (int) self::$initialized)
849  );
850  }
851 
852  $tpl->parseCurrentBlock();
853  }
854 
855  $tpl->setCurrentBlock("objectives_bl");
856  $tpl->setVariable("OBJTV_LIST_CRS_ID", $course["obj_id"]);
857  $tpl->parseCurrentBlock();
858  }
859 
860  // always check against current user
861  if ($do_links) {
862  $tpl->setCurrentBlock("course_link_bl");
863  $tpl->setVariable("COURSE_LINK_TITLE", $course["title"]);
864  $tpl->setVariable("COURSE_LINK_URL", ilLink::_getLink($course["ref_id"]));
865  $tpl->parseCurrentBlock();
866  } else {
867  $tpl->setCurrentBlock("course_nolink_bl");
868  $tpl->setVariable("COURSE_NOLINK_TITLE", $course["title"]);
869  $tpl->parseCurrentBlock();
870  }
871 
872  $crs_icon = ilUtil::getTypeIconPath("crs", $course["obj_id"]);
873  if ($img_path) {
874  $crs_icon = $img_path . basename($crs_icon);
875  }
876 
877  $tpl->setCurrentBlock("course_bl");
878 
879  if (isset($course["objectives"])) {
880  $tpl->setVariable("TOGGLE_CLASS", "ilPCMyCoursesToggle");
881  } else {
882  $tpl->setVariable("NO_TOGGLE", ' style="visibility:hidden;"');
883  }
884 
885  $tpl->setVariable("CRS_ICON_URL", $crs_icon);
886  $tpl->setVariable("CRS_ICON_ALT", $this->lng->txt("obj_crs"));
887  $tpl->parseCurrentBlock();
888  }
889 
890  // #15508
891  if (!self::$initialized) {
892  $GLOBALS["tpl"]->addJavaScript("Modules/Portfolio/js/ilPortfolio.js");
893  $GLOBALS["tpl"]->addOnLoadCode("ilPortfolio.init()");
894  }
895  self::$initialized++;
896 
897  return $tpl->get();
898  }
899  }
getCoursesOfUser($a_user_id, $a_add_path=false)
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static getInstanceByObjId($a_obj_id)
get singleton instance
static _getImagePathForStatus($a_status)
Get image path for status.
static _getStatusText($a_status, $a_lng=null)
Get status alt text.
static getTypeIconPath($a_type, $a_obj_id, $a_size='small')
Get type icon path path Return image path for icon_xxx.pngs Or (if enabled) path to custom icon Depre...
global $ilCtrl
Definition: ilias.php:18
special template class to simplify handling of ITX/PEAR
$ilUser
Definition: imgupload.php:18
static buildObjectiveProgressBar($a_has_initial_test, $a_objective_id, array $a_lo_result, $a_list_mode=false, $a_sub=false, $a_tt_suffix=null)
Render progressbar(s) for given objective and result data.
renderMyCoursesTeaser($a_user_id, $a_default_sorting)
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
$url
getCourseSortAction($ctrl)
Get course sort action.
$_POST["username"]
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
$data
Definition: bench.php:6
+ Here is the call graph for this function:

◆ renderMyCoursesTeaser()

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

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

References $title, isMyCoursesActive(), and renderTeaser().

Referenced by renderMyCourses().

674  {
675  // not used
676  // $user_id = $this->getPageContentUserId($a_user_id);
677 
678  $title = $this->isMyCoursesActive()
679  ? "my_courses"
680  : "my_courses_inactive";
681 
682  return $this->renderTeaser(
683  $title,
684  $this->lng->txt("prtf_page_element_my_courses_title")
685  );
686  }
renderTeaser($a_type, $a_title, $a_options=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderPageElement()

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

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

Referenced by postOutputProcessing().

323  {
324  return trim($a_html);
325  }
+ Here is the caller graph for this function:

◆ renderProfile()

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

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

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

341  {
343 
344  $user_id = $this->getPageContentUserId($a_user_id);
345 
346  if ($this->getOutputMode() == "offline") {
347  // profile picture is done in ilPortfolioHTMLExport
348 
349  $this->export_material["js"][] = "http://maps.google.com/maps/api/js?sensor=false";
350  $this->export_material["js"][] = "./Services/Maps/js/ServiceGoogleMaps.js";
351  $this->export_material["js"][] = "./Services/Maps/js/OpenLayers.js";
352  $this->export_material["js"][] = "./Services/Maps/js/ServiceOpenLayers.js";
353  }
354 
355  include_once("./Services/User/classes/class.ilPublicUserProfileGUI.php");
356  $pub_profile = new ilPublicUserProfileGUI($user_id);
357  $pub_profile->setEmbedded(true, ($this->getOutputMode() == "offline"));
358 
359  // full circle: additional was set in the original public user profile call
360  $pub_profile->setAdditional($this->getAdditional());
361 
362  if ($a_type == "manual" && sizeof($a_fields)) {
363  $prefs = array();
364  foreach ($a_fields as $field) {
365  $field = trim($field);
366  if ($field) {
367  $prefs["public_" . $field] = "y";
368  }
369  }
370 
371  $pub_profile->setCustomPrefs($prefs);
372  }
373 
374  if ($this->getOutputMode() != "offline") {
375  return $ilCtrl->getHTML($pub_profile);
376  } else {
377  return $pub_profile->getEmbeddable();
378  }
379  }
getAdditional()
Get Additonal Information.
global $ilCtrl
Definition: ilias.php:18
$a_type
Definition: workflow.php:92
GUI class for public user profile presentation.
+ Here is the call graph for this function:

◆ renderSkills()

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

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

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

559  {
560  if ($this->getOutputMode() == "preview") {
561  return $this->renderSkillsTeaser($a_user_id, $a_skills_id);
562  }
563 
564  $user_id = $this->getPageContentUserId($a_user_id);
565 
566  include_once "Services/Skill/classes/class.ilPersonalSkillsGUI.php";
567  $gui = new ilPersonalSkillsGUI();
568  if ($this->getOutputMode() == "offline") {
569  $gui->setOfflineMode("./files/");
570  }
571  $html = $gui->getSkillHTML($a_skills_id, $user_id);
572 
573  return $html;
574  }
Personal skills GUI class.
renderSkillsTeaser($a_user_id, $a_skills_id)
$html
Definition: example_001.php:87
+ Here is the call graph for this function:

◆ renderSkillsTeaser()

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

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

References ilSkillTreeNode\_lookupTitle(), and renderTeaser().

Referenced by renderSkills().

577  {
578  // not used
579  // $user_id = $this->getPageContentUserId($a_user_id);
580 
581  include_once "Services/Skill/classes/class.ilSkillTreeNode.php";
582 
583  return $this->renderTeaser("skills", $this->lng->txt("skills") . ' "' .
584  ilSkillTreeNode::_lookupTitle($a_skills_id) . '"');
585  }
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
renderTeaser($a_type, $a_title, $a_options=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderTeaser()

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

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

References $a_type, and PHPMailer\PHPMailer\$options.

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

328  {
329  $options = "";
330  if ($a_options) {
331  $options = '<div class="il_Footer">' . $this->lng->txt("prtf_page_element_teaser_settings") .
332  ": " . $a_options . '</div>';
333  }
334 
335  return '<div style="margin:5px" class="ilBox"><h3>' . $a_title . '</h3>' .
336  '<div class="il_Description_no_margin">' . $this->lng->txt("prtf_page_element_teaser_" . $a_type) . '</div>' .
337  $options . '</div>';
338  }
$a_type
Definition: workflow.php:92
+ Here is the caller graph for this function:

◆ renderVerification()

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

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

References $a_type, $obj_definition, $url, createPersistentCertificateUrl(), ilPageObjectGUI\getOutputMode(), getPagePermaLink(), and ilObject2GUI\WORKSPACE_OBJECT_ID.

389  {
390  $objDefinition = $this->obj_definition;
391 
392  $outputMode = $this->getOutputMode();
393 
394  // not used
395  // $user_id = $this->getPageContentUserId($a_user_id);
396  if ($a_type === 'crta' && $outputMode === 'offline') {
397  $fileService = new ilPortfolioCertificateFileService();
398 
399  $certificatePdfFile = $fileService->createCertificateFilePath($a_user_id, $a_id);
400  $this->export_material["files"][] = $certificatePdfFile;
401 
402  $url = 'files/' . basename($certificatePdfFile);
403 
404  $userCertificateRepository = new ilUserCertificateRepository();
405 
406  return $this->createPersistentCertificateUrl($a_id, $userCertificateRepository, $url);
407  } elseif ($a_type === 'crta' && $outputMode === 'print') {
408  $userCertificateRepository = new ilUserCertificateRepository();
409  $url = $this->getPagePermaLink();
410 
411  return $this->createPersistentCertificateUrl($a_id, $userCertificateRepository, $url);
412  } elseif ($a_type === 'crta') {
413  $this->ctrl->setParameter($this, "dlid", $a_id);
414  $url = $this->ctrl->getLinkTarget($this, "dl" . $a_type);
415  $this->ctrl->setParameter($this, "dlid", "");
416 
417  $userCertificateRepository = new ilUserCertificateRepository();
418 
419  return $this->createPersistentCertificateUrl($a_id, $userCertificateRepository, $url);
420  }
421 
422  $class = "ilObj" . $objDefinition->getClassName($a_type) . "GUI";
423  include_once $objDefinition->getLocation($a_type) . "/class." . $class . ".php";
424  $verification = new $class($a_id, ilObject2GUI::WORKSPACE_OBJECT_ID);
425 
426  if ($outputMode == "print") {
427  $url = $this->getPagePermaLink();
428  } elseif ($outputMode != "offline") {
429  // direct download link
430  $this->ctrl->setParameter($this, "dlid", $a_id);
431  $url = $this->ctrl->getLinkTarget($this, "dl" . $a_type);
432  $this->ctrl->setParameter($this, "dlid", "");
433  } else {
434  $file = $verification->object->getFilePath();
435  $url = "files/" . basename($file);
436 
437  $this->export_material["files"][] = $file;
438  }
439 
440  return $verification->render(true, $url);
441  }
createPersistentCertificateUrl($a_id, $userCertificateRepository, $url)
$a_type
Definition: workflow.php:92
$url
getPagePermaLink()
Get page perma link.
+ Here is the call graph for this function:

◆ setAdditional()

ilPortfolioPageGUI::setAdditional (   $a_additional)

Set Additonal Information.

Parameters
array$a_additionalAdditonal Information

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

Referenced by ilObjPortfolioTemplateGUI\getPageGUIInstance(), and ilObjPortfolioGUI\getPageGUIInstance().

220  {
221  $this->additional = $a_additional;
222  }
+ Here is the caller graph for this function:

◆ setEmbedded()

ilPortfolioPageGUI::setEmbedded (   $a_value)

Set embedded mode: will suppress tabs.

Parameters
bool$a_value

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

210  {
211  $this->embedded = (bool) $a_value;
212  }

◆ showPage()

ilPortfolioPageGUI::showPage ( )

Show page.

Returns
string page output

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

References $ilUser, Sabre\VObject\$output, ilPageObjectGUI\$user, ilPageObjectGUI\getPageObject(), renderBlog(), ilPageObjectGUI\setTemplateOutput(), and ilPortfolioPage\TYPE_BLOG.

171  {
173 
174  if (!$this->getPageObject()) {
175  return;
176  }
177 
178  switch ($this->getPageObject()->getType()) {
180  return $this->renderBlog($ilUser->getId(), (int) $this->getPageObject()->getTitle());
181 
182  default:
183  $this->setTemplateOutput(false);
184  // $this->setPresentationTitle($this->getPageObject()->getTitle());
185  $output = parent::showPage();
186 
187  return $output;
188  }
189  }
renderBlog($a_user_id, $a_blog_id, array $a_posting_ids=null)
getPageObject()
Get Page Object.
setTemplateOutput($a_output=true)
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

Field Documentation

◆ $additional

ilPortfolioPageGUI::$additional = array()
protected

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

Referenced by getAdditional().

◆ $export_material

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

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

Referenced by getExportMaterial().

◆ $initialized

ilPortfolioPageGUI::$initialized = 0
staticprotected

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

◆ $js_onload_code

ilPortfolioPageGUI::$js_onload_code = array()
protected

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

Referenced by getJsOnloadCode().

◆ $obj_definition

ilPortfolioPageGUI::$obj_definition
protected

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

Referenced by renderVerification().

◆ $requested_ppage

ilPortfolioPageGUI::$requested_ppage
protected

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

◆ $tree

ilPortfolioPageGUI::$tree
protected

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

Referenced by getCoursesOfUser().

◆ EMBEDDED_NO_OUTPUT

const ilPortfolioPageGUI::EMBEDDED_NO_OUTPUT = -99

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

Referenced by ilObjPortfolioBaseGUI\handlePageCall().


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