SimplePie_Enclosure
in package
Table of Contents
Properties
- $bitrate : mixed
- $captions : mixed
- $categories : mixed
- $channels : mixed
- $copyright : mixed
- $credits : mixed
- $description : mixed
- $duration : mixed
- $expression : mixed
- $framerate : mixed
- $handler : mixed
- $hashes : mixed
- $height : mixed
- $javascript : mixed
- $keywords : mixed
- $lang : mixed
- $length : mixed
- $link : mixed
- $medium : mixed
- $player : mixed
- $ratings : mixed
- $restrictions : mixed
- $samplingrate : mixed
- $thumbnails : mixed
- $title : mixed
- $type : mixed
- $width : mixed
Methods
- __construct() : mixed
- __toString() : mixed
- get_extension() : string|null
- Get the file extension
- get_handler() : string|null
- Get the preferred handler
- get_real_type() : string
- Get the real media type
- get_thumbnail() : string|null
- Get a single thumbnail
- get_thumbnails() : array<string|int, mixed>|null
- Get all thumbnails
- get_type() : string|null
- Get mimetype of the enclosure
Properties
$bitrate
public
mixed
$bitrate
$captions
public
mixed
$captions
$categories
public
mixed
$categories
$channels
public
mixed
$channels
$copyright
public
mixed
$copyright
$credits
public
mixed
$credits
$description
public
mixed
$description
$duration
public
mixed
$duration
$expression
public
mixed
$expression
$framerate
public
mixed
$framerate
$handler
public
mixed
$handler
$hashes
public
mixed
$hashes
$height
public
mixed
$height
$javascript
public
mixed
$javascript
$keywords
public
mixed
$keywords
$lang
public
mixed
$lang
$length
public
mixed
$length
$link
public
mixed
$link
$medium
public
mixed
$medium
$player
public
mixed
$player
$ratings
public
mixed
$ratings
$restrictions
public
mixed
$restrictions
$samplingrate
public
mixed
$samplingrate
$thumbnails
public
mixed
$thumbnails
$title
public
mixed
$title
$type
public
mixed
$type
$width
public
mixed
$width
Methods
__construct()
public
__construct([mixed $link = null ][, mixed $type = null ][, mixed $length = null ][, mixed $javascript = null ][, mixed $bitrate = null ][, mixed $captions = null ][, mixed $categories = null ][, mixed $channels = null ][, mixed $copyright = null ][, mixed $credits = null ][, mixed $description = null ][, mixed $duration = null ][, mixed $expression = null ][, mixed $framerate = null ][, mixed $hashes = null ][, mixed $height = null ][, mixed $keywords = null ][, mixed $lang = null ][, mixed $medium = null ][, mixed $player = null ][, mixed $ratings = null ][, mixed $restrictions = null ][, mixed $samplingrate = null ][, mixed $thumbnails = null ][, mixed $title = null ][, mixed $width = null ]) : mixed
Parameters
- $link : mixed = null
- $type : mixed = null
- $length : mixed = null
- $javascript : mixed = null
- $bitrate : mixed = null
- $captions : mixed = null
- $categories : mixed = null
- $channels : mixed = null
- $copyright : mixed = null
- $credits : mixed = null
- $description : mixed = null
- $duration : mixed = null
- $expression : mixed = null
- $framerate : mixed = null
- $hashes : mixed = null
- $height : mixed = null
- $keywords : mixed = null
- $lang : mixed = null
- $medium : mixed = null
- $player : mixed = null
- $ratings : mixed = null
- $restrictions : mixed = null
- $samplingrate : mixed = null
- $thumbnails : mixed = null
- $title : mixed = null
- $width : mixed = null
__toString()
public
__toString() : mixed
get_extension()
Get the file extension
public
get_extension() : string|null
Return values
string|nullget_handler()
Get the preferred handler
public
get_handler() : string|null
Return values
string|null —One of 'flash', 'fmedia', 'quicktime', 'wmedia', 'mp3'
get_real_type()
Get the real media type
public
get_real_type([bool $find_handler = false ]) : string
Often, feeds lie to us, necessitating a bit of deeper inspection. This converts types to their canonical representations based on the file extension
Parameters
- $find_handler : bool = false
-
Internal use only, use get_handler() instead
Tags
Return values
string —MIME type
get_thumbnail()
Get a single thumbnail
public
get_thumbnail([int $key = 0 ]) : string|null
Parameters
- $key : int = 0
Return values
string|null —Thumbnail URL
get_thumbnails()
Get all thumbnails
public
get_thumbnails() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null —Array of thumbnail URLs
get_type()
Get mimetype of the enclosure
public
get_type() : string|null
Tags
Return values
string|null —MIME type