4 abstract class Renderer
6 protected $httpContentType = null;
8 public function renderAndOutput($arEvents)
10 if (PHP_SAPI != 'cli' && $this->httpContentType !== null) {
11 header('Content-type: ' . $this->httpContentType);
13 echo $this->render($arEvents);
16 abstract public function render($arEvents);