Commit 3bf8bbb159e5ec4cd5f99189e6b12f9e1f343fd0
1 parent
79979b88
Exists in
master
and in
1 other branch
Enviando sigla do orgao
Showing
2 changed files
with
9 additions
and
1 deletions
Show diff stats
README.md
... | ... | @@ -26,7 +26,11 @@ Ainda editando o arquivo *sei/sei/config/ConfiguracaoSEI.php* adicione uma nova |
26 | 26 | 'Modulos' => array('MdEstatisticas' => 'mod-sei-estatisticas')), |
27 | 27 | ... |
28 | 28 | 'MdEstatisticas' => array( |
29 | - 'url' => 'http://estatisticas.planejamento.gov.br/estatisticas'), | |
29 | + 'url' => 'http://estatisticas.planejamento.gov.br/estatisticas', | |
30 | + 'sigla' => 'MPOG', | |
31 | + 'chave' => '123456'), | |
32 | + | |
33 | + | |
30 | 34 | ... |
31 | 35 | ``` |
32 | 36 | ... | ... |
rn/MdEstatisticasColetarRN.php
... | ... | @@ -16,8 +16,12 @@ class MdEstatisticasColetarRN extends InfraRN { |
16 | 16 | |
17 | 17 | try { |
18 | 18 | |
19 | + $objConfiguracaoSEI = ConfiguracaoSEI::getInstance(); | |
20 | + $orgaoSigla = $objConfiguracaoSEI->getValor('MdEstatisticas','sigla', false, ''); | |
21 | + | |
19 | 22 | $indicadores = array( |
20 | 23 | 'dataColeta' => $this->obterDataColeta(), |
24 | + 'orgaoSigla' => $orgaoSigla, | |
21 | 25 | 'seiVersao' => $this->obterVersaoSEI(), |
22 | 26 | 'phpVersao' => $this->obterVersaoPHP(), |
23 | 27 | 'memcachedVersao' => $this->obterVersaoMemcached(), | ... | ... |