4 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
28 function __construct($a_portfolio_id, $a_id = 0, $a_old_nr = 0, $a_enable_comments =
true)
32 $this->portfolio_id = (int)$a_portfolio_id;
33 $this->enable_comments = (bool)$a_enable_comments;
35 parent::__construct($this->
getParentType(), $a_id, $a_old_nr);
39 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
41 $tpl->setCurrentBlock(
"SyntaxStyle");
42 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
44 $tpl->parseCurrentBlock();
46 $tpl->setCurrentBlock(
"ContentStyle");
47 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
49 $tpl->parseCurrentBlock();
70 $next_class = $this->ctrl->getNextClass($this);
71 $cmd = $this->ctrl->getCmd();
77 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
80 $blog_node_id = $wsp_tree->lookupNodeId($blog_obj_id);
82 include_once
"Modules/Blog/classes/class.ilObjBlogGUI.php";
84 $blog_gui->disableNotes(!$this->enable_comments);
85 return $ilCtrl->forwardCommand($blog_gui);
87 case "ilcalendarmonthgui":
91 include_once(
'./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
93 return $ilCtrl->forwardCommand($month_gui);
98 $ilCtrl->setParameter($this,
"cmd",
"preview");
99 return self::EMBEDDED_NO_OUTPUT;
102 case "ilpageobjectgui":
103 die(
"Deprecated. ilPortfolioPage gui forwarding to ilpageobject");
108 return parent::executeCommand();
134 $output = parent::showPage();
150 parent::getTabs($a_activate);
161 $this->embedded = (bool)$a_value;
171 $this->additional = $a_additional;
192 "Profile" => array(
"0-9",
"a-z",
"0-9a-z_;\W"),
193 "Verification" => array(
"0-9",
"a-z",
"0-9"),
194 "Blog" => array(
"0-9",
"0-9",
"0-9;\W"),
195 "BlogTeaser" => array(
"0-9",
"0-9",
"0-9;\W"),
196 "Skills" => array(
"0-9",
"0-9"),
197 "SkillsTeaser" => array(
"0-9",
"0-9"),
198 "ConsultationHours" => array(
"0-9",
"a-z",
"0-9;\W"),
199 "ConsultationHoursTeaser" => array(
"0-9",
"a-z",
"0-9;\W")
202 foreach($parts as $type => $def)
204 $def = implode(
"]+)#([", $def);
205 if(preg_match_all(
"/".$this->pl_start.$type.
"#([".$def.
206 "]+)".$this->pl_end.
"/", $a_output, $blocks))
208 foreach($blocks[0] as $idx => $block)
217 case "ConsultationHours":
218 case "ConsultationHoursTeaser":
220 if(trim($blocks[3][$idx]))
222 foreach(explode(
";", $blocks[3][$idx]) as $sub)
226 $subs[] = trim($sub);
230 $snippet = $this->{
"render".$type}($blocks[1][$idx],
231 $blocks[2][$idx], $subs);
235 $snippet = $this->{
"render".$type}($blocks[1][$idx],
236 $blocks[2][$idx], $blocks[3][$idx]);
241 $a_output = str_replace($block, $snippet, $a_output);
251 return trim($a_html);
259 $options =
'<div class="il_Footer">'.$this->lng->txt(
"prtf_page_element_teaser_settings").
260 ": ".$a_options.
'</div>';
263 return '<div style="margin:5px" class="ilBox"><h3>'.$a_title.
'</h3>'.
264 '<div class="il_Description_no_margin">'.$this->lng->txt(
"prtf_page_element_teaser_".$a_type).
'</div>'.
268 protected function renderProfile($a_user_id, $a_type, array $a_fields = null)
274 include_once(
"./Services/User/classes/class.ilPublicUserProfileGUI.php");
276 $pub_profile->setEmbedded(
true, ($this->
getOutputMode() ==
"offline"));
281 if($a_type ==
"manual" &&
sizeof($a_fields))
284 foreach($a_fields as $field)
286 $field = trim($field);
289 $prefs[
"public_".$field] =
"y";
293 $pub_profile->setCustomPrefs($prefs);
298 return $ilCtrl->getHTML($pub_profile);
302 return $pub_profile->getEmbeddable();
308 global $objDefinition;
313 $class =
"ilObj".$objDefinition->getClassName($a_type).
"GUI";
314 include_once $objDefinition->getLocation($a_type).
"/class.".$class.
".php";
318 $this->ctrl->setParameter($this,
"dlid", $a_id);
319 $url = $this->ctrl->getLinkTarget($this,
"dl".$a_type);
320 $this->ctrl->setParameter($this,
"dlid",
"");
322 return $verification->render(
true, $url);
330 include_once
"Modules/Test/classes/class.ilObjTestVerificationGUI.php";
332 $verification->downloadFromPortfolioPage($this->
getPageObject());
341 include_once
"Modules/Exercise/classes/class.ilObjExerciseVerificationGUI.php";
343 $verification->downloadFromPortfolioPage($this->
getPageObject());
352 include_once
"Modules/Course/classes/Verification/class.ilObjCourseVerificationGUI.php";
354 $verification->downloadFromPortfolioPage($this->
getPageObject());
363 include_once
"Modules/ScormAicc/classes/Verification/class.ilObjSCORMVerificationGUI.php";
365 $verification->downloadFromPortfolioPage($this->
getPageObject());
369 protected function renderBlog($a_user_id, $a_blog_id, array $a_posting_ids = null)
379 include_once
"Modules/Blog/classes/class.ilObjBlogGUI.php";
381 $blog->disableNotes(!$this->enable_comments);
382 $blog->setContentStyleSheet();
386 return $ilCtrl->getHTML($blog);
398 include_once
"Modules/Blog/classes/class.ilObjBlog.php";
401 include_once
"Modules/Blog/classes/class.ilBlogPostingGUI.php";
402 foreach($a_posting_ids as $post)
411 $page->setOutputMode(
"offline");
413 $html[] = $page->showPage();
416 return implode(
"\n", $html);
428 $postings = array(
"<ul>");
429 include_once
"Modules/Blog/classes/class.ilBlogPosting.php";
430 foreach($a_posting_ids as $post)
433 $postings[] =
"<li>".$post->getTitle().
" - ".
436 $postings[] =
"</ul>";
437 $postings = implode(
"\n", $postings);
440 return $this->
renderTeaser(
"blog", $this->lng->txt(
"obj_blog").
' "'.
453 include_once
"Services/Skill/classes/class.ilPersonalSkillsGUI.php";
457 $gui->setOfflineMode(
"./files/");
459 $html = $gui->getSkillHTML($a_skills_id, $user_id);
463 $js = $gui->getTooltipsJs();
466 $this->js_onload_code = array_merge($this->js_onload_code, $js);
478 include_once
"Services/Skill/classes/class.ilSkillTreeNode.php";
480 return $this->
renderTeaser(
"skills", $this->lng->txt(
"skills").
' "'.
489 if($a_mode ==
"auto")
491 $mode = $this->lng->txt(
"cont_cach_mode_automatic");
496 $mode = $this->lng->txt(
"cont_cach_mode_manual");
498 include_once
"Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroups.php";
500 foreach($a_group_ids as $grp_id)
504 $groups =
" (".implode(
", ", $groups).
")";
507 $this->lng->loadLanguageModule(
"dateplaner");
509 $this->lng->txt(
"app_consultation_hours"), $mode.$groups);
529 if($ilUser->getId() != $user_id)
531 $_GET[
"bkid"] = $user_id;
534 if($a_mode !=
"manual")
539 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
552 include_once(
'./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
556 include_once(
'./Services/Calendar/classes/class.ilCalendarScheduleFilterBookings.php');
558 $month_gui->addScheduleFilter($filter);
562 $this->lng->loadLanguageModule(
"dateplaner");
563 return '<h3>'.$this->lng->txt(
"app_consultation_hours").
'</h3>'.
564 $this->ctrl->getHTML($month_gui);
renderBlog($a_user_id, $a_blog_id, array $a_posting_ids=null)
__construct($a_portfolio_id, $a_id=0, $a_old_nr=0, $a_enable_comments=true)
Constructor.
getPageObject()
Get Page Object.
Calendar schedule filter for consultation hour bookings.
static _lookupTitle($a_id)
setTemplateOutput($a_output=true)
static lookupTitle($a_group_id)
Lookup group title.
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
getAdditional()
Get Additonal Information.
Class ilBlogPosting GUI class.
setEmbedded($a_value)
Set embedded mode: will suppress tabs.
static _lookupTitle($a_id)
lookup object title
Portfolio page gui class.
getPageContentUserId($a_user_id)
getSyntaxStylePath()
get syntax style path
Tree handler for personal workspace.
postOutputProcessing($a_output)
Personal skills GUI class.
GUI class for course verification.
GUI class for public user profile presentation.
if(!is_array($argv)) $options
getTabs($a_activate="")
Set all tabs.
GUI class for exercise verification.
renderSkills($a_user_id, $a_skills_id)
renderBlogTeaser($a_user_id, $a_blog_id, array $a_posting_ids=null)
static formatDate(ilDateTime $date)
Format a date public.
renderSkillsTeaser($a_user_id, $a_skills_id)
setPresentationTitle($a_title="")
const MODE_PORTFOLIO_CONSULTATION
static _getInstance($a_usr_id=0)
get singleton instance
const WORKSPACE_OBJECT_ID
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
GUI class for test verification.
getContentStylePath($a_style_id)
get content style path
setAdditional($a_additional)
Set Additonal Information.
renderTeaser($a_type, $a_title, $a_options=null)
renderVerification($a_user_id, $a_type, $a_id)
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
renderPageElement($a_type, $a_html)
renderProfile($a_user_id, $a_type, array $a_fields=null)
& executeCommand()
execute command
GUI class for scorm verification.
renderConsultationHoursTeaser($a_user_id, $a_mode, $a_group_ids)
renderConsultationHours($a_user_id, $a_mode, $a_group_ids)