37        $this->
ctrl = $DIC->ctrl();
 
   38        $this->
lng = $DIC->language();
 
   39        $this->
user = $DIC->user();
 
   40        $ilCtrl = 
$DIC->ctrl();
 
   43        $this->user_id = $a_user_id;
 
   50        $this->
addColumn($this->
lng->txt(
"title"), 
"title", 
"50%");
 
   51        $this->
addColumn($this->
lng->txt(
"online"), 
"is_online");
 
   52        $this->
addColumn($this->
lng->txt(
"prtf_default_portfolio"), 
"is_default");
 
   56        $this->
setRowTemplate(
"tpl.portfolio_row.html", 
"Modules/Portfolio");
 
   70        $this->shared_objects = $access_handler->getObjectsIShare(
false);
 
   75    protected function fillRow(array $a_set): void
 
   80        $this->tpl->setCurrentBlock(
"title_form");
 
   81        $this->tpl->setVariable(
"VAL_ID", $a_set[
"id"]);
 
   83        $this->tpl->parseCurrentBlock();
 
   85        if (in_array($a_set[
"id"], $this->shared_objects)) {
 
   86            $this->tpl->setCurrentBlock(
"shared");
 
   87            $this->tpl->setVariable(
"TXT_SHARED", 
$lng->
txt(
"wsp_status_shared"));
 
   88            $this->tpl->parseCurrentBlock();
 
   91        $this->tpl->setCurrentBlock(
"chck");
 
   92        $this->tpl->setVariable(
"VAL_ID", $a_set[
"id"]);
 
   93        $this->tpl->parseCurrentBlock();
 
   95        $this->tpl->setCurrentBlock(
"edit");
 
   96        $this->tpl->setVariable(
"VAL_ID", $a_set[
"id"]);
 
   97        $this->tpl->setVariable(
 
   99            ($a_set[
"is_online"]) ? 
" checked=\"checked\"" : 
"" 
  101        $this->tpl->setVariable(
 
  103            ($a_set[
"is_default"]) ? 
$lng->
txt(
"yes") : 
"" 
  105        $this->tpl->parseCurrentBlock();
 
  107        $prtf_path = array(get_class($this->parent_obj), 
"ilobjportfoliogui");
 
  109        $ilCtrl->setParameterByClass(
"ilobjportfoliogui", 
"prt_id", $a_set[
"id"]);
 
  110        $this->tpl->setCurrentBlock(
"action");
 
  112        $this->tpl->setVariable(
 
  114            $ilCtrl->getLinkTargetByClass($prtf_path, 
"preview")
 
  116        $this->tpl->setVariable(
"TXT_ACTION", 
$lng->
txt(
"preview"));
 
  117        $this->tpl->parseCurrentBlock();
 
  119        $this->tpl->setVariable(
 
  121            $ilCtrl->getLinkTargetByClass($prtf_path, 
"view")
 
  123        $this->tpl->setVariable(
"TXT_ACTION", 
$lng->
txt(
"prtf_edit_portfolio"));
 
  124        $this->tpl->parseCurrentBlock();
 
  126        $ilCtrl->setParameterByClass(
"ilobjportfoliogui", 
"prt_id", 
"");
 
  128        if ($a_set[
"is_online"]) {
 
  129            if (!$a_set[
"is_default"]) {
 
  130                $ilCtrl->setParameter($this->parent_obj, 
"prt_id", $a_set[
"id"]);
 
  132                $this->tpl->setVariable(
 
  134                    $ilCtrl->getLinkTarget($this->parent_obj, 
"setDefaultConfirmation")
 
  136                $this->tpl->setVariable(
"TXT_ACTION", 
$lng->
txt(
"prtf_set_as_default"));
 
  137                $this->tpl->parseCurrentBlock();
 
  139                $ilCtrl->setParameter($this->parent_obj, 
"prt_id", 
"");
 
  141                $this->tpl->setVariable(
 
  143                    $ilCtrl->getLinkTarget($this->parent_obj, 
"unsetDefault")
 
  145                $this->tpl->setVariable(
"TXT_ACTION", 
$lng->
txt(
"prtf_unset_as_default"));
 
  146                $this->tpl->parseCurrentBlock();
 
loadLanguageModule(string $a_module)
Load language module.
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
static getPortfoliosOfUser(int $a_user_id)
Get portfolios of user.
 
Access handler for portfolio NOTE: This file needs to stay in the classes directory,...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
fillRow(array $a_set)
Standard Version of Fill Row.
 
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_user_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
addMultiCommand(string $a_cmd, string $a_text)
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
 
setData(array $a_data)
Set table data.
 
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc