|
@@ 8454-8485 (lines=32) @@
|
| 8451 |
|
} |
| 8452 |
|
} |
| 8453 |
|
} |
| 8454 |
|
foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'link') as $link) |
| 8455 |
|
{ |
| 8456 |
|
if (isset($link['attribs']['']['href']) && !empty($link['attribs']['']['rel']) && $link['attribs']['']['rel'] === 'enclosure') |
| 8457 |
|
{ |
| 8458 |
|
// Attributes |
| 8459 |
|
$bitrate = null; |
| 8460 |
|
$channels = null; |
| 8461 |
|
$duration = null; |
| 8462 |
|
$expression = null; |
| 8463 |
|
$framerate = null; |
| 8464 |
|
$height = null; |
| 8465 |
|
$javascript = null; |
| 8466 |
|
$lang = null; |
| 8467 |
|
$length = null; |
| 8468 |
|
$medium = null; |
| 8469 |
|
$samplingrate = null; |
| 8470 |
|
$type = null; |
| 8471 |
|
$url = null; |
| 8472 |
|
$width = null; |
| 8473 |
|
$url = $this->sanitize($link['attribs']['']['href'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($link)); |
| 8474 |
|
if (isset($link['attribs']['']['type'])) |
| 8475 |
|
{ |
| 8476 |
|
$type = $this->sanitize($link['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 8477 |
|
} |
| 8478 |
|
if (isset($link['attribs']['']['length'])) |
| 8479 |
|
{ |
| 8480 |
|
$length = ceil($link['attribs']['']['length']); |
| 8481 |
|
} |
| 8482 |
|
// Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor |
| 8483 |
|
$this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width)); |
| 8484 |
|
} |
| 8485 |
|
} |
| 8486 |
|
foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'link') as $link) |
| 8487 |
|
{ |
| 8488 |
|
if (isset($link['attribs']['']['href']) && !empty($link['attribs']['']['rel']) && $link['attribs']['']['rel'] === 'enclosure') |
|
@@ 8486-8517 (lines=32) @@
|
| 8483 |
|
$this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width)); |
| 8484 |
|
} |
| 8485 |
|
} |
| 8486 |
|
foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'link') as $link) |
| 8487 |
|
{ |
| 8488 |
|
if (isset($link['attribs']['']['href']) && !empty($link['attribs']['']['rel']) && $link['attribs']['']['rel'] === 'enclosure') |
| 8489 |
|
{ |
| 8490 |
|
// Attributes |
| 8491 |
|
$bitrate = null; |
| 8492 |
|
$channels = null; |
| 8493 |
|
$duration = null; |
| 8494 |
|
$expression = null; |
| 8495 |
|
$framerate = null; |
| 8496 |
|
$height = null; |
| 8497 |
|
$javascript = null; |
| 8498 |
|
$lang = null; |
| 8499 |
|
$length = null; |
| 8500 |
|
$medium = null; |
| 8501 |
|
$samplingrate = null; |
| 8502 |
|
$type = null; |
| 8503 |
|
$url = null; |
| 8504 |
|
$width = null; |
| 8505 |
|
$url = $this->sanitize($link['attribs']['']['href'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($link)); |
| 8506 |
|
if (isset($link['attribs']['']['type'])) |
| 8507 |
|
{ |
| 8508 |
|
$type = $this->sanitize($link['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 8509 |
|
} |
| 8510 |
|
if (isset($link['attribs']['']['length'])) |
| 8511 |
|
{ |
| 8512 |
|
$length = ceil($link['attribs']['']['length']); |
| 8513 |
|
} |
| 8514 |
|
// Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor |
| 8515 |
|
$this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width)); |
| 8516 |
|
} |
| 8517 |
|
} |
| 8518 |
|
if ($enclosure = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'enclosure')) |
| 8519 |
|
{ |
| 8520 |
|
if (isset($enclosure[0]['attribs']['']['url'])) |