2016-08-02 21:13:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class page extends Smarty
|
|
|
|
{
|
|
|
|
private $url;
|
|
|
|
private $content = '';
|
|
|
|
private $baseUrl;
|
|
|
|
private $responseCode;
|
|
|
|
private $title;
|
2016-09-28 15:49:00 +00:00
|
|
|
private $domain;
|
2017-04-29 22:12:32 +00:00
|
|
|
private $template;
|
2016-08-02 21:13:25 +00:00
|
|
|
|
|
|
|
//url fkt
|
|
|
|
public function setUrl($url)
|
|
|
|
{
|
|
|
|
$this->url = $url;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getUrl()
|
|
|
|
{
|
|
|
|
//echo parse_url($this->url, PHP_URL_PATH);
|
|
|
|
//print_r($_GET);
|
|
|
|
return parse_url($this->url, PHP_URL_PATH);
|
|
|
|
}
|
|
|
|
|
|
|
|
//baseUrl
|
|
|
|
public function setBaseUrl($baseUrl)
|
|
|
|
{
|
|
|
|
$this->baseUrl = $baseUrl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBaseUrl()
|
|
|
|
{
|
|
|
|
return $this->baseUrl;
|
|
|
|
}
|
|
|
|
|
|
|
|
//content
|
|
|
|
public function setContent($content)
|
|
|
|
{
|
|
|
|
$this->content .= $content;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getContent()
|
|
|
|
{
|
|
|
|
return $this->content;
|
|
|
|
}
|
|
|
|
|
|
|
|
//responseCode
|
|
|
|
public function setResponseCode($responseCode)
|
|
|
|
{
|
|
|
|
$this->responseCode = $responseCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getResponseCode()
|
|
|
|
{
|
|
|
|
return $this->responseCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
///title
|
|
|
|
public function setTitle($title)
|
|
|
|
{
|
|
|
|
$this->title = $title;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTitle()
|
|
|
|
{
|
|
|
|
return $this->title;
|
|
|
|
}
|
|
|
|
|
2017-04-29 22:12:32 +00:00
|
|
|
//Template
|
|
|
|
public function setTemplate($template)
|
2016-08-02 21:13:25 +00:00
|
|
|
{
|
2017-04-29 22:12:32 +00:00
|
|
|
$this->template = $template;
|
2016-08-02 21:13:25 +00:00
|
|
|
}
|
|
|
|
|
2017-04-29 22:12:32 +00:00
|
|
|
public function getTemplate()
|
2016-08-02 21:13:25 +00:00
|
|
|
{
|
2017-04-29 22:12:32 +00:00
|
|
|
return $this->template;
|
2016-08-02 21:13:25 +00:00
|
|
|
}
|
2016-09-28 15:49:00 +00:00
|
|
|
|
|
|
|
public function getDomain()
|
|
|
|
{
|
|
|
|
$this->domain = $_SERVER['HTTP_HOST'];
|
|
|
|
return $this->domain;
|
|
|
|
}
|
2016-08-02 21:13:25 +00:00
|
|
|
}
|