blob: a8da7a1efe57e25458ee73572648b3e460aa62d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
namespace bdrem;
abstract class Renderer
{
protected $httpContentType = null;
public function renderAndOutput($arEvents)
{
if (PHP_SAPI != 'cli' && $this->httpContentType !== null) {
header('Content-type: ' . $this->httpContentType);
}
echo $this->render($arEvents);
}
abstract public function render($arEvents);
}
?>
|