ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilImprintGUI.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
require_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php"
);
5
require_once(
"./Services/Imprint/classes/class.ilImprint.php"
);
6
17
class
ilImprintGUI
extends
ilPageObjectGUI
18
{
22
public
function
__construct
()
23
{
24
global
$tpl
;
25
26
if
(!
ilImprint::_exists
(
"impr"
, 1))
27
{
28
$page =
new
ilImprint
(
"impr"
);
29
$page->setId(1);
30
$page->create();
31
}
32
33
// there is only 1 imprint page
34
parent::__construct(
"impr"
, 1);
35
36
// content style (using system defaults)
37
include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php"
);
38
39
$tpl->setCurrentBlock(
"SyntaxStyle"
);
40
$tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET"
,
41
ilObjStyleSheet::getSyntaxStylePath
());
42
$tpl->parseCurrentBlock();
43
44
$tpl->setCurrentBlock(
"ContentStyle"
);
45
$tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET"
,
46
ilObjStyleSheet::getContentStylePath
(0));
47
$tpl->parseCurrentBlock();
48
}
49
53
function
executeCommand
()
54
{
55
global
$ilCtrl
, $ilLocator,
$lng
;
56
57
if
($_REQUEST[
"baseClass"
] ==
"ilImprintGUI"
)
58
{
59
$this->
renderFullscreen
();
60
}
61
62
$next_class = $ilCtrl->getNextClass($this);
63
64
$title
= $lng->txt(
"adm_imprint"
);
65
66
switch
($next_class)
67
{
68
case
"ilpageobjectgui"
:
69
die(
"Deprecated. ilImprintGUI gui forwarding to ilpageobject"
);
70
return
;
71
72
default
:
73
$this->
setPresentationTitle
(
$title
);
74
75
$ilLocator->addItem(
$title
,
76
$ilCtrl->getLinkTarget($this,
"preview"
));
77
78
return
parent::executeCommand();
79
}
80
}
81
82
function
postOutputProcessing
($a_output)
83
{
84
global
$lng
;
85
86
if
($this->
getOutputMode
() ==
IL_PAGE_PREVIEW
)
87
{
88
if
(!$this->
getPageObject
()->getActive())
89
{
90
ilUtil::sendInfo
($lng->txt(
"adm_imprint_inactive"
));
91
}
92
}
93
94
return
$a_output;
95
}
96
97
protected
function
renderFullscreen
()
98
{
99
global
$tpl
,
$lng
, $ilMainMenu;
100
101
if
(!
ilImprint::isActive
())
102
{
103
ilUtil::redirect
(
"ilias.php?baseClass=ilPersonalDesktopGUI"
);
104
}
105
106
$tpl->getStandardTemplate();
107
108
$this->
setRawPageContent
(
true
);
109
$html
= $this->
showPage
();
110
111
$itpl =
new
ilTemplate
(
"tpl.imprint.html"
,
true
,
true
,
"Services/Imprint"
);
112
$itpl->setVariable(
"PAGE_TITLE"
, $lng->txt(
"imprint"
));
113
$itpl->setVariable(
"IMPRINT"
,
$html
);
114
unset(
$html
);
115
116
$tpl->setContent($itpl->get());
117
118
$ilMainMenu->showLogoOnly(
true
);
119
120
echo
$tpl->show(
"DEFAULT"
,
true
,
false
);
121
exit
();
122
}
123
}
124
125
?>
ilPageObject\_exists
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
Definition:
class.ilPageObject.php:365
IL_PAGE_PREVIEW
const IL_PAGE_PREVIEW
Definition:
class.ilPageObjectGUI.php:6
ilPageObjectGUI\getPageObject
getPageObject()
Get Page Object.
Definition:
class.ilPageObjectGUI.php:315
ilImprintGUI\executeCommand
executeCommand()
execute command
Definition:
class.ilImprintGUI.php:53
ilPageObjectGUI\$tpl
$tpl
Definition:
class.ilPageObjectGUI.php:32
ilPageObjectGUI
Class ilPageObjectGUI.
Definition:
class.ilPageObjectGUI.php:30
ilImprintGUI\__construct
__construct()
Constructor.
Definition:
class.ilImprintGUI.php:22
$title
$title
Definition:
33chartcreate-area.php:105
$ilCtrl
global $ilCtrl
Definition:
ilias.php:18
ilUtil\sendInfo
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Definition:
class.ilUtil.php:4757
ilImprintGUI\postOutputProcessing
postOutputProcessing($a_output)
Definition:
class.ilImprintGUI.php:82
ilPageObjectGUI\$lng
$lng
Definition:
class.ilPageObjectGUI.php:33
ilTemplate
special template class to simplify handling of ITX/PEAR
Definition:
class.ilTemplate.php:13
ilImprint
Class ilImprint.
Definition:
class.ilImprint.php:13
ilPageObjectGUI\setRawPageContent
setRawPageContent($a_rawpagecontent)
Set Get raw page content only.
Definition:
class.ilPageObjectGUI.php:748
ilPageObjectGUI\setPresentationTitle
setPresentationTitle($a_title="")
Definition:
class.ilPageObjectGUI.php:345
ilPageObjectGUI\getOutputMode
getOutputMode()
Definition:
class.ilPageObjectGUI.php:330
ilObjStyleSheet\getSyntaxStylePath
static getSyntaxStylePath()
get syntax style path
Definition:
class.ilObjStyleSheet.php:1885
echo
ilObjStyleSheet\getContentStylePath
static getContentStylePath($a_style_id)
get content style path
Definition:
class.ilObjStyleSheet.php:1829
ilImprintGUI
Class ilImprintGUI.
Definition:
class.ilImprintGUI.php:17
ilPageObjectGUI\showPage
showPage()
display content of page
Definition:
class.ilPageObjectGUI.php:1169
ilImprintGUI\renderFullscreen
renderFullscreen()
Definition:
class.ilImprintGUI.php:97
php
ilUtil\redirect
static redirect($a_script)
http redirect to other script
Definition:
class.ilUtil.php:3567
$html
$html
Definition:
example_001.php:87
exit
exit
Definition:
old-extract-schema.php:8
ilImprint\isActive
static isActive()
Definition:
class.ilImprint.php:25
Services
Imprint
classes
class.ilImprintGUI.php
Generated on Fri Jan 24 2025 19:01:10 for ILIAS by
1.8.13 (using
Doxyfile
)