web text renderer
[bdrem.git] / src / bdrem / Web.php
index 4222551..ac619ce 100644 (file)
@@ -14,7 +14,11 @@ class Web
             date('Y-m-d'), $cfg->daysBefore, $cfg->daysAfter
         );
         usort($arEvents, '\\bdrem\\Event::compare');
+        $this->render($arEvents);
+    }
 
+    public function render($arEvents)
+    {
         $r = new Renderer_Html();
         echo $r->render($arEvents);
     }