SimplePie: PHP-based RSS and Atom feed handling
 
  • Overview
  • Demo
  • Blog
  • Download
  • Documentation
  • API Docs
  • Support
  • Issue Tracker
  • FAQ
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • SimplePie
    • API
    • Caching
    • HTTP
    • Parsing

Classes

  • SimplePie
  • SimplePie_Author
  • SimplePie_Caption
  • SimplePie_Category
  • SimplePie_Copyright
  • SimplePie_Core
  • SimplePie_Credit
  • SimplePie_Enclosure
  • SimplePie_Item
  • SimplePie_Rating
  • SimplePie_Restriction
  • SimplePie_Source

Class SimplePie_Restriction

Handles <media:restriction> as defined in Media RSS

Used by SimplePie_Enclosure::get_restriction() and SimplePie_Enclosure::get_restrictions()

This class can be overloaded with SimplePie::set_restriction_class()

Package: SimplePie\API
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: BSD License
Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Located at SimplePie/Restriction.php
Methods summary
public
# __construct( $relationship = null, $type = null, $value = null )

Constructor, used to input the data

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

public string
# __toString( )

String-ified version

Returns

string
public string|null
# get_relationship( )

Get the relationship

Returns

string|null
Either 'allow' or 'deny'
public string|null
# get_type( )

Get the type

Returns

string|null
public string|null
# get_value( )

Get the list of restricted things

Returns

string|null
Properties summary
public string $relationship
#

Relationship ('allow'/'deny')

See

SimplePie_Restriction::get_relationship()
public string $type
#

Type of restriction

See

SimplePie_Restriction::get_type()
public string $value
#

Restricted values

See

SimplePie_Restriction::get_value()

Show some love! Wishlists for Geoffrey, Ryan P., and Ryan M.

SimplePie is © 2004–2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue and contributors. Licensed under the BSD License. Hosted thanks to Matt Mullenweg, API documentation generated by ApiGen 2.6.1. Variation on the Feed Icon by Wolfgang Bartelme.