\SimplePie_Enclosure
Handles everything related to enclosures (including Media RSS and iTunes RSS)
Used by and This class can be overloaded with
Synopsis
class SimplePie_Enclosure
{
- // members
- public $bitrate;
- public $captions;
- public $categories;
- public $channels;
- public SimplePie_Copyright $copyright;
- public $credits;
- public $description;
- public $duration;
- public $expression;
- public $framerate;
- public $handler;
- public $hashes;
- public $height;
- public $javascript;
- public $keywords;
- public $lang;
- public $length;
- public $link;
- public $medium;
- public $player;
- public $ratings;
- public $restrictions;
- public $samplingrate;
- public $thumbnails;
- public $title;
- public $type;
- public $width;
- // methods
- public void __construct()
- public string __toString()
- public string|null get_bitrate()
- public SimplePie_Caption|null get_caption()
- public array|null get_captions()
- public SimplePie_Category|null get_category()
- public array|null get_categories()
- public int|null get_channels()
- public SimplePie_Copyright|null get_copyright()
- public SimplePie_Credit|null get_credit()
- public array|null get_credits()
- public string|null get_description()
- public string|int|null get_duration()
- public string get_expression()
- public string|null get_extension()
- public string|null get_framerate()
- public string|null get_handler()
- public string|null get_hash()
- public array|null get_hashes()
- public string|null get_height()
- public string|null get_language()
- public string|null get_keyword()
- public array|null get_keywords()
- public float get_length()
- public string|null get_link()
- public string|null get_medium()
- public string|null get_player()
- public SimplePie_Rating|null get_rating()
- public array|null get_ratings()
- public SimplePie_Restriction|null get_restriction()
- public array|null get_restrictions()
- public string|null get_sampling_rate()
- public float|null get_size()
- public string|null get_thumbnail()
- public array|null get_thumbnails()
- public string|null get_title()
- public string|null get_type()
- public string|null get_width()
- public string native_embed()
- public string embed()
- public string get_real_type()
Tasks
Line | Task |
---|---|
970+ | If the dimensions for media:content are defined, use them when width/height are set to 'auto'. |
Members
public
- $bitrate — string
- $categories — array
- $channels — int
- $copyright — SimplePie_Copyright
- $credits — array
- $description — string
- $duration — int
- $expression — string
- $framerate — string
- $handler — string
- $hashes — array
- $height — string
- $javascript — null
- $keywords — array
- $lang — string
- $length — string
- $link — string
- $medium — string
- $player — string
- $ratings — array
- $restrictions — array
- $samplingrate — string
- $thumbnails — array
- $title — string
- $type — string
- $width — string
Methods
public
- __construct() — Constructor, used to input the data
- __toString() — String-ified version
- embed() — Embed the enclosure using Javascript
- get_bitrate() — Get the bitrate
- get_categories() — Get all categories
- get_category() — Get a single category
- get_channels() — Get the number of audio channels
- get_copyright() — Get the copyright information
- get_credit() — Get a single credit
- get_credits() — Get all credits
- get_description() — Get the description of the enclosure
- get_duration() — Get the duration of the enclosure
- get_expression() — Get the expression
- get_extension() — Get the file extension
- get_framerate() — Get the framerate (in frames-per-second)
- get_handler() — Get the preferred handler
- get_hash() — Get a single hash
- get_hashes() — Get all credits
- get_height() — Get the height
- get_keyword() — Get a single keyword
- get_keywords() — Get all keywords
- get_language() — Get the language
- get_length() — Get length
- get_link() — Get the URL
- get_medium() — Get the medium
- get_player() — Get the player URL
- get_rating() — Get a single rating
- get_ratings() — Get all ratings
- get_real_type() — Get the real media type
- get_restriction() — Get a single restriction
- get_restrictions() — Get all restrictions
- get_sampling_rate() — Get the sampling rate (in kHz)
- get_size() — Get the file size (in MiB)
- get_thumbnail() — Get a single thumbnail
- get_thumbnails() — Get all thumbnails
- get_title() — Get the title
- get_type() — Get mimetype of the enclosure
- get_width() — Get the width
- native_embed() — Embed the enclosure using `<embed>`