Represents the media:content element of Media RSS.
Represents media objects. Multiple media objects representing the same content can be represented using a media:group (Zend_Gdata_Media_Extension_MediaGroup) element.
category | Zend |
---|---|
package | Zend_Gdata |
subpackage | Media |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Gdata_Extension |
__construct($url= null
, $fileSize= null
, $type= null
, $medium= null
, $isDefault= null
, $expression= null
, $bitrate= null
, $framerate= null
, $samplingrate= null
, $channels= null
, $duration= null
, $height= null
, $width= null
, $lang= null
)
inherited_from | \Zend_Gdata_Extension::__construct() |
---|
__construct()
__get(string $name)
TODO Remove ability to bypass getFoo() methods??
string
The variable name sought
__isset(string $name)
string
__set(string $name, $val)
Alternatively, if no setFoo() is defined, but a $_foo protected variable is defined, this is returned.
TODO Remove ability to bypass getFoo() methods??
string
__toString() : string
string
The URL representing this MediaContent object.__toString() : string
string
The text representation of this object__unset(string $name)
string
encode() : string
Can be overridden by children to provide more complex representations of entries.
string
Encoded string contentflushNamespaceLookupCache()
Empties the namespace lookup cache. Call this function if you have added data to the namespace lookup table that contradicts values that may have been cached during a previous call to lookupNamespace().
getBitrate() : integer
integer
getChannels() : integer
integer
getDOM(\DOMDocument $doc= null
, $majorVersion= 1
, $minorVersion= null
) : \DOMElement
\DOMDocument
The DOMDocument used to construct DOMElements
\DOMElement
The DOMElement representing this element and all
child properties.getDOM(\DOMDocument $doc= null
, $majorVersion= 1
, $minorVersion= null
) : \DOMElement
\DOMDocument
The DOMDocument used to construct DOMElements
\DOMElement
The DOMElement representing this element and all
child properties.getDuration() : integer
integer
getExpression() : string
string
getExtensionAttributes() : array
array
All extension attributesgetExtensionElements() : array
array
All elements not matched to data model classes during parsinggetFileSize() : integer
integer
The size of the media in bytesgetFramerate() : integer
integer
getHeight() : integer
integer
getIsDefault() : boolean
boolean
getLang() : string
string
getMedium() : string
string
getSamplingrate() : integer
integer
getText($trim = true
) : string
string
Child text nodegetType() : string
string
getUrl() : string
string
The direct URL to the media objectgetWidth() : integer
integer
getXML() : string
string
XML contentlookupNamespace(string $prefix, integer $majorVersion= 1
, integer $minorVersion= null
) : string
Looks up a prefix (atom:, etc.) in the list of registered namespaces and returns the full namespace URI if available. Returns the prefix, unmodified, if it's not registered.
string
The namespace prefix to lookup.
integer
The major protocol version in effect. Defaults to '1'.
integer
The minor protocol version in effect. Defaults to null (use latest).
string
registerAllNamespaces(array $namespaceArray) : void
Takes an array in the format of: namespace prefix, namespace URI, major protocol version, minor protocol version and adds them with calls to ->registerNamespace()
array
An array of namespaces.
registerNamespace(string $prefix, string $namespaceUri, integer $majorVersion= 1
, integer $minorVersion= 0
) : void
Takes a prefix and a full namespace URI and adds them to the list of registered namespaces for use by $this->lookupNamespace().
WARNING: Currently, registering a namespace will NOT invalidate any memoized data stored in $_namespaceLookupCache. Under normal use, this behavior is acceptable. If you are adding contradictory data to the namespace lookup table, you must call flushNamespaceLookupCache().
string
The namespace prefix
string
The full namespace URI
integer
The major protocol version in effect. Defaults to '1'.
integer
The minor protocol version in effect. Defaults to null (use latest).
saveXML() : string
string
XML contentsetBitrate($value) : \Zend_Gdata_Media_Extension_MediaContent
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetChannels($value) : \Zend_Gdata_Media_Extension_MediaContent
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetDuration($value) : \Zend_Gdata_Media_Extension_MediaContent
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetExpression($value) : \Zend_Gdata_Media_Extension_MediaContent
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetExtensionAttributes(array $value) : \Zend_Gdata_App_Base
array
All extension attributes
\Zend_Gdata_App_Base
Returns an object of the same type as 'this' to provide a fluent interface.setExtensionElements(array $value) : \Zend_Gdata_App_Base
array
All extension elements
\Zend_Gdata_App_Base
Returns an object of the same type as 'this' to provide a fluent interface.setFileSize(integer $value) : \Zend_Gdata_Media_Extension_MediaContent
integer
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetFramerate($value) : \Zend_Gdata_Media_Extension_MediaContent
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetHeight($value) : \Zend_Gdata_Media_Extension_MediaContent
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetIsDefault(boolean $value) : \Zend_Gdata_Media_Extension_MediaContent
boolean
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetLang($value) : \Zend_Gdata_Media_Extension_MediaContent
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetMedium(string $value) : \Zend_Gdata_Media_Extension_MediaContent
string
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetSamplingrate($value) : \Zend_Gdata_Media_Extension_MediaContent
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetText(string $value) : \Zend_Gdata_App_Base
string
Child text node
\Zend_Gdata_App_Base
Returns an object of the same type as 'this' to provide a fluent interface.setType(string $value) : \Zend_Gdata_Media_Extension_MediaContent
string
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetUrl(string $value) : \Zend_Gdata_Media_Extension_MediaContent
string
The direct URL to the media object
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacesetWidth($value) : \Zend_Gdata_Media_Extension_MediaContent
\Zend_Gdata_Media_Extension_MediaContent
Provides a fluent interfacetransferFromDOM(\DOMNode $node)
This is called when XML is received over the wire and the data model needs to be built to represent this XML.
\DOMNode
The DOMNode that represents this object's data
transferFromXML(string $xml)
string
The XML text to parse
takeAttributeFromDOM(\DOMNode $attribute)
\DOMNode
The DOMNode attribute needed to be handled
takeAttributeFromDOM(\DOMNode $attribute)
\DOMNode
The DOMNode attribute needed to be handled
takeChildFromDOM(\DOMNode $child)
\DOMNode
The DOMNode needed to be handled
$_bitrate : integer
null
$_channels : integer
null
$_duration : integer
null
$_expression : string
null
$_extensionAttributes : array
array()
$_extensionElements : array
array()
$_fileSize : integer
null
$_framerate : integer
null
$_height : integer
null
$_isDefault : string
null
$_lang : string
null
$_medium : string
null
$_namespaceLookupCache : array
array()
$_namespaces : array
array('atom' => array(1 => array(0 => 'http://www.w3.org/2005/Atom')), 'app' => array(1 => array(0 => 'http://purl.org/atom/app#'), 2 => array(0 => 'http://www.w3.org/2007/app')))
$_rootElement
'content'
$_rootElement : string
null
$_rootNamespace
'media'
inherited_from | \Zend_Gdata_Extension::_rootNamespace |
---|
$_rootNamespace : string
'atom'
$_rootNamespaceURI : string
null
$_samplingrate : integer
null
$_text : string
null
$_type : string
null
$_url : string
null
$_width : integer
null