[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/SimplePie/src/ -> Restriction.php (summary)

(no description)

File Size: 115 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Restriction:: (5 methods):
  __construct()
  __toString()
  get_relationship()
  get_type()
  get_value()


Class: Restriction  - X-Ref

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()}
__construct(?string $relationship = null, ?string $type = null, ?string $value = null)   X-Ref
Constructor, used to input the data

For documentation on all the parameters, see the corresponding
properties and their accessors

param: ?self::RELATIONSHIP_* $relationship

__toString()   X-Ref
String-ified version

return: string

get_relationship()   X-Ref
Get the relationship

return: ?self::RELATIONSHIP_*

get_type()   X-Ref
Get the type

return: string|null

get_value()   X-Ref
Get the list of restricted things

return: string|null



Generated : Thu Oct 2 08:20:03 2025 Cross-referenced by PHPXref