X-Git-Url: https://git.cweiske.de/bdrem.git/blobdiff_plain/1fc9283634a4c281c3a2c5678bdef63c16738f23..58718ac761b64c5d093a135d6735300835f5d47c:/src/bdrem/Renderer/Console.php diff --git a/src/bdrem/Renderer/Console.php b/src/bdrem/Renderer/Console.php index fc2174f..87eeb9a 100644 --- a/src/bdrem/Renderer/Console.php +++ b/src/bdrem/Renderer/Console.php @@ -1,8 +1,10 @@ loadConfig(); if ($this->ansi) { $this->cc = new \Console_Color2(); } $tbl = new \Console_Table( CONSOLE_TABLE_ALIGN_LEFT, - array('sect' => '', 'rule' => '-', 'vert' => ''), + array('intersection' => '', 'horizontal' => '-', 'vertical' => ''), 1, null, $this->ansi ); $tbl->setAlign(0, CONSOLE_TABLE_ALIGN_RIGHT); @@ -57,7 +60,7 @@ class Renderer_Console $event->age, wordwrap($event->title, 30, "\n", true), wordwrap($event->type, 20, "\n", true), - $event->date, + $this->getLocalDate($event->date), strftime('%a', strtotime($event->localDate)) ), $colorCode @@ -80,5 +83,12 @@ class Renderer_Console } return $data; } + + protected function loadConfig() + { + if (isset($this->config->ansi)) { + $this->ansi = $this->config->ansi; + } + } } ?>