<?php
// SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue
// SPDX-License-Identifier: BSD-3-Clause
declare(strict_types=1);
namespace SimplePie;
/**
* Handles `<media:rating>` or `<itunes:explicit>` tags as defined in Media RSS and iTunes RSS respectively
*
* Used by {@see \SimplePie\Enclosure::get_rating()} and {@see \SimplePie\Enclosure::get_ratings()}
*
* This class can be overloaded with {@see \SimplePie\SimplePie::set_rating_class()}
*/
class Rating
{
/**
* Rating scheme
*
* @var ?string
* @see get_scheme()
*/
public $scheme;
/**
* Rating value
*
* @var ?string
* @see get_value()
*/
public $value;
/**
* Constructor, used to input the data
*
* For documentation on all the parameters, see the corresponding
* properties and their accessors
*/
public function __construct(
?string $scheme = null,
?string $value = null
) {
$this->scheme = $scheme;
$this->value = $value;
}
/**
* String-ified version
*
* @return string
*/
public function __toString()
{
// There is no $this->data here
return md5(serialize($this));
}
/**
* Get the organizational scheme for the rating
*
* @return string|null
*/
public function get_scheme()
{
if ($this->scheme !== null) {
return $this->scheme;
}
return null;
}
/**
* Get the value of the rating
*
* @return string|null
*/
public function get_value()
{
if ($this->value !== null) {
return $this->value;
}
return null;
}
}
class_alias('SimplePie\Rating', 'SimplePie_Rating');
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| Cache/ | 2026-10-22 10:47 | 45.36 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Content/ | 2026-10-22 10:47 | 7.47 KB | 76129f60960:kunden | dxwrx-rx-r | |
| HTTP/ | 2026-10-22 10:47 | 33.25 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Net/ | 2026-10-22 10:47 | 7.21 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Parse/ | 2026-10-22 10:47 | 25.13 KB | 76129f60960:kunden | dxwrx-rx-r | |
| XML/ | 2026-10-22 10:47 | 7.56 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Author.php | 2026-10-22 10:47 | 1.86 KB | 76129f60960:kunden | -xw-x--x-- | |
| Cache.php | 2026-10-22 10:47 | 3.17 KB | 76129f60960:kunden | -xw-x--x-- | |
| Caption.php | 2026-10-22 10:47 | 3.03 KB | 76129f60960:kunden | -xw-x--x-- | |
| Category.php | 2026-10-22 10:47 | 2.41 KB | 76129f60960:kunden | -xw-x--x-- | |
| Copyright.php | 2026-10-22 10:47 | 1.67 KB | 76129f60960:kunden | -xw-x--x-- | |
| Credit.php | 2026-10-22 10:47 | 2.09 KB | 76129f60960:kunden | -xw-x--x-- | |
| Enclosure.php | 2026-10-22 10:47 | 31.39 KB | 76129f60960:kunden | -xw-x--x-- | |
| Exception.php | 2026-10-22 10:47 | 355 B | 76129f60960:kunden | -xw-x--x-- | |
| File.php | 2026-10-22 10:47 | 18.94 KB | 76129f60960:kunden | -xw-x--x-- | |
| Gzdecode.php | 2026-10-22 10:47 | 8.31 KB | 76129f60960:kunden | -xw-x--x-- | |
| IRI.php | 2026-10-22 10:47 | 33.99 KB | 76129f60960:kunden | -xw-x--x-- | |
| Item.php | 2026-10-22 10:47 | 128.54 KB | 76129f60960:kunden | -xw-x--x-- | |
| Locator.php | 2026-10-22 10:47 | 16.31 KB | 76129f60960:kunden | -xw-x--x-- | |
| Misc.php | 2026-10-22 10:47 | 68.16 KB | 76129f60960:kunden | -xw-x--x-- | |
| Parser.php | 2026-10-22 10:47 | 34.05 KB | 76129f60960:kunden | -xw-x--x-- | |
| Rating.php | 2026-10-22 10:47 | 1.75 KB | 76129f60960:kunden | -xw-x--x-- | |
| Registry.php | 2026-10-22 10:47 | 7.71 KB | 76129f60960:kunden | -xw-x--x-- | |
| RegistryAware.php | 2026-10-22 10:47 | 447 B | 76129f60960:kunden | -xw-x--x-- | |
| Restriction.php | 2026-10-22 10:47 | 2.31 KB | 76129f60960:kunden | -xw-x--x-- | |
| Sanitize.php | 2026-10-22 10:47 | 29.64 KB | 76129f60960:kunden | -xw-x--x-- | |
| SimplePie.php | 2026-10-22 10:47 | 125.05 KB | 76129f60960:kunden | -xw-x--x-- | |
| Source.php | 2026-10-22 10:47 | 23.18 KB | 76129f60960:kunden | -xw-x--x-- | |