XOOPS  2.6.0
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 
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 }
setDescription($description)