Commit b48459a63d940e1047a06148591930b203bd6c91
1 parent
9669509a
Exists in
master
and in
1 other branch
Adicionando obter versao php
Showing
2 changed files
with
8 additions
and
0 deletions
Show diff stats
dto/IndicadoresDTO.php
@@ -11,6 +11,7 @@ class IndicadoresDTO extends InfraDTO { | @@ -11,6 +11,7 @@ class IndicadoresDTO extends InfraDTO { | ||
11 | public function montar() { | 11 | public function montar() { |
12 | 12 | ||
13 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'VersaoSEI', 'versao_sei'); | 13 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'VersaoSEI', 'versao_sei'); |
14 | + $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'VersaoPHP', 'versao_php'); | ||
14 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'TamanhoFileSystem', 'tamanho_file_system'); | 15 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'TamanhoFileSystem', 'tamanho_file_system'); |
15 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'Plugins', 'plugins'); | 16 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'Plugins', 'plugins'); |
16 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'QuantidadeUnidades', 'quantidade_unidades'); | 17 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'QuantidadeUnidades', 'quantidade_unidades'); |
rn/MdEstatisticasColetarRN.php
@@ -27,6 +27,7 @@ class MdEstatisticasColetarRN extends InfraRN { | @@ -27,6 +27,7 @@ class MdEstatisticasColetarRN extends InfraRN { | ||
27 | 27 | ||
28 | //2) Preencher cada indicador do sistema | 28 | //2) Preencher cada indicador do sistema |
29 | $objIndicadoresDTO->setStrVersaoSEI($this->obterVersaoSEI()); | 29 | $objIndicadoresDTO->setStrVersaoSEI($this->obterVersaoSEI()); |
30 | + $objIndicadoresDTO->setStrVersaoPHP($this->obterVersaoPHP()); | ||
30 | $objIndicadoresDTO->setNumTamanhoFileSystem($this->obterTamanhoFileSystem()); | 31 | $objIndicadoresDTO->setNumTamanhoFileSystem($this->obterTamanhoFileSystem()); |
31 | $objIndicadoresDTO->setStrPlugins($this->obterPlugins()); | 32 | $objIndicadoresDTO->setStrPlugins($this->obterPlugins()); |
32 | $objIndicadoresDTO->setNumQuantidadeUnidades($this->obterQuantidadeUnidades()); | 33 | $objIndicadoresDTO->setNumQuantidadeUnidades($this->obterQuantidadeUnidades()); |
@@ -56,6 +57,12 @@ class MdEstatisticasColetarRN extends InfraRN { | @@ -56,6 +57,12 @@ class MdEstatisticasColetarRN extends InfraRN { | ||
56 | return SEI_VERSAO; | 57 | return SEI_VERSAO; |
57 | } | 58 | } |
58 | 59 | ||
60 | + | ||
61 | + private function obterVersaoPHP(){ | ||
62 | + InfraDebug::getInstance()->gravar('SEI21 - Versão PHP: ' . phpversion(), InfraLog::$INFORMACAO); | ||
63 | + return phpversion(); | ||
64 | + } | ||
65 | + | ||
59 | private function getDirectorySize($path){ | 66 | private function getDirectorySize($path){ |
60 | $bytestotal = 0; | 67 | $bytestotal = 0; |
61 | $path = realpath($path); | 68 | $path = realpath($path); |