ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilPortfolioTemplatePageGUI.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once(
"./Modules/Portfolio/classes/class.ilPortfolioPageGUI.php"
);
5
18
class
ilPortfolioTemplatePageGUI
extends
ilPortfolioPageGUI
19
{
20
function
getParentType
()
21
{
22
return
"prtt"
;
23
}
24
25
protected
function
getPageContentUserId
($a_user_id)
26
{
27
global
$ilUser
;
28
29
// user
30
if
(!$this->may_write)
31
{
32
return
$ilUser->getId();
33
}
34
// author
35
else
36
{
37
return
$a_user_id;
38
}
39
}
40
41
function
showPage
()
42
{
43
if
(!$this->
getPageObject
())
44
{
45
return
;
46
}
47
48
switch
($this->
getPageObject
()->getType())
49
{
50
case
ilPortfolioTemplatePage::TYPE_BLOG_TEMPLATE
:
51
return
$this->
renderPageElement
(
"BlogTemplate"
, $this->
renderBlogTemplate
());
52
53
default
:
54
55
// needed for placeholders
56
include_once
"Services/Style/Content/classes/class.ilObjStyleSheet.php"
;
57
$this->tpl->addCss(
ilObjStyleSheet::getPlaceHolderStylePath
());
58
59
return
parent::showPage();
60
}
61
}
62
63
protected
function
renderPageElement
(
$a_type
, $a_html)
64
{
65
return
parent::renderPageElement(
$a_type
, $this->
addPlaceholderInfo
($a_html));
66
}
67
68
protected
function
addPlaceholderInfo
($a_html)
69
{
70
return
'<fieldset style="border: 1px dashed red; padding: 3px; margin: 5px;">'
.
71
'<legend style="color: red; font-style: italic;" class="small">'
.
72
$this->lng->txt(
"prtf_template_editor_placeholder_info"
).
73
'</legend>'
.
74
trim($a_html).
75
'</fieldset>'
;
76
}
77
78
protected
function
renderBlogTemplate
()
79
{
80
return
$this->
renderTeaser
(
"blog_template"
, $this->lng->txt(
"obj_blog"
));
81
}
82
86
protected
function
getCourseSortAction
(
$ctrl
)
87
{
88
return
$ctrl
->getFormActionByClass(
"ilobjportfoliotemplategui"
,
"preview"
);
89
}
90
}
91
92
?>
ilObjStyleSheet\getPlaceHolderStylePath
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
Definition:
class.ilObjStyleSheet.php:1895
ilPageObjectGUI\getPageObject
getPageObject()
Get Page Object.
Definition:
class.ilPageObjectGUI.php:315
ilPortfolioTemplatePageGUI\renderBlogTemplate
renderBlogTemplate()
Definition:
class.ilPortfolioTemplatePageGUI.php:78
ilPortfolioPageGUI
Portfolio page gui class.
Definition:
class.ilPortfolioPageGUI.php:18
ilPortfolioTemplatePageGUI\getCourseSortAction
getCourseSortAction($ctrl)
Definition:
class.ilPortfolioTemplatePageGUI.php:86
$a_type
$a_type
Definition:
workflow.php:93
ilPortfolioTemplatePageGUI\renderPageElement
renderPageElement($a_type, $a_html)
Definition:
class.ilPortfolioTemplatePageGUI.php:63
ilPortfolioTemplatePageGUI\getParentType
getParentType()
Definition:
class.ilPortfolioTemplatePageGUI.php:20
ilPortfolioTemplatePageGUI\addPlaceholderInfo
addPlaceholderInfo($a_html)
Definition:
class.ilPortfolioTemplatePageGUI.php:68
$ilUser
$ilUser
Definition:
imgupload.php:18
ilPortfolioTemplatePageGUI\getPageContentUserId
getPageContentUserId($a_user_id)
Definition:
class.ilPortfolioTemplatePageGUI.php:25
ilPortfolioTemplatePage\TYPE_BLOG_TEMPLATE
const TYPE_BLOG_TEMPLATE
Definition:
class.ilPortfolioTemplatePage.php:16
ilPageObjectGUI\$ctrl
$ctrl
Definition:
class.ilPageObjectGUI.php:34
ilPortfolioPageGUI\renderTeaser
renderTeaser($a_type, $a_title, $a_options=null)
Definition:
class.ilPortfolioPageGUI.php:282
ilPortfolioTemplatePageGUI\showPage
showPage()
Definition:
class.ilPortfolioTemplatePageGUI.php:41
php
ilPortfolioTemplatePageGUI
Portfolio template page gui class.
Definition:
class.ilPortfolioTemplatePageGUI.php:18
Modules
Portfolio
classes
class.ilPortfolioTemplatePageGUI.php
Generated on Fri Jan 24 2025 19:00:58 for ILIAS by
1.8.13 (using
Doxyfile
)