XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
PrintContent.php
Go to the documentation of this file.
1
<?php
2
/*
3
You may not change or alter any portion of this comment or credits
4
of supporting developers from this source code or any supporting source code
5
which is considered copyrighted (c) material of the original comment or credit authors.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
namespace
Xmf\Template
;
13
27
class
PrintContent
extends
AbstractTemplate
28
{
32
private
$title
=
''
;
33
37
private
$description
=
''
;
38
42
private
$content
=
''
;
43
47
private
$pagetitle
=
false
;
48
52
private
$width
= 680;
53
59
protected
function
init
()
60
{
61
$this->
setTemplate
(
'module:xmf/xmf_print.tpl'
);
62
}
63
69
protected
function
render
()
70
{
71
$this->tpl->assign(
'xmf_print_pageTitle'
, $this->pagetitle ? $this->pagetitle : $this->title);
72
$this->tpl->assign(
'xmf_print_title'
, $this->title);
73
$this->tpl->assign(
'xmf_print_description'
, $this->description);
74
$this->tpl->assign(
'xmf_print_content'
, $this->content);
75
$this->tpl->assign(
'xmf_print_width'
, $this->width);
76
}
77
85
public
function
setContent
(
$content
)
86
{
87
$this->content =
$content
;
88
}
89
95
public
function
getContent
()
96
{
97
return
$this->content
;
98
}
99
107
public
function
setDescription
(
$description
)
108
{
109
$this->description =
$description
;
110
}
111
117
public
function
getDescription
()
118
{
119
return
$this->description
;
120
}
121
129
public
function
setPagetitle
(
$pagetitle
)
130
{
131
$this->pagetitle =
$pagetitle
;
132
}
133
139
public
function
getPagetitle
()
140
{
141
return
$this->pagetitle
;
142
}
143
151
public
function
setTitle
(
$title
)
152
{
153
$this->title =
$title
;
154
}
155
161
public
function
getTitle
()
162
{
163
return
$this->title
;
164
}
165
173
public
function
setWidth
(
$width
)
174
{
175
$this->width =
$width
;
176
}
177
183
public
function
getWidth
()
184
{
185
return
$this->width
;
186
}
187
}
Xmf\Template
Definition:
AbstractTemplate.php:12
Xmf\Template\PrintContent\init
init()
Definition:
PrintContent.php:59
Xmf\Template\PrintContent\$description
$description
Definition:
PrintContent.php:37
Xmf\Template\PrintContent\setWidth
setWidth($width)
Definition:
PrintContent.php:173
Xmf\Template\PrintContent\$content
$content
Definition:
PrintContent.php:42
Xmf\Template\PrintContent\getDescription
getDescription()
Definition:
PrintContent.php:117
Xmf\Template\AbstractTemplate\setTemplate
setTemplate($template= '')
Definition:
AbstractTemplate.php:70
Xmf\Template\PrintContent\setTitle
setTitle($title)
Definition:
PrintContent.php:151
Xmf\Template\PrintContent\setDescription
setDescription($description)
Definition:
PrintContent.php:107
Xmf\Template\PrintContent\getContent
getContent()
Definition:
PrintContent.php:95
Xmf\Template\PrintContent\$width
$width
Definition:
PrintContent.php:52
Xmf\Template\AbstractTemplate
Definition:
AbstractTemplate.php:27
Xmf\Template\PrintContent\getTitle
getTitle()
Definition:
PrintContent.php:161
Xmf\Template\PrintContent\getWidth
getWidth()
Definition:
PrintContent.php:183
Xmf\Template\PrintContent\render
render()
Definition:
PrintContent.php:69
Xmf\Template\PrintContent\getPagetitle
getPagetitle()
Definition:
PrintContent.php:139
Xmf\Template\PrintContent\setPagetitle
setPagetitle($pagetitle)
Definition:
PrintContent.php:129
Xmf\Template\PrintContent
Definition:
PrintContent.php:27
Xmf\Template\PrintContent\$title
$title
Definition:
PrintContent.php:32
Xmf\Template\PrintContent\$pagetitle
$pagetitle
Definition:
PrintContent.php:47
Xmf\Template\PrintContent\setContent
setContent($content)
Definition:
PrintContent.php:85
usr64
htdocs
xoops_lib
Xmf
Template
PrintContent.php
Generated on Fri May 22 2015 03:07:05 for XOOPS by
1.8.9.1