| @@ 440-459 (lines=20) @@ | ||
| 437 | * @param stdClass $std |
|
| 438 | * @return DOMElement |
|
| 439 | */ |
|
| 440 | public function taginfPercurso(stdClass $std) |
|
| 441 | { |
|
| 442 | $possible = [ |
|
| 443 | 'UFPer' |
|
| 444 | ]; |
|
| 445 | ||
| 446 | $std = $this->equilizeParameters($std, $possible); |
|
| 447 | foreach ($std->UFPer as $UFPer) { |
|
| 448 | $infPercurso = $this->dom->createElement("infPercurso"); |
|
| 449 | $this->dom->addChild( |
|
| 450 | $infPercurso, |
|
| 451 | "UFPer", |
|
| 452 | $UFPer, |
|
| 453 | true, |
|
| 454 | "Sigla das Unidades da Federação do percurso" |
|
| 455 | ); |
|
| 456 | $this->aInfPercurso[] = $infPercurso; |
|
| 457 | } |
|
| 458 | return $this->aInfPercurso; |
|
| 459 | } |
|
| 460 | ||
| 461 | /** |
|
| 462 | * tagemit |
|
| @@ 1309-1327 (lines=19) @@ | ||
| 1306 | * @param stdClass $std |
|
| 1307 | * @return DOMElement |
|
| 1308 | */ |
|
| 1309 | public function taglacres(stdClass $std) |
|
| 1310 | { |
|
| 1311 | $possible = [ |
|
| 1312 | 'nLacre' |
|
| 1313 | ]; |
|
| 1314 | $std = $this->equilizeParameters($std, $possible); |
|
| 1315 | foreach ($std->nLacre as $nLacre) { |
|
| 1316 | $lacres = $this->dom->createElement("lacres"); |
|
| 1317 | $this->dom->addChild( |
|
| 1318 | $lacres, |
|
| 1319 | "nLacre", |
|
| 1320 | $nLacre, |
|
| 1321 | false, |
|
| 1322 | "Número do lacre" |
|
| 1323 | ); |
|
| 1324 | $this->aLacres[] = $lacres; //array de DOMNode |
|
| 1325 | } |
|
| 1326 | return $this->aLacres; |
|
| 1327 | } |
|
| 1328 | ||
| 1329 | /** |
|
| 1330 | * taginfAdic |
|