| @@ 7755-7784 (lines=30) @@ | ||
| 7752 | $credits = array_values(array_unique($credits)); |
|
| 7753 | } |
|
| 7754 | } |
|
| 7755 | elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['credit'])) |
|
| 7756 | { |
|
| 7757 | foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['credit'] as $credit) |
|
| 7758 | { |
|
| 7759 | $credit_role = null; |
|
| 7760 | $credit_scheme = null; |
|
| 7761 | $credit_name = null; |
|
| 7762 | if (isset($credit['attribs']['']['role'])) |
|
| 7763 | { |
|
| 7764 | $credit_role = $this->sanitize($credit['attribs']['']['role'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 7765 | } |
|
| 7766 | if (isset($credit['attribs']['']['scheme'])) |
|
| 7767 | { |
|
| 7768 | $credit_scheme = $this->sanitize($credit['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 7769 | } |
|
| 7770 | else |
|
| 7771 | { |
|
| 7772 | $credit_scheme = 'urn:ebu'; |
|
| 7773 | } |
|
| 7774 | if (isset($credit['data'])) |
|
| 7775 | { |
|
| 7776 | $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 7777 | } |
|
| 7778 | $credits[] = $this->registry->create('Credit', array($credit_role, $credit_scheme, $credit_name)); |
|
| 7779 | } |
|
| 7780 | if (is_array($credits)) |
|
| 7781 | { |
|
| 7782 | $credits = array_values(array_unique($credits)); |
|
| 7783 | } |
|
| 7784 | } |
|
| 7785 | else |
|
| 7786 | { |
|
| 7787 | $credits = $credits_parent; |
|
| @@ 7989-8014 (lines=26) @@ | ||
| 7986 | $restrictions = array_values(array_unique($restrictions)); |
|
| 7987 | } |
|
| 7988 | } |
|
| 7989 | elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['restriction'])) |
|
| 7990 | { |
|
| 7991 | foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['restriction'] as $restriction) |
|
| 7992 | { |
|
| 7993 | $restriction_relationship = null; |
|
| 7994 | $restriction_type = null; |
|
| 7995 | $restriction_value = null; |
|
| 7996 | if (isset($restriction['attribs']['']['relationship'])) |
|
| 7997 | { |
|
| 7998 | $restriction_relationship = $this->sanitize($restriction['attribs']['']['relationship'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 7999 | } |
|
| 8000 | if (isset($restriction['attribs']['']['type'])) |
|
| 8001 | { |
|
| 8002 | $restriction_type = $this->sanitize($restriction['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 8003 | } |
|
| 8004 | if (isset($restriction['data'])) |
|
| 8005 | { |
|
| 8006 | $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 8007 | } |
|
| 8008 | $restrictions[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value)); |
|
| 8009 | } |
|
| 8010 | if (is_array($restrictions)) |
|
| 8011 | { |
|
| 8012 | $restrictions = array_values(array_unique($restrictions)); |
|
| 8013 | } |
|
| 8014 | } |
|
| 8015 | else |
|
| 8016 | { |
|
| 8017 | $restrictions = $restrictions_parent; |
|
| @@ 8261-8294 (lines=34) @@ | ||
| 8258 | $copyrights = $copyrights_parent; |
|
| 8259 | } |
|
| 8260 | // CREDITS |
|
| 8261 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['credit'])) |
|
| 8262 | { |
|
| 8263 | foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['credit'] as $credit) |
|
| 8264 | { |
|
| 8265 | $credit_role = null; |
|
| 8266 | $credit_scheme = null; |
|
| 8267 | $credit_name = null; |
|
| 8268 | if (isset($credit['attribs']['']['role'])) |
|
| 8269 | { |
|
| 8270 | $credit_role = $this->sanitize($credit['attribs']['']['role'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 8271 | } |
|
| 8272 | if (isset($credit['attribs']['']['scheme'])) |
|
| 8273 | { |
|
| 8274 | $credit_scheme = $this->sanitize($credit['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 8275 | } |
|
| 8276 | else |
|
| 8277 | { |
|
| 8278 | $credit_scheme = 'urn:ebu'; |
|
| 8279 | } |
|
| 8280 | if (isset($credit['data'])) |
|
| 8281 | { |
|
| 8282 | $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 8283 | } |
|
| 8284 | $credits[] = $this->registry->create('Credit', array($credit_role, $credit_scheme, $credit_name)); |
|
| 8285 | } |
|
| 8286 | if (is_array($credits)) |
|
| 8287 | { |
|
| 8288 | $credits = array_values(array_unique($credits)); |
|
| 8289 | } |
|
| 8290 | } |
|
| 8291 | else |
|
| 8292 | { |
|
| 8293 | $credits = $credits_parent; |
|
| 8294 | } |
|
| 8295 | // DESCRIPTION |
|
| 8296 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description'])) |
|
| 8297 | { |
|
| @@ 8395-8424 (lines=30) @@ | ||
| 8392 | $ratings = $ratings_parent; |
|
| 8393 | } |
|
| 8394 | // RESTRICTIONS |
|
| 8395 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['restriction'])) |
|
| 8396 | { |
|
| 8397 | foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['restriction'] as $restriction) |
|
| 8398 | { |
|
| 8399 | $restriction_relationship = null; |
|
| 8400 | $restriction_type = null; |
|
| 8401 | $restriction_value = null; |
|
| 8402 | if (isset($restriction['attribs']['']['relationship'])) |
|
| 8403 | { |
|
| 8404 | $restriction_relationship = $this->sanitize($restriction['attribs']['']['relationship'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 8405 | } |
|
| 8406 | if (isset($restriction['attribs']['']['type'])) |
|
| 8407 | { |
|
| 8408 | $restriction_type = $this->sanitize($restriction['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 8409 | } |
|
| 8410 | if (isset($restriction['data'])) |
|
| 8411 | { |
|
| 8412 | $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 8413 | } |
|
| 8414 | $restrictions[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value)); |
|
| 8415 | } |
|
| 8416 | if (is_array($restrictions)) |
|
| 8417 | { |
|
| 8418 | $restrictions = array_values(array_unique($restrictions)); |
|
| 8419 | } |
|
| 8420 | } |
|
| 8421 | else |
|
| 8422 | { |
|
| 8423 | $restrictions = $restrictions_parent; |
|
| 8424 | } |
|
| 8425 | // THUMBNAILS |
|
| 8426 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['thumbnail'])) |
|
| 8427 | { |
|