4 include_once(
'./Modules/Portfolio/classes/class.ilObjPortfolioBaseGUI.php');
31 $this->lng = $DIC->language();
32 $this->help = $DIC[
"ilHelp"];
34 $this->access = $DIC->access();
35 $this->
user = $DIC->user();
36 $this->ctrl = $DIC->ctrl();
37 parent::__construct($a_id, self::PORTFOLIO_OBJECT_ID, 0);
39 $this->ctrl->saveParameter($this,
"exc_back_ref_id");
49 if ($a_perm ==
"create") {
55 return $this->access_handler->checkAccess($a_perm,
"", $a_node_id);
71 $next_class = $this->ctrl->getNextClass($this);
72 $cmd = $this->ctrl->getCmd(
"view");
82 switch ($next_class) {
83 case "ilworkspaceaccessgui":
86 $this->tabs_gui->activateTab(
"share");
88 if ($this->access_handler->getPermissions($this->object->getId()) &&
89 !$this->
object->isOnline()) {
93 $this->tpl->setPermanentLink(
"prtf", $this->
object->getId());
95 include_once(
'./Services/PersonalWorkspace/classes/class.ilWorkspaceAccessGUI.php');
97 $this->ctrl->forwardCommand($wspacc);
101 case 'ilportfoliopagegui':
106 include_once
"Services/Form/classes/class.ilFileInputGUI.php";
116 case "ilobjstylesheetgui":
117 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheetGUI.php");
118 $this->ctrl->setReturn($this,
"editStyleProperties");
121 if ($cmd ==
"create" ||
$_GET[
"new_type"]==
"sty") {
122 $style_gui->setCreationMode(
true);
125 if ($cmd ==
"confirmedDelete") {
126 $this->
object->setStyleSheetId(0);
127 $this->
object->update();
130 $ret = $this->ctrl->forwardCommand($style_gui);
132 if ($cmd ==
"save" || $cmd ==
"copyStyle" || $cmd ==
"importStyle") {
134 $this->
object->setStyleSheetId($style_id);
135 $this->
object->update();
136 $this->ctrl->redirectByClass(
"ilobjstylesheetgui",
"edit");
140 case "ilportfolioexercisegui":
141 $this->ctrl->setReturn($this,
"view");
142 include_once
"Modules/Portfolio/classes/class.ilPortfolioExerciseGUI.php";
144 $this->ctrl->forwardCommand($gui);
149 if ($cmd !=
"preview") {
164 $ilHelp->setScreenIdComponent(
"prtf");
167 $this->tabs_gui->addTab(
169 $this->lng->txt(
"content"),
170 $this->ctrl->getLinkTarget($this,
"view")
173 $this->tabs_gui->addTab(
175 $this->lng->txt(
"settings"),
176 $this->ctrl->getLinkTarget($this,
"edit")
179 $this->tabs_gui->addNonTabbedLink(
181 $this->lng->txt(
"user_profile_preview"),
182 $this->ctrl->getLinkTarget($this,
"preview")
185 $this->lng->loadLanguageModule(
"wsp");
186 $this->tabs_gui->addTab(
188 $this->lng->txt(
"wsp_permissions"),
189 $this->ctrl->getLinkTargetByClass(
"ilworkspaceaccessgui",
"share")
196 if (!$this->creation_mode) {
197 $this->ctrl->setParameter($this,
"prt_id", $this->
object->getId());
200 parent::addLocatorItems();
202 $this->tpl->setLocator();
209 $title = $this->lng->txt(
"portfolio");
211 $title .=
": " . $this->
object->getTitle();
213 $this->tpl->setTitle(
$title);
214 $this->tpl->setTitleIcon(
216 $this->lng->txt(
"portfolio")
220 !$this->
object->isOnline()) {
221 $this->tpl->setAlertProperties(
array(
222 array(
"alert" =>
true,
223 "property" => $this->lng->txt(
"status"),
224 "value" => $this->lng->txt(
"offline"))
243 $this->ctrl->setParameter($this,
"new_type", $this->
getType());
245 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
247 $form->setFormAction($this->ctrl->getFormAction($this));
253 $ti->setRequired(
true);
265 $form->addItem($main);
267 $opt_scratch =
new ilRadioOption($this->lng->txt(
"prtf_creation_mode_scratch"),
"mode_scratch");
268 $main->addOption($opt_scratch);
274 $type->setRequired(
true);
275 $opt_scratch->addSubItem(
$type);
277 $type_page =
new ilRadioOption($this->lng->txt(
"page"),
"page");
278 $type->addOption($type_page);
284 $tf->setRequired(
true);
285 $type_page->addSubItem($tf);
288 include_once
"Services/COPage/Layout/classes/class.ilPageLayout.php";
292 foreach ($templates as $templ) {
293 $templ->readObject();
294 $options[$templ->getId()] = $templ->getTitle();
297 $use_template =
new ilSelectInputGUI($this->lng->txt(
"prtf_use_page_layout"),
"tmpl");
299 $use_template->setOptions(
$options);
300 $type_page->addSubItem($use_template);
306 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
308 $root =
$tree->readRootId();
310 $root =
$tree->getNodeData($root);
311 foreach (
$tree->getSubTree($root) as $node) {
312 if ($node[
"type"] ==
"blog") {
313 $options[$node[
"obj_id"]] = $node[
"title"];
319 $type_blog =
new ilRadioOption($this->lng->txt(
"obj_blog"),
"blog");
320 $type->addOption($type_blog);
324 $obj->setOptions(
array(
""=>$this->lng->txt(
"please_select"))+
$options);
325 $type_blog->addSubItem($obj);
328 $this->lng->loadLanguageModule(
'pd');
329 $url = $this->ctrl->getLinkTargetByClass(
"ilpersonaldesktopgui",
"jumpToWorkspace");
330 $url =
'<a href="' .
$url .
'">' . $this->lng->txt(
"pd_personal_workspace") .
'</a>';
333 $type->setValue(
"page");
340 $opt_tmpl =
new ilRadioOption($this->lng->txt(
"prtf_creation_mode_template"),
"mode_tmpl");
341 $main->addOption($opt_tmpl);
343 include_once
"Modules/Portfolio/classes/class.ilObjPortfolioTemplate.php";
345 if (!
sizeof($templates)) {
346 $opt_tmpl->setDisabled(
true);
350 $tmpl->setOptions(
array(
""=>$this->lng->txt(
"please_select"))+$templates);
351 $opt_tmpl->addSubItem($tmpl);
354 if ((
int) $_REQUEST[
"prtt_pre"]) {
355 $tmpl->setValue((
int) $_REQUEST[
"prtt_pre"]);
356 $main->setValue(
"mode_tmpl");
361 $form->setTitle($this->lng->txt(
"prtf_create_portfolio"));
362 $form->addCommandButton(
"save", $this->lng->txt(
"create"));
363 $form->addCommandButton(
"toRepository", $this->lng->txt(
"cancel"));
371 if (
$form->checkInput()) {
373 if (
$form->getInput(
"mode") ==
"mode_tmpl") {
374 $_REQUEST[
"pt"] =
$form->getInput(
"title");
379 return parent::save();
385 include_once(
"Modules/Portfolio/classes/class.ilPortfolioPage.php");
387 if (
$_POST[
"ptype"] ==
"page") {
389 $page->setTitle(
$_POST[
"fpage"]);
392 $layout_id =
$_POST[
"tmpl"];
394 include_once(
"./Services/COPage/Layout/classes/class.ilPageLayout.php");
396 $page->setXMLContent($layout_obj->getXMLContent());
400 $page->setTitle(
$_POST[
"blog"]);
405 $this->ctrl->setParameter($this,
"prt_id", $a_new_object->
getId());
406 $this->ctrl->redirect($this,
"view");
414 $exc_ref_id = (int) $_REQUEST[
"exc_id"];
416 $ilAccess->checkAccess(
"read",
"", $exc_ref_id)) {
417 include_once
"Services/Link/classes/class.ilLink.php";
421 $this->ctrl->redirectByClass(
"ilportfoliorepositorygui",
"show");
426 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
428 $form->setFormAction($this->ctrl->getFormAction($this));
434 $ti->setRequired(
true);
435 $ti->setValue($this->
object->getTitle());
449 $form->addItem($online);
453 $form->setTitle($this->lng->txt(
"prtf_edit_portfolio"));
454 $form->addCommandButton(
"update", $this->lng->txt(
"save"));
455 $form->addCommandButton(
"view", $this->lng->txt(
"cancel"));
462 $a_values[
"online"] = $this->
object->isOnline();
464 parent::getEditFormCustomValues($a_values);
469 $this->
object->setOnline($a_form->
getInput(
"online"));
476 parent::updateCustom($a_form);
494 if (!$a_portfolio_id && $this->
object) {
495 $a_portfolio_id = $this->
object->getId();
497 include_once
"Modules/Portfolio/classes/class.ilPortfolioPage.php";
499 $page->setPortfolioId($a_portfolio_id);
511 include_once(
"Modules/Portfolio/classes/class.ilPortfolioPageGUI.php");
516 $this->
object->hasPublicComments()
524 return "ilportfoliopagegui";
534 $a_tgt->addOption(
$old);
538 foreach ($all as $item) {
539 $options[$item[
"id"]] = $item[
"title"];
544 $old->addSubItem($prtf);
547 $a_tgt->addOption(
$new);
552 $tf->setRequired(
true);
553 $new->addSubItem($tf);
569 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
571 $form->setFormAction($this->ctrl->getFormAction($this));
574 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
576 $root =
$tree->readRootId();
578 $root =
$tree->getNodeData($root);
579 foreach (
$tree->getSubTree($root,
true,
"blog") as $node) {
580 $options[$node[
"obj_id"]] = $node[
"title"];
587 $radg->
setInfo($this->lng->txt(
""));
588 $radg->setValue(
"new");
589 $radg->setInfo($this->lng->txt(
""));
591 $op1 =
new ilRadioOption($this->lng->txt(
"prtf_add_new_blog"),
"new", $this->lng->txt(
"prtf_add_new_blog_info"));
592 $radg->addOption($op1);
593 $form->addItem($radg);
598 $op1->addSubItem($ti);
602 $op2 =
new ilRadioOption($this->lng->txt(
"prtf_add_existing_blog"),
"existing");
603 $radg->addOption($op2);
607 $op2->addSubItem($obj);
610 $form->setTitle($this->lng->txt(
"prtf_add_blog") .
": " .
611 $this->
object->getTitle());
612 $form->addCommandButton(
"saveBlog", $this->lng->txt(
"save"));
613 $form->addCommandButton(
"view", $this->lng->txt(
"cancel"));
629 if (
$form->getInput(
"creation_mode") ==
"existing") {
632 $page->setTitle(
$form->getInput(
"blog"));
636 $blog->setTitle(
$form->getInput(
"title"));
639 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
644 if (!
$tree->getRootId()) {
648 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
655 $page->setTitle($blog->getId());
660 $this->ctrl->redirect($this,
"view");
663 $this->tabs_gui->clearTargets();
664 $this->tabs_gui->setBackTarget(
665 $this->lng->txt(
"back"),
666 $this->ctrl->getLinkTarget($this,
"view")
669 $form->setValuesByPost();
670 $this->tpl->setContent(
$form->getHtml());
680 $title = trim($_REQUEST[
"pt"]);
681 $prtt_id = (int) $_REQUEST[
"prtt"];
684 include_once
"Modules/Portfolio/classes/class.ilObjPortfolioTemplate.php";
686 if (!
sizeof($templates) || !in_array($prtt_id, $templates)) {
691 $this->ctrl->setParameter($this,
"prtt", $prtt_id);
697 $this->tpl->setContent($a_form->getHTML());
708 if ((
int) $_REQUEST[
"exc_id"]) {
709 $this->ctrl->setParameter($this,
"exc_id", (
int) $_REQUEST[
"exc_id"]);
710 $this->ctrl->setParameter($this,
"ass_id", (
int) $_REQUEST[
"ass_id"]);
713 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
715 $form->setFormAction($this->ctrl->getFormAction($this));
719 $form->addItem($tmpl);
722 $title->setValue($a_title);
727 $blog_options =
array();
728 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
730 $root =
$tree->readRootId();
732 $root =
$tree->getNodeData($root);
733 foreach (
$tree->getSubTree($root,
true,
"blog") as $node) {
734 $blog_options[$node[
"obj_id"]] = $node[
"title"];
736 asort($blog_options);
740 $has_form_content =
false;
742 include_once
"Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php";
746 include_once
"Services/Skill/classes/class.ilPersonalSkill.php";
748 $skill_ids =
array();
750 include_once
"Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php";
752 switch ($page[
"type"]) {
756 $source_page->buildDom(
true);
760 $quota_sum += $source_page->getPageDiskSize();
762 if (
sizeof($skill_ids)) {
763 $has_form_content =
true;
769 $has_form_content =
true;
771 $field_id =
"blog_" . $page[
"id"];
774 $page[
"title"], $field_id);
776 $blog->setValue(
"blog_create");
777 $form->addItem($blog);
779 $new_blog =
new ilRadioOption($this->lng->txt(
"prtf_template_import_blog_create"),
"blog_create");
780 $blog->addOption($new_blog);
783 $title->setRequired(
true);
784 $new_blog->addSubItem(
$title);
786 if (
sizeof($blog_options)) {
787 $reuse_blog =
new ilRadioOption($this->lng->txt(
"prtf_template_import_blog_reuse"),
"blog_resuse");
788 $blog->addOption($reuse_blog);
790 $obj =
new ilSelectInputGUI($this->lng->txt(
"obj_blog"), $field_id .
"_reuse_blog");
792 $obj->setOptions(
array(
""=>$this->lng->txt(
"please_select"))+$blog_options);
793 $reuse_blog->addSubItem($obj);
796 $blog->addOption(
new ilRadioOption($this->lng->txt(
"prtf_template_import_blog_ignore"),
"blog_ignore"));
803 include_once
"Services/Skill/classes/class.ilSkillTreeNode.php";
805 $skills->
setInfo($this->lng->txt(
"prtf_template_import_new_skills"));
806 $skills->setValue($skill_ids);
807 foreach ($skill_ids as $skill_id) {
810 $form->addItem($skills);
814 include_once
"Services/DiskQuota/classes/class.ilDiskQuotaHandler.php";
817 $this->ctrl->redirect($this,
"create");
822 if (!$has_form_content) {
826 $form->setTitle($this->lng->txt(
"prtf_creation_mode") .
": " . $this->lng->txt(
"prtf_creation_mode_template"));
827 $form->addCommandButton(
"createPortfolioFromTemplateProcess", $this->lng->txt(
"continue"));
828 $form->addCommandButton(
"toRepository", $this->lng->txt(
"cancel"));
839 $title = trim($_REQUEST[
"pt"]);
840 $prtt_id = (int) $_REQUEST[
"prtt"];
843 include_once
"Modules/Portfolio/classes/class.ilObjPortfolioTemplate.php";
845 if (!
sizeof($templates) || !in_array($prtt_id, $templates)) {
852 if ($a_process_form) {
853 $this->ctrl->setParameter($this,
"prtt", $prtt_id);
856 if (
$form->checkInput()) {
857 include_once
"Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php";
859 switch ($page[
"type"]) {
862 $field_id =
"blog_" . $page[
"id"];
863 switch (
$form->getInput($field_id)) {
865 $recipe[$page[
"id"]] =
array(
"blog",
"create",
866 trim(
$form->getInput($field_id .
"_create_title")));
870 $recipe[$page[
"id"]] =
array(
"blog",
"reuse",
871 (
int)
$form->getInput($field_id .
"_reuse_blog"));
875 $recipe[$page[
"id"]] =
array(
"blog",
"ignore");
883 $recipe[
"skills"] = (
array)
$form->getInput(
"skill_ids");
885 $form->setValuesByPost();
893 include_once
"Modules/Portfolio/classes/class.ilObjPortfolio.php";
905 $this->ctrl->setParameter($this,
"prt_id",
$target_id);
906 $this->ctrl->redirect($this,
"preview");
909 public static function _goto($a_target)
911 $id = explode(
"_", $a_target);
913 $_GET[
"baseClass"] =
"ilsharedresourceGUI";
915 if (
sizeof(
$id) == 2) {
919 include(
"ilias.php");
928 include_once
"Modules/Portfolio/classes/class.ilObjPortfolioTemplate.php";
929 include_once
"Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php";
930 include_once
"Modules/Portfolio/classes/class.ilObjPortfolio.php";
932 $title = trim($_REQUEST[
"pt"]);
933 $prtt_id = (int) $_REQUEST[
"prtt"];
936 $ass_template_id = 0;
937 if ((
int) $_REQUEST[
"ass_id"] > 0) {
938 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
945 if (!
sizeof($templates) || !in_array($prtt_id, $templates)) {
946 if ($ass_template_id != $prtt_id) {
952 include_once
"Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php";
957 include_once
"Services/Skill/classes/class.ilPersonalSkill.php";
959 $skill_ids =
array();
963 switch ($page[
"type"]) {
966 $recipe[$page[
"id"]] =
array(
"blog",
"create", $page[
'title']);
971 $source_page->buildDom(
true);
973 $quota_sum += $source_page->getPageDiskSize();
981 include_once
"Services/DiskQuota/classes/class.ilDiskQuotaHandler.php";
984 $this->ctrl->redirect($this,
"create");
989 $recipe[
"skills"] = $skill_ids;
1007 $this->ctrl->setParameter($this,
"prt_id",
$target_id);
1010 $this->ctrl->redirect($this,
"preview");
1013 $this->ctrl->redirect($this,
"view");
1022 $exc_ref_id = (int) $_REQUEST[
"exc_id"];
1023 $ass_id = (int) $_REQUEST[
"ass_id"];
1027 $ilAccess->checkAccess(
"read",
"", $exc_ref_id)) {
1028 include_once
"Modules/Exercise/classes/class.ilObjExercise.php";
1029 include_once
"Modules/Exercise/classes/class.ilExAssignment.php";
1032 if ($ass->getExerciseId() == $exc->getId() &&
1035 include_once
"Modules/Exercise/classes/class.ilExSubmission.php";
1050 $dom = $a_source_page->getDom();
1052 $dom = $dom->myDOMDocument;
1055 $nodes = $xpath->query(
"//PageContent/Skills");
1056 foreach ($nodes as $node) {
1057 $skill_id = $node->getAttribute(
"Id");
1058 if (!in_array($skill_id, $a_pskills)) {
1059 $a_skill_ids[] = $skill_id;
1066 return $a_skill_ids;
1095 $tabs = $DIC->tabs();
1097 $tabs->clearTargets();
1098 $tabs->setBackTarget(
$lng->txt(
"back"),
$ilCtrl->getLinkTarget($this,
"view"));
1103 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1107 $form->setPreventDoubleSubmission(
false);
1111 $cb->
setInfo($this->lng->txt(
"prtf_signature_info"));
1112 $form->addItem($cb);
1119 $radg->addOption($op2);
1121 $radg->addOption($op3);
1123 include_once(
"./Services/Form/classes/class.ilNestedListInputGUI.php");
1125 $op3->addSubItem($nl);
1127 foreach ($pages as $p) {
1146 $lng->txt(
"obj_blog")
1149 foreach ($pages2 as $p2) {
1163 $form->addItem($radg);
1165 $form->addCommandButton(
"exportPDF",
$lng->txt(
"prtf_pdf"));
1166 if (DEVMODE ==
"1") {
1167 $form->addCommandButton(
"exportPDFDev",
$lng->txt(
"prtf_pdf") .
" (DEV)");
1170 $form->setTitle(
$lng->txt(
"prtf_print_options"));
1171 $form->setFormAction(
$ilCtrl->getFormAction($this,
"exportPDF"));
1190 require_once
'Services/WebAccessChecker/classes/class.ilWACSignedPath.php';
1196 $html = preg_replace(
"/\?dummy\=[0-9]+/",
"",
$html);
1197 $html = preg_replace(
"/\?vers\=[0-9A-Za-z\-]+/",
"",
$html);
1199 $html = preg_replace(
"/src=\"\\.\\//ims",
"src=\"" . ILIAS_HTTP_PATH .
"/",
$html);
1200 $html = preg_replace(
"/href=\"\\.\\//ims",
"href=\"" . ILIAS_HTTP_PATH .
"/",
$html);
1223 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
1225 $tpl->setBodyClass(
"ilPrtfPdfBody");
1227 $tpl->setCurrentBlock(
"AdditionalStyle");
1229 $tpl->parseCurrentBlock();
1231 $tpl->setCurrentBlock(
"ContentStyle");
1233 "LOCATION_CONTENT_STYLESHEET",
1236 $tpl->parseCurrentBlock();
1242 $tpl->setCurrentBlock(
"SyntaxStyle");
1244 "LOCATION_SYNTAX_STYLESHEET",
1247 $tpl->parseCurrentBlock();
1250 include_once(
"./Modules/Portfolio/classes/class.ilPortfolioPageGUI.php");
1255 $cover_tpl =
new ilTemplate(
"tpl.prtf_cover.html",
true,
true,
"Modules/Portfolio");
1256 foreach ($pages as $page) {
1258 if (
$_POST[
"sel_type"] ==
"selection" && (!is_array(
$_POST[
"obj_id"]) || !in_array($page[
"id"],
$_POST[
"obj_id"]))) {
1261 $cover_tpl->setCurrentBlock(
"content_item");
1262 $cover_tpl->setVariable(
"ITEM_TITLE", $page[
"title"]);
1263 $cover_tpl->parseCurrentBlock();
1265 $cover_tpl->setCurrentBlock(
"content_item");
1267 $cover_tpl->parseCurrentBlock();
1271 if (
$_POST[
"signature"]) {
1272 $cover_tpl->setCurrentBlock(
"signature");
1273 $cover_tpl->setVariable(
"TXT_SIGNATURE",
$lng->txt(
"prtf_signature_date"));
1274 $cover_tpl->parseCurrentBlock();
1277 $cover_tpl->setVariable(
"PORTFOLIO_TITLE", $this->
object->getTitle());
1280 $cover_tpl->setVariable(
"TXT_AUTHOR",
$lng->txt(
"prtf_author"));
1281 $cover_tpl->setVariable(
"TXT_LINK",
$lng->txt(
"prtf_link"));
1282 $cover_tpl->setVariable(
"TXT_DATE",
$lng->txt(
"prtf_date_of_print"));
1285 $author_str = $author[
"firstname"] .
" " . $author[
"lastname"];
1286 $cover_tpl->setVariable(
"AUTHOR", $author_str);
1288 include_once(
'./Services/Link/classes/class.ilLink.php');
1290 $cover_tpl->setVariable(
"LINK", $href);
1294 $cover_tpl->setVariable(
"DATE", $date_str);
1296 $page_content .= $cover_tpl->get();
1297 $page_content .=
'<p style="page-break-after:always;"></p>';
1299 $page_head_tpl =
new ilTemplate(
"tpl.prtf_page_head.html",
true,
true,
"Modules/Portfolio");
1300 $page_head_tpl->setVariable(
"AUTHOR", $author_str);
1301 $page_head_tpl->setVariable(
"DATE", $date_str);
1302 $page_head_str = $page_head_tpl->get();
1304 foreach ($pages as $page) {
1306 if (
$_POST[
"sel_type"] ==
"selection" && (!is_array(
$_POST[
"obj_id"]) || !in_array($page[
"id"],
$_POST[
"obj_id"]))) {
1312 $page_gui->setPresentationTitle($page[
"title"]);
1313 $page_content .= $page_head_str . $page_gui->showPage();
1315 if ($a_pdf_export) {
1316 $page_content .=
'<p style="page-break-after:always;"></p>';
1320 foreach ($pages2 as $p2) {
1321 if (
$_POST[
"sel_type"] ==
"selection" && (!is_array(
$_POST[
"obj_id"]) || !in_array(
"b" . $p2[
"id"],
$_POST[
"obj_id"]))) {
1325 $page_gui->setFileDownloadLink(
"#");
1326 $page_gui->setFullscreenLink(
"#");
1327 $page_gui->setSourcecodeDownloadScript(
"#");
1328 $page_gui->setOutputMode(
"print");
1329 $page_content .= $page_head_str . $page_gui->showPage(
ilObject::_lookupTitle($page[
"title"]) .
": " . $page_gui->getBlogPosting()->getTitle());
1331 if ($a_pdf_export) {
1332 $page_content .=
'<p style="page-break-after:always;"></p>';
1338 $page_content =
'<div class="ilInvisibleBorder">' . $page_content .
'</div>';
1340 if (!$a_pdf_export) {
1341 $page_content .=
'<script type="text/javascript" language="javascript1.2"> 1343 il.Util.addOnLoad(function () { 1350 $tpl->setVariable(
"CONTENT", $page_content);
1352 if (!$a_pdf_export) {
1356 $tpl->fillJavaScriptFiles();
1357 $ret = $tpl->get(
"DEFAULT",
false,
false,
false,
true,
false,
false);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static _lookupName($a_user_id)
lookup user name
getPageGUIInstance($a_page_id)
Get portfolio template page gui instance.
static getAllPortfolioPages($a_portfolio_id)
Get pages of portfolio.
createPortfolioFromTemplate(ilPropertyFormGUI $a_form=null)
This class represents an option in a radio group.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
static getContentPrintStyle()
get content print style
createPortfolioFromTemplateProcess($a_process_form=true)
initCopyPageFormOptions(ilPropertyFormGUI $a_form)
addResourceObject($a_wsp_id, $a_text=null)
Add personal resource to assigment.
setValue($a_value)
Set Value.
This class represents an option in a checkbox group.
const TITLE_LENGTH
max length of object title
getPageInstance($a_page_id=null, $a_portfolio_id=null)
Get portfolio template page instance.
getSkillsToPortfolioAssignment($a_pskills, $a_skill_ids, $a_source_page)
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
Class ilBlogPosting GUI class.
static getPortfoliosOfUser($a_user_id)
Get views of user.
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
if(!array_key_exists('StateId', $_REQUEST)) $id
Access handler for personal workspace.
static setUseRelativeDates($a_status)
set use relative dates
static _lookupTitle($a_id)
lookup object title
Portfolio page gui class.
static getSelectedUserSkills($a_user_id)
Get personal selected user skills.
initCreatePortfolioFromTemplateForm($a_prtt_id, $a_title)
getEditFormCustomValues(array &$a_values)
static _isPersonalWorkspaceActive()
Static getter.
Class ilPortfolioExerciseGUI.
Tree handler for personal workspace.
static _lookupObjectId($a_ref_id)
lookup object id
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getAllPostings($a_blog_id, $a_limit=1000, $a_offset=0)
Get all postings of blog.
saveBlog()
Create new portfolio blog page.
Portfolio view gui class.
initCreateForm($a_new_type)
if(isset($_POST['submit'])) $form
getId()
get object id public
initPDFSelectionForm()
Init print view selection form.
afterSave(ilObject $a_new_object)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
special template class to simplify handling of ITX/PEAR
omitLocator($a_omit=true)
static setUserDefault($a_user_id, $a_portfolio_id=null)
Set the user default portfolio.
getAdditional()
Get Additonal Information.
setSize($a_size)
Set Size.
This class represents a text property in a property form.
static isUploadPossible($a_additional_size=null)
createPortfolioFromAssignment()
Page for portfolio template.
static getAvailablePortfolioTemplates($a_permission="read")
setMaxLength($a_maxlength)
Set Max Length.
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id, $add_random=true)
get content style path
updateCustom(ilPropertyFormGUI $a_form)
Create styles array
The data for the language used.
Portfolio view gui base class.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
initBlogForm()
Init blog page form.
if(!empty($this->data['faventry'])) $tabs
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
linkPortfolioToAssignment($a_target_id)
This class represents a non editable value in a property form.
Create new PHPExcel object
obj_idprivate
setAdditional($a_additional)
Set Additonal Information.
Class ilObjStyleSheetGUI.
initCreationForms($a_new_type)
printView($a_pdf_export=false)
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
exportPDF($a_dev_mode=false)
static activeLayouts($a_special_page=false, $a_module=null)
Get active layouts.
static setTokenMaxLifetimeInSeconds($token_max_lifetime_in_seconds)
initEditCustomForm(ilPropertyFormGUI $a_form)
preview($a_return=false, $a_content=false, $a_show_notes=true)
Show user page.
static redirect($a_script)
exportPDFSelection()
Export PDF selection.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
setOutputMode($a_mode=IL_PAGE_PRESENTATION)
Set Output Mode.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options