Commit 5efa2c52eda3b618aae2d81dc5f04490576cf75b

Authored by Starlone Passos
1 parent b48459a6

Obter protocolo (https ou http)

dto/IndicadoresDTO.php
@@ -16,5 +16,6 @@ class IndicadoresDTO extends InfraDTO { @@ -16,5 +16,6 @@ class IndicadoresDTO extends InfraDTO {
16 $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'Plugins', 'plugins'); 16 $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'Plugins', 'plugins');
17 $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'QuantidadeUnidades', 'quantidade_unidades'); 17 $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'QuantidadeUnidades', 'quantidade_unidades');
18 $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'TamanhoDocumentosExternos', 'tamanho_docs_externos'); 18 $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'TamanhoDocumentosExternos', 'tamanho_docs_externos');
  19 + $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'Protocolo', 'protocolo');
19 } 20 }
20 } 21 }
rn/MdEstatisticasColetarRN.php
@@ -32,6 +32,7 @@ class MdEstatisticasColetarRN extends InfraRN { @@ -32,6 +32,7 @@ class MdEstatisticasColetarRN extends InfraRN {
32 $objIndicadoresDTO->setStrPlugins($this->obterPlugins()); 32 $objIndicadoresDTO->setStrPlugins($this->obterPlugins());
33 $objIndicadoresDTO->setNumQuantidadeUnidades($this->obterQuantidadeUnidades()); 33 $objIndicadoresDTO->setNumQuantidadeUnidades($this->obterQuantidadeUnidades());
34 $objIndicadoresDTO->setNumTamanhoDocumentosExternos($this->obterTamanhoTotalDocumentosExternos()); 34 $objIndicadoresDTO->setNumTamanhoDocumentosExternos($this->obterTamanhoTotalDocumentosExternos());
  35 + $objIndicadoresDTO->setStrProtocolo($this->obterProtocolo());
35 36
36 //... 37 //...
37 38
@@ -57,7 +58,6 @@ class MdEstatisticasColetarRN extends InfraRN { @@ -57,7 +58,6 @@ class MdEstatisticasColetarRN extends InfraRN {
57 return SEI_VERSAO; 58 return SEI_VERSAO;
58 } 59 }
59 60
60 -  
61 private function obterVersaoPHP(){ 61 private function obterVersaoPHP(){
62 InfraDebug::getInstance()->gravar('SEI21 - Versão PHP: ' . phpversion(), InfraLog::$INFORMACAO); 62 InfraDebug::getInstance()->gravar('SEI21 - Versão PHP: ' . phpversion(), InfraLog::$INFORMACAO);
63 return phpversion(); 63 return phpversion();
@@ -120,6 +120,18 @@ class MdEstatisticasColetarRN extends InfraRN { @@ -120,6 +120,18 @@ class MdEstatisticasColetarRN extends InfraRN {
120 InfraDebug::getInstance()->gravar('SEI12 - Tamanho Documentos Externos: ' . $tamanho, InfraLog::$INFORMACAO); 120 InfraDebug::getInstance()->gravar('SEI12 - Tamanho Documentos Externos: ' . $tamanho, InfraLog::$INFORMACAO);
121 return $tamanho; 121 return $tamanho;
122 } 122 }
  123 + private function obterProtocolo(){
  124 + $objConfiguracaoSEI = ConfiguracaoSEI::getInstance();
  125 + if ($objConfiguracaoSEI->isSetValor('SessaoSEI', 'https')){
  126 + $temHTTPS = $objConfiguracaoSEI->getValor('SessaoSEI', 'https');
  127 + $protocolo = 'HTTP';
  128 + if ($temHTTPS) {
  129 + $protocolo = 'HTTPS';
  130 + }
  131 + InfraDebug::getInstance()->gravar('SEI12 - Protocolo: ' . $protocolo, InfraLog::$INFORMACAO);
  132 + return $protocolo;
  133 + }
  134 + }
123 135
124 } 136 }
125 ?> 137 ?>