/** * Método para listar las autitorías del sistema * @param type $fecha * @return type */ public function listar($fecha = '', $formato = 'html') { $fecha = empty($fecha) ? date("Y-m-d") : Filter::get($fecha, 'date'); if (empty($fecha)) { DwMessage::info('Selecciona la fecha del archivo'); return View::error(); } $audits = Sistema::getAudit($fecha); $this->audits = $audits; $this->fecha = $fecha; $this->page_module = 'Auditorías del sistema ' . $fecha; $this->page_format = $formato; }
/** * Método para listar las autitorías del sistema * @param type $fecha * @return type */ public function listar($fecha = '', $page = 'page.1') { $fecha = empty($fecha) ? date("Y-m-d") : Filter::get($fecha, 'date'); if (empty($fecha)) { Flash::info('Selecciona la fecha del archivo'); return Redirect::toAction('index'); } $page = Filter::get($page, 'page') > 0 ? Filter::get($page, 'page') : 1; $audits = Sistema::getAudit($fecha, $page); $this->audits = $audits; $this->fecha = $fecha; $this->page_module = 'Auditorías del sistema ' . $fecha; }