5include_once
'Services/Block/classes/class.ilBlockGUI.php';
26 parent::__construct();
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>";
This class represents a block method of a block.
setRowTemplate($a_rowtemplatename, $a_rowtemplatedir="")
Set Row Template Name.
setLimit($a_limit)
Set Limit.
getCurrentDetailLevel()
Get Current Detail Level.
setAvailableDetailLevels($a_max, $a_min=0)
Set Available Detail Levels.
setEnableDetailRow($a_enabledetailrow)
Set EnableDetailRow.
setData($a_data)
Set Data.
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.
addBlockCommand($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="")
Add Block Command.
setColSpan($a_colspan)
Set Columns Span.
setTitle($a_title)
Set Title.
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
static getDefaultPortfolio($a_user_id)
Get default portfolio of user.
static getPortfoliosOfUser($a_user_id)
Get views of user.
static getBlockType()
Get block type.
getOverview()
Get overview.
static getScreenMode()
Get Screen Mode for current command.
__construct()
Constructor.
executeCommand()
Execute command.
getHTML()
Execute command.
fillDataSection()
Fill data section.
fillRow($p)
get flat bookmark list for personal desktop
static isRepositoryObject()
Get block type.