D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
gre
/
Controllers
/
Filename :
ListarIntercorrencia.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of Intercorrencia * * @copyright (c) year, Carlos Marques CM */ class ListarIntercorrencia { private $Dados; private $PageId; public function listar($PageId = null) { $this->Dados = filter_input_array(INPUT_GET, FILTER_DEFAULT); $this->PageId = (int) $PageId ? $PageId : 1; $botao = ['imp_intercor' => ['menu_controller' => 'imp-intercorrencia', 'menu_metodo' => 'imp-lintercor'], 'vis_intercor' => ['menu_controller' => 'ver-intercorrencia', 'menu_metodo' => 'ver-intercor'], 'edit_intercor' => ['menu_controller' => 'editar-intercorrencia', 'menu_metodo' => 'edit-intercor'], 'vol_intercor' => ['menu_controller' => 'carregar-intercorrencia-js', 'menu_metodo' => 'listar'], 'del_intercor' => ['menu_controller' => 'apagar-intercorrencia', 'menu_metodo' => 'apagar-intercor'] ]; $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); $listarMenu = new \App\adms\Models\AdmsMenu(); $this->Dados['menu'] = $listarMenu->itemMenu(); $listIntercor = new \App\gre\Models\GreListarIntercorrencia(); $this->Dados['listIntercor'] = $listIntercor->listIntercor($this->PageId); $this->Dados['paginacao'] = $listIntercor->getResultadoPg(); $carregarView = new \App\gre\core\ConfigView("gre/Views/Intercorrencia/listarIntercorrencia", $this->Dados); $carregarView->renderizarGre(); } }