Commit e25df5be2bd1b8feab0c90287a80ca02dee41259
1 parent
fc6f734d
Exists in
master
and in
1 other branch
[Feat] Adicionando metodo de validação de atributo carimbo publicação
Showing
1 changed file
with
28 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,28 @@ |
1 | +<?php | |
2 | + | |
3 | +require_once dirname(__FILE__).'/../../../SEI.php'; | |
4 | + | |
5 | +class MdWsSeiEditorRN extends InfraRN | |
6 | +{ | |
7 | + | |
8 | + CONST VERSAO_CARIMBO_PUBLICACAO_OBRIGATORIO = "3.0.7"; | |
9 | + | |
10 | + protected function inicializarObjInfraIBanco(){ | |
11 | + return BancoSEI::getInstance(); | |
12 | + } | |
13 | + | |
14 | + /** | |
15 | + * Método que verifica o o atributo carimbo publicação é obrigatório na versão atual do SEI | |
16 | + * @return bool | |
17 | + */ | |
18 | + public static function versaoCarimboPublicacaoObrigatorio(){ | |
19 | + $numVersaoAtual = intval(str_replace('.', '', SEI_VERSAO)); | |
20 | + $numVersaoCarimboObrigatorio = intval(str_replace('.', '', self::VERSAO_CARIMBO_PUBLICACAO_OBRIGATORIO)); | |
21 | + if($numVersaoAtual >= $numVersaoCarimboObrigatorio){ | |
22 | + return true; | |
23 | + } | |
24 | + | |
25 | + return false; | |
26 | + } | |
27 | + | |
28 | +} | |
0 | 29 | \ No newline at end of file | ... | ... |