|
@@ 7049-7074 (lines=26) @@
|
| 7046 |
|
$credits_parent[] = $this->registry->create('Credit', array($credit_role, $credit_scheme, $credit_name)); |
| 7047 |
|
} |
| 7048 |
|
} |
| 7049 |
|
elseif ($credits = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'credit')) |
| 7050 |
|
{ |
| 7051 |
|
foreach ($credits as $credit) |
| 7052 |
|
{ |
| 7053 |
|
$credit_role = null; |
| 7054 |
|
$credit_scheme = null; |
| 7055 |
|
$credit_name = null; |
| 7056 |
|
if (isset($credit['attribs']['']['role'])) |
| 7057 |
|
{ |
| 7058 |
|
$credit_role = $this->sanitize($credit['attribs']['']['role'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 7059 |
|
} |
| 7060 |
|
if (isset($credit['attribs']['']['scheme'])) |
| 7061 |
|
{ |
| 7062 |
|
$credit_scheme = $this->sanitize($credit['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 7063 |
|
} |
| 7064 |
|
else |
| 7065 |
|
{ |
| 7066 |
|
$credit_scheme = 'urn:ebu'; |
| 7067 |
|
} |
| 7068 |
|
if (isset($credit['data'])) |
| 7069 |
|
{ |
| 7070 |
|
$credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 7071 |
|
} |
| 7072 |
|
$credits_parent[] = $this->registry->create('Credit', array($credit_role, $credit_scheme, $credit_name)); |
| 7073 |
|
} |
| 7074 |
|
} |
| 7075 |
|
if (is_array($credits_parent)) |
| 7076 |
|
{ |
| 7077 |
|
$credits_parent = array_values(array_unique($credits_parent)); |
|
@@ 7346-7367 (lines=22) @@
|
| 7343 |
|
$restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value)); |
| 7344 |
|
} |
| 7345 |
|
} |
| 7346 |
|
elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'restriction')) |
| 7347 |
|
{ |
| 7348 |
|
foreach ($restrictions as $restriction) |
| 7349 |
|
{ |
| 7350 |
|
$restriction_relationship = null; |
| 7351 |
|
$restriction_type = null; |
| 7352 |
|
$restriction_value = null; |
| 7353 |
|
if (isset($restriction['attribs']['']['relationship'])) |
| 7354 |
|
{ |
| 7355 |
|
$restriction_relationship = $this->sanitize($restriction['attribs']['']['relationship'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 7356 |
|
} |
| 7357 |
|
if (isset($restriction['attribs']['']['type'])) |
| 7358 |
|
{ |
| 7359 |
|
$restriction_type = $this->sanitize($restriction['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 7360 |
|
} |
| 7361 |
|
if (isset($restriction['data'])) |
| 7362 |
|
{ |
| 7363 |
|
$restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 7364 |
|
} |
| 7365 |
|
$restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value)); |
| 7366 |
|
} |
| 7367 |
|
} |
| 7368 |
|
elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block')) |
| 7369 |
|
{ |
| 7370 |
|
foreach ($restrictions as $restriction) |