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 public function handleStopOnEmpty()
20 abstract public function render($arEvents);
22 protected function getLocalDate($dateStr)
24 if ($dateStr{0} != '?') {
25 return strftime('%x', strtotime($dateStr));
28 $dateStr = str_replace('????', '1899', $dateStr);
32 strftime('%x', strtotime($dateStr))