5 include_once
'Services/Block/classes/class.ilBlockGUI.php';
31 $this->lng = $DIC->language();
32 $this->ctrl = $DIC->ctrl();
34 $this->
user = $DIC->user();
36 parent::__construct();
47 return self::$block_type;
63 switch (
$_GET[
'cmd']) {
81 $cmd =
$ilCtrl->getCmd(
'getHTML');
103 include_once(
"./Modules/Portfolio/classes/class.ilObjPortfolio.php");
106 $lng->loadLanguageModule(
"prtf");
109 $ilCtrl->getLinkTargetByClass(array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui"),
""),
110 $lng->txt(
"prtf_manage_portfolios")
113 $ilCtrl->getLinkTargetByClass(array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui",
"ilobjportfoliogui"),
"create"),
114 $lng->txt(
"prtf_add_portfolio")
117 $html = parent::getHTML();
129 include_once
"Modules/Portfolio/classes/class.ilObjPortfolio.php";
134 $this->
setRowTemplate(
"tpl.pd_portf_block_row.html",
"Modules/Portfolio");
138 parent::fillDataSection();
141 if (count($this->
getData()) == 0) {
157 $ilCtrl->setParameterByClass(
"ilobjportfoliogui",
"prt_id", $p[
"id"]);
158 $this->tpl->setVariable(
"HREF",
$ilCtrl->getLinkTargetByClass(array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui",
"ilobjportfoliogui"),
"preview"));
159 $this->tpl->setVariable(
"TITLE", trim($p[
"title"]));
161 if ($this->default_portfolio == $p[
"id"]) {
163 $this->tpl->setVariable(
"DESC",
$lng->txt(
"prtf_default_portfolio"));
166 $ilCtrl->setParameterByClass(
"ilobjportfoliogui",
"prt_id",
"");
178 if (count($this->
getData()) == 0) {
180 return '<div class="small"><a href="' .
181 $ilCtrl->getLinkTargetByClass(array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui",
"ilobjportfoliogui"),
"create") .
182 '">' .
$lng->txt(
"prtf_add_portfolio") .
'</a></div>';
185 ?
$lng->txt(
"obj_prtf")
186 :
$lng->txt(
"prtf_portfolios");
187 return '<div class="small"><a href="' .
188 $ilCtrl->getLinkTargetByClass(array(
"ilpersonaldesktopgui",
"ilportfoliorepositorygui"),
"") .
189 '">' . ((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.
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
setColSpan($a_colspan)
Set Columns Span.
setTitle($a_title)
Set Title.
setData($a_data)
Set Data.
setAvailableDetailLevels($a_max, $a_min=0)
Set Available Detail Levels.
getOverview()
Get overview.
fillDataSection()
Fill data section.
addBlockCommand( $a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="")
Add Block Command.
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.