Commit c2aacb8a2d369b2e76cba821675b6f596e7ec1d6
1 parent
84131092
Exists in
master
and in
1 other branch
Indicador 13 - Navegadores
Showing
2 changed files
with
20 additions
and
0 deletions
Show diff stats
dto/IndicadoresDTO.php
| ... | ... | @@ -18,5 +18,6 @@ class IndicadoresDTO extends InfraDTO { |
| 18 | 18 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'TamanhoDocumentosExternos', 'tamanho_docs_externos'); |
| 19 | 19 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'Protocolo', 'protocolo'); |
| 20 | 20 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'QuantidadeProcedimentos', 'quantidade_procedimentos'); |
| 21 | + $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'Navegadores', 'navegadores'); | |
| 21 | 22 | } |
| 22 | 23 | } | ... | ... |
rn/MdEstatisticasColetarRN.php
| ... | ... | @@ -34,6 +34,7 @@ class MdEstatisticasColetarRN extends InfraRN { |
| 34 | 34 | $objIndicadoresDTO->setNumTamanhoDocumentosExternos($this->obterTamanhoTotalDocumentosExternos()); |
| 35 | 35 | $objIndicadoresDTO->setStrProtocolo($this->obterProtocolo()); |
| 36 | 36 | $objIndicadoresDTO->setNumQuantidadeProcedimentos($this->obterQuantidadeProcessosAdministrativos()); |
| 37 | + $objIndicadoresDTO->setStrNavegadores($this->obterNavegadores()); | |
| 37 | 38 | |
| 38 | 39 | //... |
| 39 | 40 | |
| ... | ... | @@ -144,5 +145,23 @@ class MdEstatisticasColetarRN extends InfraRN { |
| 144 | 145 | return $quantidade; |
| 145 | 146 | } |
| 146 | 147 | |
| 148 | + private function obterNavegadores(){ | |
| 149 | + $query = "select count(*) as quantidade, identificacao, versao from infra_navegador group by identificacao,versao"; | |
| 150 | + $rs = BancoSEI::getInstance()->consultarSql($query); | |
| 151 | + $lista = array(); | |
| 152 | + foreach($rs as $r) { | |
| 153 | + $result = array( | |
| 154 | + 'quantidade' => $r['quantidade'], | |
| 155 | + 'navegador' => $r['identificacao'], | |
| 156 | + 'versao' => $r['versao'] | |
| 157 | + ); | |
| 158 | + array_push($lista, $result); | |
| 159 | + } | |
| 160 | + $resultado = json_encode($lista); | |
| 161 | + | |
| 162 | + InfraDebug::getInstance()->gravar('SEI13 - Quantidade de Navegadores: ' . $resultado, InfraLog::$INFORMACAO); | |
| 163 | + return $quantidade; | |
| 164 | + } | |
| 165 | + | |
| 147 | 166 | } |
| 148 | 167 | ?> | ... | ... |