32     protected \ilLanguage 
$lng;
    44         bool $include_signature = 
false,
    45         array $selected_pages = null,
    46         bool $include_declaration = 
false    56         $this->port_request = $DIC->portfolio()
    67         $c->declaration_of_authorship = $decl;
    80         $form = new \ilPropertyFormGUI();
    83         if ($this->declaration_of_authorship &&
    84             $this->declaration_of_authorship->getForUser($this->user) !== 
"") {
    85             $cb = new \ilCheckboxInputGUI($this->
lng->txt(
"prtf_decl_authorship"), 
"decl_author");
    86             $cb->setInfo($this->declaration_of_authorship->getForUser($this->user));
    91         $cb = new \ilCheckboxInputGUI($this->
lng->txt(
"prtf_signature"), 
"signature");
    92         $cb->setInfo($this->
lng->txt(
"prtf_signature_info"));
    97         $radg = new \ilRadioGroupInputGUI($lng->txt(
"prtf_print_selection"), 
"sel_type");
    98         $radg->setValue(
"all_pages");
    99         $op2 = new \ilRadioOption($lng->txt(
"prtf_all_pages"), 
"all_pages");
   100         $radg->addOption($op2);
   101         $op3 = new \ilRadioOption($lng->txt(
"prtf_selected_pages"), 
"selection");
   102         $radg->addOption($op3);
   104         $nl = new \ilNestedListInputGUI(
"", 
"obj_id");
   105         $op3->addSubItem($nl);
   107         foreach ($pages as $p) {
   119         $form->addItem($radg);
   121         $form->addCommandButton(
"showPrintView", $lng->txt(
"exp_show_print_view"));
   123         $form->setTitle($lng->txt(
"prtf_print_options"));
   124         $form->setFormAction(
   125             $ilCtrl->getFormActionByClass(
   136         $page = new \ilPortfolioPage();
   137         $page->setEmptyPageXml();
   138         $resource_collector = 
new COPage\ResourcesCollector(
   142         $resource_injector = 
new COPage\ResourcesInjector($resource_collector);
   145             function ($tpl) use ($resource_injector) {
   146                 $resource_injector->inject($tpl);
   163         $cover_tpl = new \ilTemplate(
   164             "tpl.prtf_cover.html",
   167             "components/ILIAS/Portfolio"   169         foreach ($pages as $page) {
   170             if (is_array($this->selected_pages) &&
   171                 !in_array($page[
"id"], $this->selected_pages)) {
   174             $cover_tpl->setCurrentBlock(
"content_item");
   175             $cover_tpl->setVariable(
"ITEM_TITLE", $page[
"title"]);
   176             $cover_tpl->parseCurrentBlock();
   179         if ($this->include_signature) {
   180             $cover_tpl->setCurrentBlock(
"signature");
   181             $cover_tpl->setVariable(
"TXT_SIGNATURE", $lng->txt(
"prtf_signature_date"));
   182             $cover_tpl->parseCurrentBlock();
   185         if (!is_null($this->declaration_of_authorship) && $this->include_declaration) {
   186             $cover_tpl->setCurrentBlock(
"decl_author");
   187             $cover_tpl->setVariable(
   189                 nl2br($this->declaration_of_authorship->getForUser($this->user))
   191             $cover_tpl->parseCurrentBlock();
   194         $cover_tpl->setVariable(
"PORTFOLIO_TITLE", $this->portfolio->getTitle());
   197         $cover_tpl->setVariable(
"TXT_AUTHOR", $lng->txt(
"prtf_author"));
   198         $cover_tpl->setVariable(
"TXT_LINK", $lng->txt(
"prtf_link"));
   199         $cover_tpl->setVariable(
"TXT_DATE", $lng->txt(
"prtf_date_of_print"));
   200         $cover_tpl->setVariable(
"TXT_TABLE_OF_CONTENTS", $lng->txt(
"prtf_table_of_contents"));
   203         $author_str = $author[
"firstname"] . 
" " . $author[
"lastname"];
   204         $cover_tpl->setVariable(
"AUTHOR", $author_str);
   207         $cover_tpl->setVariable(
"LINK", $href);
   211         $cover_tpl->setVariable(
"DATE", $date_str);
   213         $print_pages[] = $cover_tpl->get();
   215         $page_head_tpl = new \ilTemplate(
"tpl.prtf_page_head.html", 
true, 
true, 
"components/ILIAS/Portfolio");
   216         $page_head_tpl->setVariable(
"AUTHOR", $author_str);
   217         $page_head_tpl->setVariable(
"DATE", $date_str);
   218         $page_head_str = $page_head_tpl->get();
   220         foreach ($pages as $page) {
   221             if (is_array($this->selected_pages) &&
   222                 !in_array($page[
"id"], $this->selected_pages)) {
   225             $page_gui = new \ilPortfolioPageGUI($this->portfolio->getId(), $page[
"id"]);
   227             $page_gui->setPresentationTitle($page[
"title"]);
   228             $html = $this->
ctrl->getHTML($page_gui);
   229             $print_pages[] = $page_head_str . $html;
 
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio. 
 
static array static setUseRelativeDates(bool $a_status)
set use relative dates 
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ilObjUser $user=null,)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ilObjPortfolio $portfolio
 
ilPortfolioDeclarationOfAuthorship $declaration_of_authorship
 
static _lookupName(int $a_user_id)
lookup user name 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getOutputMode()
Get output mode. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _getStaticLink(?int $a_ref_id, string $a_type='', bool $a_fallback_goto=true, string $append="")
 
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
withDeclarationOfAuthorship(\ilPortfolioDeclarationOfAuthorship $decl, \ilObjUser $user)
 
getSelectionForm()
form which is featured in the modal form target is modified to open in new window (not yet possible w...
 
__construct(\ilLanguage $lng, \ilCtrl $ctrl, \ilObjPortfolio $portfolio, bool $include_signature=false, array $selected_pages=null, bool $include_declaration=false)
 
bool $include_declaration
 
StandardGUIRequest $port_request