ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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 ()
 
- Public Member Functions inherited from ilPageObjectGUI
 ilPageObjectGUI ($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...
 
 setBibId ($a_id)
 Set Bib Id. More...
 
 getBibId ()
 Get Bib Id. More...
 
 setPageObject ($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)
 
 getSourcecodeDownloadScript ()
 
 enableCitation ($a_enabled)
 
 isEnabledCitation ()
 
 setLocator (&$a_locator)
 
 setTabs ($a_tabs)
 
 setPageBackTitle ($a_title)
 
 setFileDownloadLink ($a_download_link)
 
 getFileDownloadLink ()
 
 setFullscreenLink ($a_fullscreen_link)
 
 getFullscreenLink ()
 
 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...
 
 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...
 
 activateMetaDataEditor ($a_rep_obj_id, $a_sub_obj_id, $a_type, $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...
 
 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...
 
 insertContentIncludes ($a_html)
 Insert content includes. 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...
 
 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...
 

Data Fields

const EMBEDDED_NO_OUTPUT = -99
 
- Data Fields inherited from ilPageObjectGUI
 $tpl
 
 $lng
 
 $ctrl
 
 $obj
 
 $output_mode
 
 $presentation_title
 
 $target_script
 
 $return_location
 
 $target_var
 
 $template_output_var
 
 $output2template
 
 $link_params
 
 $bib_id
 
 $citation
 
 $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 ()
 
 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)
 
 renderMyCourses ($a_user_id)
 
 getCoursesOfUser ($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...
 
 isPageContainerToBeRendered ()
 

Protected Attributes

 $js_onload_code = array()
 
 $additional = array()
 
 $export_material = array("js"=>array(), "images"=>array(), "files"=>array())
 
- Protected Attributes inherited from ilPageObjectGUI
 $parent_type = ""
 

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)
 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 30 of file class.ilPortfolioPageGUI.php.

References ilPageObjectGUI\$tpl, ilObjStyleSheet\getContentStylePath(), ilPageObjectGUI\getPageObject(), getParentType(), and ilObjStyleSheet\getSyntaxStylePath().

31  {
32  global $tpl;
33 
34  $this->portfolio_id = (int)$a_portfolio_id;
35  $this->enable_comments = (bool)$a_enable_comments;
36 
37  parent::__construct($this->getParentType(), $a_id, $a_old_nr);
38  $this->getPageObject()->setPortfolioId($this->portfolio_id);
39 
40  // content style
41  include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
42 
43  $tpl->setCurrentBlock("SyntaxStyle");
44  $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
46  $tpl->parseCurrentBlock();
47 
48  $tpl->setCurrentBlock("ContentStyle");
49  $tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
51  $tpl->parseCurrentBlock();
52  }
getPageObject()
Get Page Object.
getSyntaxStylePath()
get syntax style path
getContentStylePath($a_style_id)
get content style path
+ Here is the call graph for this function:

Member Function Documentation

◆ dlcrsv()

ilPortfolioPageGUI::dlcrsv ( )
protected

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

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

374  {
375  $id = $_GET["dlid"];
376  if($id)
377  {
378  include_once "Modules/Course/classes/Verification/class.ilObjCourseVerificationGUI.php";
380  $verification->downloadFromPortfolioPage($this->getPageObject());
381  }
382  }
getPageObject()
Get Page Object.
$_GET["client_id"]
GUI class for course verification.
+ Here is the call graph for this function:

◆ dlexcv()

ilPortfolioPageGUI::dlexcv ( )
protected

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

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

363  {
364  $id = $_GET["dlid"];
365  if($id)
366  {
367  include_once "Modules/Exercise/classes/class.ilObjExerciseVerificationGUI.php";
369  $verification->downloadFromPortfolioPage($this->getPageObject());
370  }
371  }
getPageObject()
Get Page Object.
$_GET["client_id"]
GUI class for exercise verification.
+ Here is the call graph for this function:

◆ dlscov()

ilPortfolioPageGUI::dlscov ( )
protected

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

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

385  {
386  $id = $_GET["dlid"];
387  if($id)
388  {
389  include_once "Modules/ScormAicc/classes/Verification/class.ilObjSCORMVerificationGUI.php";
391  $verification->downloadFromPortfolioPage($this->getPageObject());
392  }
393  }
getPageObject()
Get Page Object.
$_GET["client_id"]
GUI class for scorm verification.
+ Here is the call graph for this function:

◆ dltstv()

ilPortfolioPageGUI::dltstv ( )
protected

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

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

352  {
353  $id = $_GET["dlid"];
354  if($id)
355  {
356  include_once "Modules/Test/classes/class.ilObjTestVerificationGUI.php";
358  $verification->downloadFromPortfolioPage($this->getPageObject());
359  }
360  }
getPageObject()
Get Page Object.
$_GET["client_id"]
GUI class for test verification.
+ Here is the call graph for this function:

◆ executeCommand()

& ilPortfolioPageGUI::executeCommand ( )

execute command

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

References $cmd, $ilCtrl, $ilUser, ilPageObjectGUI\getPageObject(), ilPageObjectGUI\setPresentationTitle(), and ilObject2GUI\WORKSPACE_NODE_ID.

69  {
70  global $ilCtrl, $ilUser;
71 
72  $next_class = $this->ctrl->getNextClass($this);
73  $cmd = $this->ctrl->getCmd();
74 
75  switch($next_class)
76  {
77  case "ilobjbloggui":
78  // #12879 - we need the wsp-id for the keywords
79  include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
80  $wsp_tree = new ilWorkspaceTree($ilUser->getId());
81  $blog_obj_id = (int)$this->getPageObject()->getTitle();
82  $blog_node_id = $wsp_tree->lookupNodeId($blog_obj_id);
83 
84  include_once "Modules/Blog/classes/class.ilObjBlogGUI.php";
85  $blog_gui = new ilObjBlogGUI($blog_node_id, ilObjBlogGUI::WORKSPACE_NODE_ID);
86  $blog_gui->disableNotes(!$this->enable_comments);
87  return $ilCtrl->forwardCommand($blog_gui);
88 
89  case "ilcalendarmonthgui":
90  // booking action
91  if($cmd && $cmd != "preview")
92  {
93  include_once('./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
94  $month_gui = new ilCalendarMonthGUI(new ilDate());
95  return $ilCtrl->forwardCommand($month_gui);
96  }
97  // calendar month navigation
98  else
99  {
100  $ilCtrl->setParameter($this, "cmd", "preview");
101  return self::EMBEDDED_NO_OUTPUT;
102  }
103 
104  case "ilpageobjectgui":
105  die("Deprecated. ilPortfolioPage gui forwarding to ilpageobject");
106  return;
107 
108  default:
109  $this->setPresentationTitle($this->getPageObject()->getTitle());
110  return parent::executeCommand();
111  }
112  }
getPageObject()
Get Page Object.
$cmd
Definition: sahs_server.php:35
Tree handler for personal workspace.
global $ilCtrl
Definition: ilias.php:18
Class for single dates.
Class ilObjBlogGUI.
setPresentationTitle($a_title="")
global $ilUser
Definition: imgupload.php:15
+ Here is the call graph for this function:

◆ getAdditional()

ilPortfolioPageGUI::getAdditional ( )

Get Additonal Information.

Returns
array Additonal Information

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

References $additional.

Referenced by renderProfile().

182  {
183  return $this->additional;
184  }
+ Here is the caller graph for this function:

◆ getCoursesOfUser()

ilPortfolioPageGUI::getCoursesOfUser (   $a_user_id)
protected

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

References $ref_id, ilObjUserTracking\_enabledLearningProgress(), ilObjUserTracking\_enabledUserRelatedData(), ilObject\_getAllReferences(), ilParticipants\_getMembershipByType(), ilObjUserTracking\_hasLearningProgressLearner(), ilObjCourseAccess\_isActivated(), ilObject\_lookupTitle(), ilTrQuery\getObjectsStatusForUser(), ilCourseObjective\lookupObjectiveTitle(), ilLPObjSettings\LP_MODE_OBJECTIVES, parseLOUserResults(), and ilUtil\sortArray().

Referenced by renderMyCourses().

736  {
737  global $tree;
738 
739  // see ilPDSelectedItemsBlockGUI
740 
741  include_once 'Modules/Course/classes/class.ilObjCourseAccess.php';
742  include_once 'Services/Membership/classes/class.ilParticipants.php';
743  $items = ilParticipants::_getMembershipByType($a_user_id, 'crs');
744 
745  $references = $lp_obj_refs = array();
746  foreach($items as $obj_id)
747  {
749  if(is_array($ref_id) && count($ref_id))
750  {
751  $ref_id = array_pop($ref_id);
752  if(!$tree->isDeleted($ref_id))
753  {
754  $visible = false;
755  $active = ilObjCourseAccess::_isActivated($obj_id, $visible, false);
756  if($active && $visible)
757  {
758  $references[$ref_id] = array(
759  'ref_id' => $ref_id,
760  'obj_id' => $obj_id,
761  'title' => ilObject::_lookupTitle($obj_id)
762  );
763  $lp_obj_refs[$obj_id] = $ref_id;
764  }
765  }
766  }
767  }
768 
769  // get lp data for valid courses
770 
771  if(sizeof($lp_obj_refs))
772  {
773  // lp must be active, personal and not anonymized
774  include_once "Services/Tracking/classes/class.ilObjUserTracking.php";
778  {
779  // see ilLPProgressTableGUI
780  include_once "Services/Tracking/classes/class.ilTrQuery.php";
781  include_once "Services/Tracking/classes/class.ilLPStatusFactory.php";
782  $lp_data = ilTrQuery::getObjectsStatusForUser($a_user_id, $lp_obj_refs);
783  foreach($lp_data as $item)
784  {
785  $ref_id = $item["ref_ids"];
786  $references[$ref_id]["lp_status"] = $item["status"];
787 
788  // add objectives
789  if($item["u_mode"] == ilLPObjSettings::LP_MODE_OBJECTIVES)
790  {
791  // we need the collection for the correct order
792  include_once "Services/Tracking/classes/collection/class.ilLPCollectionOfObjectives.php";
793  $coll_objtv = new ilLPCollectionOfObjectives($item["obj_id"], $item["u_mode"]);
794  $coll_objtv = $coll_objtv->getItems();
795  if($coll_objtv)
796  {
797  // #13373
798  $lo_results = $this->parseLOUserResults($item["obj_id"], $a_user_id);
799 
800  $tmp = array();
801 
802  include_once "Modules/Course/classes/class.ilCourseObjective.php";
803  foreach($coll_objtv as $objective_id)
804  {
805  $tmp[$objective_id] = array(
806  "id" => $objective_id,
807  "title" => ilCourseObjective::lookupObjectiveTitle($objective_id));
808 
809  if(array_key_exists($objective_id, $lo_results))
810  {
811  $lo_result = $lo_results[$objective_id];
812  $tmp[$objective_id]["result_perc"] = $lo_result["result_perc"];
813  $tmp[$objective_id]["limit_perc"] = $lo_result["limit_perc"];
814  $tmp[$objective_id]["status"] = $lo_result["status"];
815  $tmp[$objective_id]["type"] = $lo_result["type"];
816  }
817  }
818 
819  // order
820  foreach($coll_objtv as $objtv_id)
821  {
822  $references[$ref_id]["objectives"][] = $tmp[$objtv_id];
823  }
824  }
825  }
826  }
827  }
828  }
829 
830  $references = ilUtil::sortArray($references, "title", "ASC");
831 
832  return $references;
833  }
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 lookupObjectiveTitle($a_objective_id)
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
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
$ref_id
Definition: sahs_server.php:39
getObjectsStatusForUser($a_user_id, array $obj_refs)
static _isActivated($a_obj_id, &$a_visible_flag=null, $a_mind_member_view=true)
Is activated?
parseLOUserResults($a_course_obj_id, $a_user_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getExportMaterial()

ilPortfolioPageGUI::getExportMaterial ( )

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

References $export_material.

871  {
872  return $this->export_material;
873  }

◆ getJsOnloadCode()

ilPortfolioPageGUI::getJsOnloadCode ( )

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

References $js_onload_code.

187  {
188  return $this->js_onload_code;
189  }

◆ getPageContentUserId()

ilPortfolioPageGUI::getPageContentUserId (   $a_user_id)
protected

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

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

60  {
61  // user id from content-xml
62  return $a_user_id;
63  }
+ Here is the caller graph for this function:

◆ getParentType()

ilPortfolioPageGUI::getParentType ( )

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

Referenced by __construct().

55  {
56  return "prtf";
57  }
+ Here is the caller graph for this function:

◆ getTabs()

ilPortfolioPageGUI::getTabs (   $a_activate = "")

Set all tabs.

Parameters

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

149  {
150  if(!$this->embedded)
151  {
152  parent::getTabs($a_activate);
153  }
154  }

◆ isMyCoursesActive()

ilPortfolioPageGUI::isMyCoursesActive ( )
protected

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

Referenced by renderMyCourses(), and renderMyCoursesTeaser().

594  {
595  $prfa_set = new ilSetting("prfa");
596  return (bool)$prfa_set->get("mycrs", true);
597  }
ILIAS Setting Class.
+ Here is the caller graph for this function:

◆ parseLOUserResults()

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

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

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

Referenced by getCoursesOfUser().

837  {
838  $res = array();
839 
840  include_once "Modules/Course/classes/Objectives/class.ilLOUserResults.php";
841  $lur = new ilLOUserResults($a_course_obj_id, $a_user_id);
842  foreach($lur->getCourseResultsForUserPresentation() as $objective_id => $types)
843  {
844  // show either initial or qualified for objective
845  if(isset($types[ilLOUserResults::TYPE_INITIAL]))
846  {
847  $initial_status = $types[ilLOUserResults::TYPE_INITIAL]["status"];
848  }
849 
850  // qualified test has priority
851  if(isset($types[ilLOUserResults::TYPE_QUALIFIED]))
852  {
855  }
856  else
857  {
860  }
861 
862  $result["initial_status"] = $initial_status;
863 
864  $res[$objective_id] = $result;
865  }
866 
867  return $res;
868  }
$result
+ Here is the caller graph for this function:

◆ postOutputProcessing()

ilPortfolioPageGUI::postOutputProcessing (   $a_output)

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

References renderPageElement().

192  {
193  $parts = array(
194  "Profile" => array("0-9", "a-z", "0-9a-z_;\W"), // user, mode, fields
195  "Verification" => array("0-9", "a-z", "0-9"), // user, type, id
196  "Blog" => array("0-9", "0-9", "0-9;\W"), // user, blog id, posting ids
197  "BlogTeaser" => array("0-9", "0-9", "0-9;\W"), // user, blog id, posting ids
198  "Skills" => array("0-9", "0-9"), // user, skill id
199  "SkillsTeaser" => array("0-9", "0-9"), // user, skill id
200  "ConsultationHours" => array("0-9", "a-z", "0-9;\W"), // user, mode, group ids
201  "ConsultationHoursTeaser" => array("0-9", "a-z", "0-9;\W"), // user, mode, group ids
202  "MyCourses" => array("0-9"), // user
203  "MyCoursesTeaser" => array("0-9") // user
204  );
205 
206  foreach($parts as $type => $def)
207  {
208  $def = implode("]+)#([", $def);
209  if(preg_match_all("/".$this->pl_start.$type."#([".$def.
210  "]+)".$this->pl_end."/", $a_output, $blocks))
211  {
212  foreach($blocks[0] as $idx => $block)
213  {
214  switch($type)
215  {
216  case "Profile":
217  case "Blog":
218  case "BlogTeaser":
219  case "Skills":
220  case "SkillsTeaser":
221  case "ConsultationHours":
222  case "ConsultationHoursTeaser":
223  case "MyCourses":
224  case "MyCoursesTeaser":
225  $subs = null;
226  if(trim($blocks[3][$idx]))
227  {
228  foreach(explode(";", $blocks[3][$idx]) as $sub)
229  {
230  if(trim($sub))
231  {
232  $subs[] = trim($sub);
233  }
234  }
235  }
236  $snippet = $this->{"render".$type}($blocks[1][$idx],
237  $blocks[2][$idx], $subs);
238  break;
239 
240  default:
241  $snippet = $this->{"render".$type}($blocks[1][$idx],
242  $blocks[2][$idx], $blocks[3][$idx]);
243  break;
244  }
245 
246  $snippet = $this->renderPageElement($type, $snippet);
247  $a_output = str_replace($block, $snippet, $a_output);
248  }
249  }
250  }
251 
252  return $a_output;
253  }
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 395 of file class.ilPortfolioPageGUI.php.

References $ilCtrl, ilObject2\_lookupTitle(), ilPageObjectGUI\getOutputMode(), IL_PAGE_PREVIEW, and ilObject2GUI\WORKSPACE_OBJECT_ID.

Referenced by showPage().

396  {
397  global $ilCtrl;
398 
399  // not used
400  // $user_id = $this->getPageContentUserId($a_user_id);
401 
402  // full blog (separate tab/page)
403  if(!$a_posting_ids)
404  {
405  include_once "Modules/Blog/classes/class.ilObjBlogGUI.php";
406  $blog = new ilObjBlogGUI($a_blog_id, ilObject2GUI::WORKSPACE_OBJECT_ID);
407  $blog->disableNotes(!$this->enable_comments);
408  $blog->setContentStyleSheet();
409 
410  if($this->getOutputMode() != "offline")
411  {
412  return $ilCtrl->getHTML($blog);
413  }
414  else
415  {
416 
417  }
418  }
419  // embedded postings
420  else
421  {
422  $html = array();
423 
424  include_once "Modules/Blog/classes/class.ilObjBlog.php";
425  $html[] = ilObjBlog::_lookupTitle($a_blog_id);
426 
427  include_once "Modules/Blog/classes/class.ilBlogPostingGUI.php";
428  foreach($a_posting_ids as $post)
429  {
430  $page = new ilBlogPostingGUI(0, null, $post);
431  if($this->getOutputMode() != "offline")
432  {
433  $page->setOutputMode(IL_PAGE_PREVIEW);
434  }
435  else
436  {
437  $page->setOutputMode("offline");
438  }
439  $html[] = $page->showPage();
440  }
441 
442  return implode("\n", $html);
443  }
444  }
const IL_PAGE_PREVIEW
static _lookupTitle($a_id)
Class ilBlogPosting GUI class.
global $ilCtrl
Definition: ilias.php:18
Class ilObjBlogGUI.
+ 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 446 of file class.ilPortfolioPageGUI.php.

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

447  {
448  // not used
449  // $user_id = $this->getPageContentUserId($a_user_id);
450 
451  $postings = "";
452  if($a_posting_ids)
453  {
454  $postings = array("<ul>");
455  include_once "Modules/Blog/classes/class.ilBlogPosting.php";
456  foreach($a_posting_ids as $post)
457  {
458  $post = new ilBlogPosting($post);
459  $postings[] = "<li>".$post->getTitle()." - ".
460  ilDatePresentation::formatDate($post->getCreated())."</li>";
461  }
462  $postings[] = "</ul>";
463  $postings = implode("\n", $postings);
464  }
465 
466  return $this->renderTeaser("blog", $this->lng->txt("obj_blog").' "'.
467  ilObject::_lookupTitle($a_blog_id).'"', $postings);
468  }
Class ilBlogPosting.
static _lookupTitle($a_id)
lookup object title
static formatDate(ilDateTime $date)
Format a date public.
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 538 of file class.ilPortfolioPageGUI.php.

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

539  {
540  global $ilUser;
541 
542  if($this->getOutputMode() == "preview")
543  {
544  return $this->renderConsultationHoursTeaser($a_user_id, $a_mode, $a_group_ids);
545  }
546 
547  if($this->getOutputMode() == "offline")
548  {
549  return;
550  }
551 
552  $user_id = $this->getPageContentUserId($a_user_id);
553 
554  // only if not owner
555  if($ilUser->getId() != $user_id)
556  {
557  $_GET["bkid"] = $user_id;
558  }
559 
560  if($a_mode != "manual")
561  {
562  $a_group_ids = null;
563  }
564 
565  include_once('./Services/Calendar/classes/class.ilCalendarCategories.php');
566  ilCalendarCategories::_getInstance()->setCHUserId($user_id);
568 
569  if(!$_REQUEST["seed"])
570  {
571  $seed = new ilDate(time(), IL_CAL_UNIX);
572  }
573  else
574  {
575  $seed = new ilDate($_REQUEST["seed"], IL_CAL_DATE);
576  }
577 
578  include_once('./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
579  $month_gui = new ilCalendarMonthGUI($seed);
580 
581  // custom schedule filter: handle booking group ids
582  include_once('./Services/Calendar/classes/class.ilCalendarScheduleFilterBookings.php');
583  $filter = new ilCalendarScheduleFilterBookings($user_id, $a_group_ids);
584  $month_gui->addScheduleFilter($filter);
585 
586  $this->tpl->addCss(ilUtil::getStyleSheetLocation('filesystem','delos.css','Services/Calendar'));
587 
588  $this->lng->loadLanguageModule("dateplaner");
589  return '<h3>'.$this->lng->txt("app_consultation_hours").'</h3>'.
590  $this->ctrl->getHTML($month_gui);
591  }
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.
static _getInstance($a_usr_id=0)
get singleton instance
const IL_CAL_DATE
global $ilUser
Definition: imgupload.php:15
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7
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 510 of file class.ilPortfolioPageGUI.php.

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

Referenced by renderConsultationHours().

511  {
512  // not used
513  // $user_id = $this->getPageContentUserId($a_user_id);
514 
515  if($a_mode == "auto")
516  {
517  $mode = $this->lng->txt("cont_cach_mode_automatic");
518  $groups = null;
519  }
520  else
521  {
522  $mode = $this->lng->txt("cont_cach_mode_manual");
523 
524  include_once "Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroups.php";
525  $groups = array();
526  foreach($a_group_ids as $grp_id)
527  {
528  $groups[] = ilConsultationHourGroups::lookupTitle($grp_id);
529  }
530  $groups = " (".implode(", ", $groups).")";
531  }
532 
533  $this->lng->loadLanguageModule("dateplaner");
534  return $this->renderTeaser("consultation_hours",
535  $this->lng->txt("app_consultation_hours"), $mode.$groups);
536  }
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)
protected

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

References $data, $ilUser, ilPageObjectGUI\$tpl, ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLink\_getLink(), ilLearningProgressBaseGUI\_getStatusText(), ilContainerObjectiveGUI\buildObjectiveProgressBar(), getCoursesOfUser(), ilLOSettings\getInstanceByObjId(), ilPageObjectGUI\getOutputMode(), getPageContentUserId(), ilUtil\getTypeIconPath(), isMyCoursesActive(), and renderMyCoursesTeaser().

613  {
614  global $ilAccess, $ilUser;
615 
616  if($this->getOutputMode() == "preview")
617  {
618  return $this->renderMyCoursesTeaser($a_user_id);
619  }
620 
621  if(!$this->isMyCoursesActive())
622  {
623  return;
624  }
625 
626  $img_path = null;
627  if($this->getOutputMode() == "offline")
628  {
629  $this->export_material["images"][] = "./templates/default/images/icon_crs.svg";
630  $this->export_material["images"][] = "./templates/default/images/icon_lobj.svg";
631  $this->export_material["images"][] = "./templates/default/images/scorm/complete.svg";
632  $this->export_material["images"][] = "./templates/default/images/scorm/not_attempted.svg";
633  $this->export_material["images"][] = "./templates/default/images/scorm/failed.svg";
634  $this->export_material["images"][] = "./templates/default/images/scorm/incomplete.svg";
635 
636  $img_path = "images/";
637  }
638 
639  $user_id = $this->getPageContentUserId($a_user_id);
640 
641  $data = $this->getCoursesOfUser($user_id);
642  if(sizeof($data))
643  {
644  $tpl = new ilTemplate("tpl.pc_my_courses.html", true, true, "Modules/Portfolio");
645  $tpl->setVariable("TITLE", $this->lng->txt("prtf_page_element_my_courses_title"));
646  $tpl->setVariable("INFO", $this->lng->txt("prtf_page_element_my_courses_info")); // #14464
647 
648  include_once("./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php");
649  $this->lng->loadLanguageModule("trac");
650  $this->lng->loadLanguageModule("crs");
651 
652  include_once("./Services/Container/classes/class.ilContainerObjectiveGUI.php");
653  include_once("./Services/Link/classes/class.ilLink.php");
654 
655  foreach($data as $course)
656  {
657  if(isset($course["lp_status"]))
658  {
659  $lp_icon = ilLearningProgressBaseGUI::_getImagePathForStatus($course["lp_status"]);
660  $lp_alt = ilLearningProgressBaseGUI::_getStatusText($course["lp_status"]);
661 
662  if($img_path)
663  {
664  $lp_icon = $img_path.basename($lp_icon);
665  }
666 
667  $tpl->setCurrentBlock("lp_bl");
668  $tpl->setVariable("LP_ICON_URL", $lp_icon);
669  $tpl->setVariable("LP_ICON_ALT", $lp_alt);
670  $tpl->parseCurrentBlock();
671  }
672 
673  if(isset($course["objectives"]))
674  {
675  include_once './Modules/Course/classes/Objectives/class.ilLOSettings.php';
676  $loc_settings = ilLOSettings::getInstanceByObjId($course["obj_id"]);
677  $has_initial_test = (bool)$loc_settings->getInitialTest();
678 
679  foreach($course["objectives"] as $objtv)
680  {
681  $objtv_icon = ilUtil::getTypeIconPath("lobj", $objtv["id"]);
682  if($img_path)
683  {
684  $objtv_icon = $img_path.basename($objtv_icon);
685  }
686 
687  $tpl->setCurrentBlock("objective_bl");
688  $tpl->setVariable("OBJECTIVE_TITLE", $objtv["title"]);
689  $tpl->setVariable("OBJTV_ICON_URL", $objtv_icon);
690  $tpl->setVariable("OBJTV_ICON_ALT", $this->lng->txt("crs_objectives"));
691 
692  if($objtv["type"])
693  {
694  $tpl->setVariable("LP_OBJTV_PROGRESS",
695  ilContainerObjectiveGUI::buildObjectiveProgressBar($has_initial_test, $objtv["id"], $objtv, true));
696  }
697 
698  $tpl->parseCurrentBlock();
699  }
700  }
701 
702  // always check against current user
703  if($ilAccess->checkAccessOfUser($ilUser->getId(), "read", "", $course["ref_id"], "crs") ||
704  ($ilAccess->checkAccessOfUser($ilUser->getId(), "visible", "", $course["ref_id"], "crs") &&
705  $ilAccess->checkAccessOfUser($ilUser->getId(), "join", "", $course["ref_id"], "crs")))
706  {
707  $tpl->setCurrentBlock("course_link_bl");
708  $tpl->setVariable("COURSE_LINK_TITLE", $course["title"]);
709  $tpl->setVariable("COURSE_LINK_URL", ilLink::_getLink($course["ref_id"]));
710  $tpl->parseCurrentBlock();
711  }
712  else
713  {
714  $tpl->setCurrentBlock("course_nolink_bl");
715  $tpl->setVariable("COURSE_NOLINK_TITLE", $course["title"]);
716  $tpl->parseCurrentBlock();
717  }
718 
719  $crs_icon = ilUtil::getTypeIconPath("crs", $course["obj_id"]);
720  if($img_path)
721  {
722  $crs_icon = $img_path.basename($crs_icon);
723  }
724 
725  $tpl->setCurrentBlock("course_bl");
726  $tpl->setVariable("CRS_ICON_URL", $crs_icon);
727  $tpl->setVariable("CRS_ICON_ALT", $this->lng->txt("obj_crs"));
728  $tpl->parseCurrentBlock();
729  }
730 
731  return $tpl->get();
732  }
733  }
static getInstanceByObjId($a_obj_id)
get singleton instance
static buildObjectiveProgressBar($a_has_initial_test, $a_objective_id, array $a_lo_result, $a_list_mode=false)
_getImagePathForStatus($a_status)
Get image path for status.
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...
_getStatusText($a_status)
Get status alt text.
special template class to simplify handling of ITX/PEAR
global $ilUser
Definition: imgupload.php:15
+ Here is the call graph for this function:

◆ renderMyCoursesTeaser()

ilPortfolioPageGUI::renderMyCoursesTeaser (   $a_user_id)
protected

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

References isMyCoursesActive(), and renderTeaser().

Referenced by renderMyCourses().

600  {
601  // not used
602  // $user_id = $this->getPageContentUserId($a_user_id);
603 
604  $title = $this->isMyCoursesActive()
605  ? "my_courses"
606  : "my_courses_inactive";
607 
608  return $this->renderTeaser($title,
609  $this->lng->txt("prtf_page_element_my_courses_title"));
610  }
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 255 of file class.ilPortfolioPageGUI.php.

Referenced by postOutputProcessing().

256  {
257  return trim($a_html);
258  }
+ Here is the caller graph for this function:

◆ renderProfile()

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

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

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

275  {
276  global $ilCtrl;
277 
278  $user_id = $this->getPageContentUserId($a_user_id);
279 
280  if($this->getOutputMode() == "offline")
281  {
282  // profile picture is done in ilPortfolioHTMLExport
283 
284  $this->export_material["js"][] = "http://maps.google.com/maps/api/js?sensor=false";
285  $this->export_material["js"][] = "./Services/Maps/js/ServiceGoogleMaps.js";
286  $this->export_material["js"][] = "./Services/Maps/js/OpenLayers.js";
287  $this->export_material["js"][] = "./Services/Maps/js/ServiceOpenLayers.js";
288  }
289 
290  include_once("./Services/User/classes/class.ilPublicUserProfileGUI.php");
291  $pub_profile = new ilPublicUserProfileGUI($user_id);
292  $pub_profile->setEmbedded(true, ($this->getOutputMode() == "offline"));
293 
294  // full circle: additional was set in the original public user profile call
295  $pub_profile->setAdditional($this->getAdditional());
296 
297  if($a_type == "manual" && sizeof($a_fields))
298  {
299  $prefs = array();
300  foreach($a_fields as $field)
301  {
302  $field = trim($field);
303  if($field)
304  {
305  $prefs["public_".$field] = "y";
306  }
307  }
308 
309  $pub_profile->setCustomPrefs($prefs);
310  }
311 
312  if($this->getOutputMode() != "offline")
313  {
314  return $ilCtrl->getHTML($pub_profile);
315  }
316  else
317  {
318  return $pub_profile->getEmbeddable();
319  }
320  }
getAdditional()
Get Additonal Information.
global $ilCtrl
Definition: ilias.php:18
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 470 of file class.ilPortfolioPageGUI.php.

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

471  {
472  if($this->getOutputMode() == "preview")
473  {
474  return $this->renderSkillsTeaser($a_user_id, $a_skills_id);
475  }
476 
477  $user_id = $this->getPageContentUserId($a_user_id);
478 
479  include_once "Services/Skill/classes/class.ilPersonalSkillsGUI.php";
480  $gui = new ilPersonalSkillsGUI();
481  if($this->getOutputMode() == "offline")
482  {
483  $gui->setOfflineMode("./files/");
484  }
485  $html = $gui->getSkillHTML($a_skills_id, $user_id);
486 
487  if($this->getOutputMode() == "offline")
488  {
489  $js = $gui->getTooltipsJs();
490  if(sizeof($js))
491  {
492  $this->js_onload_code = array_merge($this->js_onload_code, $js);
493  }
494  }
495 
496  return $html;
497  }
Personal skills GUI class.
renderSkillsTeaser($a_user_id, $a_skills_id)
+ Here is the call graph for this function:

◆ renderSkillsTeaser()

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

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

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

Referenced by renderSkills().

500  {
501  // not used
502  // $user_id = $this->getPageContentUserId($a_user_id);
503 
504  include_once "Services/Skill/classes/class.ilSkillTreeNode.php";
505 
506  return $this->renderTeaser("skills", $this->lng->txt("skills").' "'.
507  ilSkillTreeNode::_lookupTitle($a_skills_id).'"');
508  }
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 260 of file class.ilPortfolioPageGUI.php.

References $options.

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

261  {
262  $options = "";
263  if($a_options)
264  {
265  $options = '<div class="il_Footer">'.$this->lng->txt("prtf_page_element_teaser_settings").
266  ": ".$a_options.'</div>';
267  }
268 
269  return '<div style="margin:5px" class="ilBox"><h3>'.$a_title.'</h3>'.
270  '<div class="il_Description_no_margin">'.$this->lng->txt("prtf_page_element_teaser_".$a_type).'</div>'.
271  $options.'</div>';
272  }
if(!is_array($argv)) $options
+ Here is the caller graph for this function:

◆ renderVerification()

ilPortfolioPageGUI::renderVerification (   $a_user_id,
  $a_type,
  $a_id 
)
protected

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

References $file, ilPageObjectGUI\getOutputMode(), and ilObject2GUI\WORKSPACE_OBJECT_ID.

323  {
324  global $objDefinition;
325 
326  // not used
327  // $user_id = $this->getPageContentUserId($a_user_id);
328 
329  $class = "ilObj".$objDefinition->getClassName($a_type)."GUI";
330  include_once $objDefinition->getLocation($a_type)."/class.".$class.".php";
331  $verification = new $class($a_id, ilObject2GUI::WORKSPACE_OBJECT_ID);
332 
333  if($this->getOutputMode() != "offline")
334  {
335  // direct download link
336  $this->ctrl->setParameter($this, "dlid", $a_id);
337  $url = $this->ctrl->getLinkTarget($this, "dl".$a_type);
338  $this->ctrl->setParameter($this, "dlid", "");
339  }
340  else
341  {
342  $file = $verification->object->getFilePath();
343  $url = "files/".basename($file);
344 
345  $this->export_material["files"][] = $file;
346  }
347 
348  return $verification->render(true, $url);
349  }
print $file
+ Here is the call graph for this function:

◆ setAdditional()

ilPortfolioPageGUI::setAdditional (   $a_additional)

Set Additonal Information.

Parameters
array$a_additionalAdditonal Information

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

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

172  {
173  $this->additional = $a_additional;
174  }
+ 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 161 of file class.ilPortfolioPageGUI.php.

162  {
163  $this->embedded = (bool)$a_value;
164  }

◆ showPage()

ilPortfolioPageGUI::showPage ( )

Show page.

Returns
string page output

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

References $ilUser, ilPageObjectGUI\getPageObject(), renderBlog(), ilPageObjectGUI\setTemplateOutput(), and ilPortfolioPage\TYPE_BLOG.

120  {
121  global $ilUser;
122 
123  if(!$this->getPageObject())
124  {
125  return;
126  }
127 
128  switch($this->getPageObject()->getType())
129  {
131  return $this->renderBlog($ilUser->getId(), (int)$this->getPageObject()->getTitle());
132 
133  default:
134  $this->setTemplateOutput(false);
135  // $this->setPresentationTitle($this->getPageObject()->getTitle());
136  $output = parent::showPage();
137 
138  return $output;
139  }
140  }
renderBlog($a_user_id, $a_blog_id, array $a_posting_ids=null)
getPageObject()
Get Page Object.
setTemplateOutput($a_output=true)
global $ilUser
Definition: imgupload.php:15
+ Here is the call graph for this function:

Field Documentation

◆ $additional

ilPortfolioPageGUI::$additional = array()
protected

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

Referenced by getAdditional().

◆ $export_material

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

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

Referenced by getExportMaterial().

◆ $js_onload_code

ilPortfolioPageGUI::$js_onload_code = array()
protected

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

Referenced by getJsOnloadCode().

◆ EMBEDDED_NO_OUTPUT

const ilPortfolioPageGUI::EMBEDDED_NO_OUTPUT = -99

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

Referenced by ilObjPortfolioBaseGUI\handlePageCall().


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