Restriction
Handles <media:restriction>
as defined in Media RSS
Used by {@see \SimplePie\Enclosure::get_restriction()} and {@see \SimplePie\Enclosure::get_restrictions()}
This class can be overloaded with {@see \SimplePie\SimplePie::set_restriction_class()}
- Full name:
\SimplePie\Restriction
Properties
relationship
Relationship ('allow'/'deny')
See Also:
- \SimplePie\get_relationship() -
type
Type of restriction
See Also:
- \SimplePie\get_type() -
value
Restricted values
See Also:
- \SimplePie\get_value() -
Methods
__construct
Constructor, used to input the data
For documentation on all the parameters, see the corresponding properties and their accessors
Parameters:
Parameter | Type | Description |
---|---|---|
$relationship |
mixed | |
$type |
mixed | |
$value |
mixed |
__toString
String-ified version
get_relationship
Get the relationship
Return Value:
Either 'allow' or 'deny'
get_type
Get the type
get_value
Get the list of restricted things
Automatically generated on 2025-03-18