| @@ 451-459 (lines=9) @@ | ||
| 448 | * |
|
| 449 | * @return mixed nodeValue |
|
| 450 | */ |
|
| 451 | protected static function parseDomByXpathsToInteger($xpathDom, $xpathQueryList) |
|
| 452 | { |
|
| 453 | $nodeValue = static::parseDomByXpathsGetValue($xpathDom, $xpathQueryList); |
|
| 454 | ||
| 455 | if ($nodeValue === null) { |
|
| 456 | return parent::noDataDefaultValue(); |
|
| 457 | } |
|
| 458 | return self::retInt( $nodeValue ); |
|
| 459 | } |
|
| 460 | ||
| 461 | /** |
|
| 462 | * |
|
| @@ 465-475 (lines=11) @@ | ||
| 462 | * |
|
| 463 | * @return mixed nodeValue |
|
| 464 | */ |
|
| 465 | protected static function parseDomByXpathsWithoutTags($xpathDom, $xpathQueryList) |
|
| 466 | { |
|
| 467 | ||
| 468 | $nodeValue = static::parseDomByXpathsGetValue($xpathDom, $xpathQueryList); |
|
| 469 | ||
| 470 | if ($nodeValue === null) { |
|
| 471 | return parent::noDataDefaultValue(); |
|
| 472 | } |
|
| 473 | ||
| 474 | return strip_tags($nodeValue); |
|
| 475 | } |
|
| 476 | ||
| 477 | /** |
|
| 478 | * |
|
| @@ 481-490 (lines=10) @@ | ||
| 478 | * |
|
| 479 | * @return mixed nodeValue |
|
| 480 | */ |
|
| 481 | protected static function parseDomByXpathsToIntegerWithoutTags($xpathDom, $xpathQueryList) |
|
| 482 | { |
|
| 483 | $nodeValue = static::parseDomByXpathsGetValue($xpathDom, $xpathQueryList); |
|
| 484 | ||
| 485 | if ($nodeValue === null) { |
|
| 486 | return parent::noDataDefaultValue(); |
|
| 487 | } |
|
| 488 | ||
| 489 | return self::retInt(strip_tags($nodeValue)); |
|
| 490 | } |
|
| 491 | } |
|
| 492 | ||