Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
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.
int $_bitrate = 'null'
int $_channels = 'null'
int $_duration = 'null'
string $_expression = 'null'
int $_fileSize = 'null'
int $_framerate = 'null'
int $_height = 'null'
string $_isDefault = 'null'
string $_lang = 'null'
string $_medium = 'null'
$_rootElement = 'content'
$_rootNamespace = 'media'
int $_samplingrate = 'null'
string $_type = 'null'
string $_url = 'null'
int $_width = 'null'
__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
)
:
Creates an individual MediaContent object.
__toString(
)
:
string
Returns the URL representing this MediaContent object
getBitrate(
)
:
int
getChannels(
)
:
int
getDOM(
DOMDocument $doc
=
null, $majorVersion
=
1, $minorVersion
=
null
)
:
DOMElement
Retrieves a DOMElement which corresponds to this element and all child properties. This is used to build an entry back into a DOM and eventually XML text for sending to the server upon updates, or for application storage/persistence.
getDuration(
)
:
int
getExpression(
)
:
string
getFileSize(
)
:
int
getFramerate(
)
:
int
getHeight(
)
:
int
getIsDefault(
)
:
bool
getLang(
)
:
string
getMedium(
)
:
string
getSamplingrate(
)
:
int
getType(
)
:
string
getUrl(
)
:
string
getWidth(
)
:
int
setBitrate(
$value
)
:
Zend_Gdata_Media_Extension_MediaContent
setChannels(
$value
)
:
Zend_Gdata_Media_Extension_MediaContent
setDuration(
$value
)
:
Zend_Gdata_Media_Extension_MediaContent
setExpression(
$value
)
:
Zend_Gdata_Media_Extension_MediaContent
setFileSize(
int $value
)
:
Zend_Gdata_Media_Extension_MediaContent
setFramerate(
$value
)
:
Zend_Gdata_Media_Extension_MediaContent
setHeight(
$value
)
:
Zend_Gdata_Media_Extension_MediaContent
setIsDefault(
bool $value
)
:
Zend_Gdata_Media_Extension_MediaContent
setLang(
$value
)
:
Zend_Gdata_Media_Extension_MediaContent
setMedium(
string $value
)
:
Zend_Gdata_Media_Extension_MediaContent
setSamplingrate(
$value
)
:
Zend_Gdata_Media_Extension_MediaContent
setType(
string $value
)
:
Zend_Gdata_Media_Extension_MediaContent
setUrl(
string $value
)
:
Zend_Gdata_Media_Extension_MediaContent
setWidth(
$value
)
:
Zend_Gdata_Media_Extension_MediaContent
takeAttributeFromDOM(
DOMNode $attribute
)
:
Given a DOMNode representing an attribute, tries to map the data into instance members. If no mapping is defined, the name and value are stored in an array.