D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso_ant
/
adm
/
app
/
gre
/
Models
/
Filename :
GreVerEstrutura.php
back
Copy
<?php namespace App\gre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of GreVerEstrutura * * @copyright (c) year, Carlos Marques */ class GreVerEstrutura { private $Resultado; private $DadosId; public function verEstrut($DadosId) { $this->DadosId = (int) $DadosId; $verEstrut = new \App\adms\Models\helper\AdmsRead(); $verEstrut->fullRead("SELECT estrut.*, filial.nome_fantasia filial_nome, alas.nome alas_nome, unid.nome unid_nome, tipoacomo.nome tipoacomo_nome, acomo.nome acomo_nome FROM gre_estrutura estrut INNER JOIN gre_filial filial on filial.id = estrut.gre_filial_id INNER JOIN gre_alas alas on alas.id = estrut.gre_alas_id INNER JOIN gre_unidade unid on unid.id = estrut.gre_unidade_id INNER JOIN gre_tipo_acomodacao tipoacomo on tipoacomo.id = estrut.gre_tipo_acomodacao_id INNER JOIN gre_acomodacao acomo on acomo.id = estrut.gre_acomodacao_id WHERE estrut.id =:id LIMIT :limit", "id=".$this->DadosId."&limit=1"); $this->Resultado= $verEstrut->getResultado(); return $this->Resultado; } }