@@ 7239-7256 (lines=18) @@ | ||
7236 | // RATINGS |
|
7237 | if ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating')) |
|
7238 | { |
|
7239 | foreach ($ratings as $rating) |
|
7240 | { |
|
7241 | $rating_scheme = null; |
|
7242 | $rating_value = null; |
|
7243 | if (isset($rating['attribs']['']['scheme'])) |
|
7244 | { |
|
7245 | $rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7246 | } |
|
7247 | else |
|
7248 | { |
|
7249 | $rating_scheme = 'urn:simple'; |
|
7250 | } |
|
7251 | if (isset($rating['data'])) |
|
7252 | { |
|
7253 | $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7254 | } |
|
7255 | $ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value)); |
|
7256 | } |
|
7257 | } |
|
7258 | elseif ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit')) |
|
7259 | { |
|
@@ 7273-7290 (lines=18) @@ | ||
7270 | } |
|
7271 | elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating')) |
|
7272 | { |
|
7273 | foreach ($ratings as $rating) |
|
7274 | { |
|
7275 | $rating_scheme = null; |
|
7276 | $rating_value = null; |
|
7277 | if (isset($rating['attribs']['']['scheme'])) |
|
7278 | { |
|
7279 | $rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7280 | } |
|
7281 | else |
|
7282 | { |
|
7283 | $rating_scheme = 'urn:simple'; |
|
7284 | } |
|
7285 | if (isset($rating['data'])) |
|
7286 | { |
|
7287 | $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7288 | } |
|
7289 | $ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value)); |
|
7290 | } |
|
7291 | } |
|
7292 | elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit')) |
|
7293 | { |