Class SimplePie_Enclosure
Handles everything related to enclosures (including Media RSS and iTunes RSS)
Used by SimplePie_Item::get_enclosure() and SimplePie_Item::get_enclosures()
This class can be overloaded with SimplePie::set_enclosure_class()
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: BSD License
Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Located at SimplePie/Enclosure.php
public
|
#
__construct( $link = null, $type = null, $length = null, $javascript = null, $bitrate = null, $captions = null, $categories = null, $channels = null, $copyright = null, $credits = null, $description = null, $duration = null, $expression = null, $framerate = null, $hashes = null, $height = null, $keywords = null, $lang = null, $medium = null, $player = null, $ratings = null, $restrictions = null, $samplingrate = null, $thumbnails = null, $title = null, $width = null )
Constructor, used to input the data For documentation on all the parameters, see the corresponding properties and their accessors Uses
idna_convert If available, this will convert an IDN
|
public
string
|
|
public
string|null
|
|
public
|
#
get_caption( integer $key = 0 )
|
public
array|null
|
|
public
|
#
get_category( integer $key = 0 )
|
public
array|null
|
|
public
integer|null
|
|
public
|
|
public
|
#
get_credit( integer $key = 0 )
|
public
array|null
|
|
public
string|null
|
|
public
string|integer|null
|
#
get_duration( string $convert = false )
Get the duration of the enclosure Parameters
Returnsstring|integer|null'hh:mm:ss' string if $convert was specified, otherwise integer (or
null if none found) |
public
string
|
#
get_expression( )
Get the expression ReturnsstringProbably one of 'sample', 'full', 'nonstop', 'clip'. Defaults to 'full' |
public
string|null
|
|
public
string|null
|
|
public
string|null
|
#
get_handler( )
Get the preferred handler Returnsstring|nullOne of 'flash', 'fmedia', 'quicktime', 'wmedia', 'mp3' |
public
string|null
|
|
public
array|null
|
#
get_hashes( )
|
public
string|null
|
|
public
string|null
|
|
public
string|null
|
|
public
array|null
|
|
public
float
|
|
public
string|null
|
|
public
string|null
|
#
get_medium( )
Get the medium Returnsstring|nullShould be one of 'image', 'audio', 'video', 'document', 'executable' Link |
public
string|null
|
#
get_player( )
Get the player URL Typically the same as get_permalink() Returnsstring|nullPlayer URL |
public
|
#
get_rating( integer $key = 0 )
|
public
array|null
|
|
public
|
#
get_restriction( integer $key = 0 )
|
public
array|null
|
|
public
string|null
|
|
public
float|null
|
|
public
string|null
|
#
get_thumbnail( integer $key = 0 )
Get a single thumbnail Parameters
Returnsstring|nullThumbnail URL |
public
array|null
|
|
public
string|null
|
|
public
string|null
|
|
public
string|null
|
|
public
string
|
#
native_embed( array|string $options = '' )
Embed the enclosure using Deprecated
Use the second parameter to
SimplePie_Enclosure::embed() insteadParameters
ReturnsstringHTML string to output |
public
string
|
#
embed( array|string $options = '', boolean $native = false )
Embed the enclosure using Javascript
Note: Non-widescreen (4:3) mode with Parameters
ReturnsstringHTML string to output |
public
string
|
#
get_real_type( boolean $find_handler = false )
Get the real media type Often, feeds lie to us, necessitating a bit of deeper inspection. This converts types to their canonical representations based on the file extension Parameters
ReturnsstringMIME type See |
public
string
|
$bitrate | |
|
public
array
|
$captions | |
|
public
array
|
$categories | |
|
public
integer
|
$channels | |
|
public
|
$copyright | |
|
public
array
|
$credits | |
|
public
string
|
$description | |
|
public
integer
|
$duration | |
|
public
string
|
$expression | |
|
public
string
|
$framerate | |
|
public
string
|
$handler | |
|
public
array
|
$hashes | |
|
public
string
|
$height | |
|
public
null
|
$javascript | |
#
Deprecated |
public
array
|
$keywords | |
|
public
string
|
$lang | |
|
public
string
|
$length | |
|
public
string
|
$link | |
|
public
string
|
$medium | |
|
public
string
|
$player | |
|
public
array
|
$ratings | |
|
public
array
|
$restrictions | |
|
public
string
|
$samplingrate | |
|
public
array
|
$thumbnails | |
|
public
string
|
$title | |
|
public
string
|
$type | |
|
public
string
|
$width | |
