5 include_once
'Services/Block/classes/class.ilBlockGUI.php';
26 parent::__construct();
38 return self::$block_type;
74 $cmd = $ilCtrl->getCmd(
'getHTML');
86 if (!$ilSetting->get(
'user_portfolios'))
97 include_once(
"./Modules/Portfolio/classes/class.ilObjPortfolio.php");
100 $lng->loadLanguageModule(
"prtf");
101 $this->
setTitle($lng->txt(
'prtf_tab_portfolios'));
102 $this->
addBlockCommand($ilCtrl->getLinkTargetByClass(
array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui"),
""),
103 $lng->txt(
"prtf_manage_portfolios"));
104 $this->
addBlockCommand($ilCtrl->getLinkTargetByClass(
array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui",
"ilobjportfoliogui"),
"create"),
105 $lng->txt(
"prtf_add_portfolio"));
107 $html = parent::getHTML();
119 include_once
"Modules/Portfolio/classes/class.ilObjPortfolio.php";
125 $this->
setRowTemplate(
"tpl.pd_portf_block_row.html",
"Modules/Portfolio");
130 parent::fillDataSection();
135 if (count($this->
getData()) == 0)
152 $ilCtrl->setParameterByClass(
"ilobjportfoliogui",
"prt_id", $p[
"id"]);
153 $this->tpl->setVariable(
"HREF", $ilCtrl->getLinkTargetByClass(
array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui",
"ilobjportfoliogui"),
"preview"));
154 $this->tpl->setVariable(
"TITLE", trim($p[
"title"]));
156 if ($this->default_portfolio == $p[
"id"])
159 $this->tpl->setVariable(
"DESC", $lng->txt(
"prtf_default_portfolio"));
162 $ilCtrl->setParameterByClass(
"ilobjportfoliogui",
"prt_id",
"");
173 if (count($this->
getData()) == 0)
176 return '<div class="small"><a href="'.
177 $ilCtrl->getLinkTargetByClass(
array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui",
"ilobjportfoliogui"),
"create").
178 '">'.$lng->txt(
"prtf_add_portfolio").
'</a></div>';
183 ? $lng->txt(
"obj_prtf")
184 : $lng->txt(
"prtf_portfolios");
185 return '<div class="small"><a href="'.
186 $ilCtrl->getLinkTargetByClass(
array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui"),
"").
187 '">'.((int)count($this->
getData())).
" ".
$t.
"</a></div>";
fillRow($p)
get flat bookmark list for personal desktop
__construct()
Constructor.
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.
static getPortfoliosOfUser($a_user_id)
Get views of user.
executeCommand()
Execute command.
addBlockCommand($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="")
Add Block Command.
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
static isRepositoryObject()
Get block type.
setColSpan($a_colspan)
Set Columns Span.
setTitle($a_title)
Set Title.
static getBlockType()
Get block type.
setData($a_data)
Set Data.
setAvailableDetailLevels($a_max, $a_min=0)
Set Available Detail Levels.
getOverview()
Get overview.
Create styles array
The data for the language used.
fillDataSection()
Fill data section.
setLimit($a_limit)
Set Limit.
static getScreenMode()
Get Screen Mode for current command.
static getDefaultPortfolio($a_user_id)
Get default portfolio of user.
This class represents a block method of a block.
setRowTemplate($a_rowtemplatename, $a_rowtemplatedir="")
Set Row Template Name.
setEnableDetailRow($a_enabledetailrow)
Set EnableDetailRow.
getCurrentDetailLevel()
Get Current Detail Level.
getHTML()
Execute command.