| @@ 325-333 (lines=9) @@ | ||
| 322 | * |
|
| 323 | * @return mixed nodeValue |
|
| 324 | */ |
|
| 325 | protected static function parseDomByXpathsToInteger($xpathDom, $xpathQueryList) |
|
| 326 | { |
|
| 327 | $nodeValue = static::parseDomByXpathsGetValue($xpathDom, $xpathQueryList); |
|
| 328 | ||
| 329 | if ($nodeValue === null) { |
|
| 330 | return parent::noDataDefaultValue(); |
|
| 331 | } |
|
| 332 | return self::retInt( $nodeValue ); |
|
| 333 | } |
|
| 334 | ||
| 335 | /** |
|
| 336 | * |
|
| @@ 339-349 (lines=11) @@ | ||
| 336 | * |
|
| 337 | * @return mixed nodeValue |
|
| 338 | */ |
|
| 339 | protected static function parseDomByXpathsWithoutTags($xpathDom, $xpathQueryList) |
|
| 340 | { |
|
| 341 | ||
| 342 | $nodeValue = static::parseDomByXpathsGetValue($xpathDom, $xpathQueryList); |
|
| 343 | ||
| 344 | if ($nodeValue === null) { |
|
| 345 | return parent::noDataDefaultValue(); |
|
| 346 | } |
|
| 347 | ||
| 348 | return strip_tags($nodeValue); |
|
| 349 | } |
|
| 350 | ||
| 351 | /** |
|
| 352 | * |
|
| @@ 355-364 (lines=10) @@ | ||
| 352 | * |
|
| 353 | * @return mixed nodeValue |
|
| 354 | */ |
|
| 355 | protected static function parseDomByXpathsToIntegerWithoutTags($xpathDom, $xpathQueryList) |
|
| 356 | { |
|
| 357 | $nodeValue = static::parseDomByXpathsGetValue($xpathDom, $xpathQueryList); |
|
| 358 | ||
| 359 | if ($nodeValue === null) { |
|
| 360 | return parent::noDataDefaultValue(); |
|
| 361 | } |
|
| 362 | ||
| 363 | return self::retInt(strip_tags($nodeValue)); |
|
| 364 | } |
|
| 365 | } |
|
| 366 | ||