/** * Logs data. * * @return void */ public function logs() { $logs = Eight::log_get(TRUE); if (arr::e($logs)) { return; } if (!($table = $this->table('logs'))) { return; } $table->add_column('ep-name'); $table->add_column('ep-column ep-data'); $table->add_column('ep-column ep-data'); $table->add_row(array('Log', 'Level', 'Date'), 'ep-title', ''); str::alternate(); foreach ($logs as $log) { $data = array($name, $value); $class = str::alternate('', 'ep-altrow'); $table->add_row(array_reverse($log), $class); } }