ZapMachine/lib/ZAPHome.class.php

33 lines
No EOL
455 B
PHP
Executable file

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