wppaste
WordPress

Enclosure

Source
wp-includes/SimplePie/src/Enclosure.php:17
Handles everything related to enclosures (including Media RSS and iTunes RSS)

Description

Used by \SimplePie\Item::get_enclosure() and \SimplePie\Item::get_enclosures()

This class can be overloaded with \SimplePie\SimplePie::set_enclosure_class()

Compatibility

WordPress
core
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Properties · 27

$bitrateSimplePie\?stringpublic
$captionsSimplePie\Caption[]|nullpublic
$categoriesSimplePie\Category[]|nullpublic
$channelsSimplePie\?intpublic
$creditsSimplePie\Credit[]|nullpublic
$descriptionSimplePie\?stringpublic
$durationSimplePie\?intpublic
$expressionSimplePie\?stringpublic
$framerateSimplePie\?stringpublic
$handlerSimplePie\?stringpublic
$hashesstring[]|nullpublic
$heightSimplePie\?stringpublic
$javascriptnullpublic
$keywordsstring[]|nullpublic
$langSimplePie\?stringpublic
$lengthSimplePie\?intpublic
$mediumSimplePie\?stringpublic
$playerSimplePie\?stringpublic
$ratingsSimplePie\Rating[]|nullpublic
$restrictionsSimplePie\?Restriction[]public
$samplingrateSimplePie\?stringpublic
$thumbnailsstring[]|nullpublic
$titleSimplePie\?stringpublic
$typeSimplePie\?stringpublic
$widthSimplePie\?stringpublic

Methods · 41

Source code

class Enclosure{    /**     * @var ?string     * @see get_bitrate()     */    public $bitrate;     /**     * @var Caption[]|null     * @see get_captions()     */    public $captions;     /**     * @var Category[]|null     * @see get_categories()     */    public $categories;     /**     * @var ?int     * @see get_channels()     */    public $channels;     /**     * @var ?Copyright     * @see get_copyright()     */    public $copyright;     /**     * @var Credit[]|null     * @see get_credits()     */    public $credits;     /**     * @var ?string     * @see get_description()     */    public $description;     /**     * @var ?int     * @see get_duration()     */    public $duration;     /**     * @var ?string     * @see get_expression()     */    public $expression;     /**     * @var ?string     * @see get_framerate()     */    public $framerate;     /**     * @var ?string     * @see get_handler()     */    public $handler;     /**     * @var string[]|null     * @see get_hashes()     */    public $hashes;     /**     * @var ?string     * @see get_height()     */    public $height;

Changelog

Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/SimplePie/src/Enclosure.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.