D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso_ant
/
adm
/
app
/
gre
/
Models
/
Filename :
GreAtualizaEnvioEmailIntercorrencia.php
back
Copy
<?php namespace App\gre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of GreEnvioEmailIntercorrencia * * @copyright (c) year, Carlos Marques - CM */ class GreAtualizaEnvioEmailIntercorrencia { private $Resultado; private $Dados; private $DadosId; private $DadosInter; function getResultado() { return $this->Resultado; } public function AtuEmail( $Dados = null) { $this->Dados = $Dados; date_default_timezone_set ("America/Sao_Paulo"); $this->DadosInter['data_email_enviado'] = date("Y-m-d H:i:s"); $this->DadosInter['email_enviado'] = 'S'; if($this->Dados['exige'] == 'S') { $this->DadosInter['adms_sit_id'] = 4; }else{ $this->DadosInter['adms_sit_id'] = 3; } $upEmail = new \App\adms\Models\helper\AdmsUpdate(); $upEmail->exeUpdate("gre_intercorrencia", $this->DadosInter, "WHERE id =:id and email_enviado <> 'S'", "id=" . $this->Dados['id']); if ($upEmail->getResultado()) { $this->Resultado = true; } else { $this->Resultado = false; } } }