blob: ac619ce796bfb63e182d87308b6bc66a995fd09c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
namespace bdrem;
class Web
{
public function run()
{
$cfg = new Config();
$cfg->load();
setlocale(LC_TIME, $cfg->locale);
$source = $cfg->loadSource();
$arEvents = $source->getEvents(
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);
}
}
?>
|