6 public function render($arEvents)
8 $tbl = new \Console_Table(
9 CONSOLE_TABLE_ALIGN_LEFT,
10 array('sect' => '', 'rule' => '-', 'vert' => '')
12 $tbl->setAlign(0, CONSOLE_TABLE_ALIGN_RIGHT);
13 $tbl->setAlign(1, CONSOLE_TABLE_ALIGN_RIGHT);
16 array('Days', 'Age', 'Name', 'Event', 'Date', 'Day')
19 foreach ($arEvents as $event) {
24 wordwrap($event->title, 30, "\n", true),
25 wordwrap($event->type, 20, "\n", true),
27 strftime('%a', strtotime($event->localDate))
31 return $tbl->getTable();