ZapMachine/lib/ZAPHome.class.php

40 lines
No EOL
517 B
PHP
Executable file

<?php
/**
* Index class
*/
class ZAPHome {
/**
* Template file prefix
*/
private $template = 'index';
/**
* ZAP version
*/
private $ver;
/**
* Parsable content
*/
private $tpl = '';
/**
* Constructor
*/
public function __construct() {
$this->ver = ZAP_VERSION;
extract(get_object_vars($this));
ob_start();
include getZAPTemplate($this->template);
$this->tpl .= ob_get_clean();
}
/**
* @return cotent string
*/
public function getContent() {
return $this->tpl;
}
}
?>