6 * @author Jan Altensen (Stricted)
7 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
8 * @copyright 2014-2016 Jan Altensen (Stricted)
10 abstract class AbstractPage
{
11 public $activeMenuItem = '';
12 public $template = "";
14 public final function __construct() {
19 abstract public function prepare();
21 public final function show() {
22 if (empty($this->template
) ||
$this->template
== "") {
23 $classParts = explode('\\', get_class($this));
24 $className = str_replace('Page', '', array_pop($classParts));
25 $this->template
= lcfirst($className).".tpl";
28 if (substr($this->template
, -4) != ".tpl") {
29 $this->template
= $this->template
.".tpl";
33 DNS
::getTPL()->assign(array("activeMenuItem" => $this->activeMenuItem
));
34 DNS
::getTPL()->display($this->template
);