ZapMachine/lib/ZAPHome.class.php

40 lines
539 B
PHP
Raw Normal View History

<?php
/**
* Index class
*/
2026-07-18 11:56:54 +02:00
class ZAPHome implements ZAPHandler {
/**
* 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;
}
}
?>