ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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/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
}
83
84
?>
ilPageObjectGUI\getPageObject
getPageObject()
Get Page Object.
Definition:
class.ilPageObjectGUI.php:307
ilPortfolioTemplatePageGUI\renderBlogTemplate
renderBlogTemplate()
Definition:
class.ilPortfolioTemplatePageGUI.php:78
ilObjStyleSheet\getPlaceHolderStylePath
getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
Definition:
class.ilObjStyleSheet.php:1847
ilPortfolioPageGUI
Portfolio page gui class.
Definition:
class.ilPortfolioPageGUI.php:18
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
ilPortfolioTemplatePageGUI\getPageContentUserId
getPageContentUserId($a_user_id)
Definition:
class.ilPortfolioTemplatePageGUI.php:25
ilPortfolioTemplatePage\TYPE_BLOG_TEMPLATE
const TYPE_BLOG_TEMPLATE
Definition:
class.ilPortfolioTemplatePage.php:16
$ilUser
global $ilUser
Definition:
imgupload.php:15
ilPortfolioPageGUI\renderTeaser
renderTeaser($a_type, $a_title, $a_options=null)
Definition:
class.ilPortfolioPageGUI.php:260
ilPortfolioTemplatePageGUI\showPage
showPage()
Definition:
class.ilPortfolioTemplatePageGUI.php:41
ilPortfolioTemplatePageGUI
Portfolio template page gui class.
Definition:
class.ilPortfolioTemplatePageGUI.php:18
Modules
Portfolio
classes
class.ilPortfolioTemplatePageGUI.php
Generated on Mon Apr 7 2025 19:00:41 for ILIAS by
1.8.13 (using
Doxyfile
)