## Zend_Gdata_Media_Extension_MediaContent

Description

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.

- copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license: New BSD License

Located in /Gdata/Media/Extension/MediaContent.php (line 41)

    Zend_Gdata_App_Base
       |
       --Zend_Gdata_App_Extension
          |
          --Zend_Gdata_Extension
             |
             --Zend_Gdata_Media_Extension_MediaContent

Direct descendents

Class | Description
--- | ---
Zend_Gdata_YouTube_Extension_MediaContent | Represents the media:content element of Media RSS.

Variable Summary
int $_bitrate
int $_channels
int $_duration
string $_expression
int $_fileSize
int $_framerate
int $_height
string $_isDefault
string $_lang
string $_medium
mixed $_rootElement
mixed $_rootNamespace
int $_samplingrate
string $_type
string $_url
int $_width
Method Summary
Zend_Gdata_Media_Extension_MediaContent __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])
int getBitrate ()
int getChannels ()
DOMElement getDOM ([DOMDocument $doc = null], [ $majorVersion = 1], [ $minorVersion = null])
int getDuration ()
string getExpression ()
int getFileSize ()
int getFramerate ()
int getHeight ()
bool getIsDefault ()
string getLang ()
string getMedium ()
int getSamplingrate ()
string getType ()
string getUrl ()
int getWidth ()
Zend_Gdata_Media_Extension_MediaContent setBitrate (int $value)
Zend_Gdata_Media_Extension_MediaContent setChannels (int $value)
Zend_Gdata_Media_Extension_MediaContent setDuration (int $value)
Zend_Gdata_Media_Extension_MediaContent setExpression (string $value)
Zend_Gdata_Media_Extension_MediaContent setFileSize (int $value)
Zend_Gdata_Media_Extension_MediaContent setFramerate (int $value)
Zend_Gdata_Media_Extension_MediaContent setHeight (int $value)
Zend_Gdata_Media_Extension_MediaContent setIsDefault (bool $value)
Zend_Gdata_Media_Extension_MediaContent setLang (string $value)
Zend_Gdata_Media_Extension_MediaContent setMedium (string $value)
Zend_Gdata_Media_Extension_MediaContent setSamplingrate (int $value)
Zend_Gdata_Media_Extension_MediaContent setType (string $value)
Zend_Gdata_Media_Extension_MediaContent setUrl (string $value)
Zend_Gdata_Media_Extension_MediaContent setWidth (int $value)
void takeAttributeFromDOM (DOMNode $attribute)
string __toString ()
Variables
int $_bitrate = null (line 79)

- access: protected

int $_channels = null (line 94)

- access: protected

int $_duration = null (line 99)

- access: protected

string $_expression = null (line 74)

- access: protected

int $_fileSize = null (line 54)

- access: protected

int $_framerate = null (line 84)

- access: protected

int $_height = null (line 104)

- access: protected

string $_isDefault = null (line 69)

- access: protected

string $_lang = null (line 114)

- access: protected

string $_medium = null (line 64)

- access: protected

mixed $_rootElement = 'content' (line 43)

- access: protected

Redefinition of:

Zend_Gdata_App_Base::$_rootElement

Redefined in descendants as:

- Zend_Gdata_YouTube_Extension_MediaContent::$_rootElement

mixed $_rootNamespace = 'media' (line 44)

- access: protected

Redefinition of:

Zend_Gdata_Extension::$_rootNamespace

Redefined in descendants as:

- Zend_Gdata_YouTube_Extension_MediaContent::$_rootNamespace

int $_samplingrate = null (line 89)

- access: protected

string $_type = null (line 59)

- access: protected

string $_url = null (line 49)

- access: protected

int $_width = null (line 109)

- access: protected

#### Inherited Variables

Inherited from Zend_Gdata_App_Base

> Zend_Gdata_App_Base::$_extensionAttributes
> Zend_Gdata_App_Base::$_extensionElements
> Zend_Gdata_App_Base::$_namespaceLookupCache
> Zend_Gdata_App_Base::$_namespaces
> Zend_Gdata_App_Base::$_rootNamespaceURI
> Zend_Gdata_App_Base::$_text

Methods
Constructor __construct (line 119)

Creates an individual MediaContent object.

- access: public

Zend_Gdata_Media_Extension_MediaContent __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])

- $url
- $fileSize
- $type
- $medium
- $isDefault
- $expression
- $bitrate
- $framerate
- $samplingrate
- $channels
- $duration
- $height
- $width
- $lang

Redefinition of:

Zend_Gdata_Extension::__construct()

Redefined in descendants as:

- Zend_Gdata_YouTube_Extension_MediaContent::__construct()

getBitrate (line 380)

- access: public

int getBitrate ()
getChannels (line 434)

- access: public

int getChannels ()
getDOM (line 154)

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.

- return: The DOMElement representing this element and all child properties.
- access: public

DOMElement getDOM ([DOMDocument $doc = null], [ $majorVersion = 1], [ $minorVersion = null])

- DOMDocument $doc: The DOMDocument used to construct DOMElements
- $majorVersion
- $minorVersion

Redefinition of:

Zend_Gdata_App_Base::getDOM()
  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.

Redefined in descendants as:

- Zend_Gdata_YouTube_Extension_MediaContent::getDOM() : 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 (line 452)

- access: public

int getDuration ()
getExpression (line 362)

- access: public

string getExpression ()
getFileSize (line 290)

- return: The size of the media in bytes
- access: public

int getFileSize ()
getFramerate (line 398)

- access: public

int getFramerate ()
getHeight (line 471)

- access: public

int getHeight ()
getIsDefault (line 344)

- access: public

bool getIsDefault ()
getLang (line 507)

- access: public

string getLang ()
getMedium (line 326)

- access: public

string getMedium ()
getSamplingrate (line 416)

- access: public

int getSamplingrate ()
getType (line 308)

- access: public

string getType ()
getUrl (line 272)

- return: The direct URL to the media object
- access: public

string getUrl ()
getWidth (line 489)

- access: public

int getWidth ()
setBitrate (line 389)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setBitrate (int $value)

- int $value

setChannels (line 443)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setChannels (int $value)

- int $value

setDuration (line 462)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setDuration (int $value)

- int $value

setExpression (line 371)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setExpression (string $value)

- string $value

setFileSize (line 299)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setFileSize (int $value)

- int $value

setFramerate (line 407)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setFramerate (int $value)

- int $value

setHeight (line 480)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setHeight (int $value)

- int $value

setIsDefault (line 353)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setIsDefault (bool $value)

- bool $value

setLang (line 516)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setLang (string $value)

- string $value

setMedium (line 335)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setMedium (string $value)

- string $value

setSamplingrate (line 425)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setSamplingrate (int $value)

- int $value

setType (line 317)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setType (string $value)

- string $value

setUrl (line 281)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setUrl (string $value)

- string $value: The direct URL to the media object

setWidth (line 498)

- return: Provides a fluent interface
- access: public

Zend_Gdata_Media_Extension_MediaContent setWidth (int $value)

- int $value

takeAttributeFromDOM (line 209)

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.

- access: protected

void takeAttributeFromDOM (DOMNode $attribute)

- DOMNode $attribute: The DOMNode attribute needed to be handled

Redefinition of:

Zend_Gdata_App_Base::takeAttributeFromDOM()
  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.

Redefined in descendants as:

- Zend_Gdata_YouTube_Extension_MediaContent::takeAttributeFromDOM() : 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.

__toString (line 264)

Returns the URL representing this MediaContent object

- return: The URL representing this MediaContent object.
- access: public

string __toString ()

Redefinition of:

Zend_Gdata_App_Base::__toString()
  Magic toString method allows using this directly via echo Works best in PHP >= 4.2.0

#### Inherited Methods

Inherited From Zend_Gdata_Extension

> Zend_Gdata_Extension::__construct()

Inherited From Zend_Gdata_App_Base

> Zend_Gdata_App_Base::__construct()
> Zend_Gdata_App_Base::encode()
> Zend_Gdata_App_Base::flushNamespaceLookupCache()
> Zend_Gdata_App_Base::getDOM()
> Zend_Gdata_App_Base::getExtensionAttributes()
> Zend_Gdata_App_Base::getExtensionElements()
> Zend_Gdata_App_Base::getText()
> Zend_Gdata_App_Base::getXML()
> Zend_Gdata_App_Base::lookupNamespace()
> Zend_Gdata_App_Base::registerAllNamespaces()
> Zend_Gdata_App_Base::registerNamespace()
> Zend_Gdata_App_Base::saveXML()
> Zend_Gdata_App_Base::setExtensionAttributes()
> Zend_Gdata_App_Base::setExtensionElements()
> Zend_Gdata_App_Base::setText()
> Zend_Gdata_App_Base::takeAttributeFromDOM()
> Zend_Gdata_App_Base::takeChildFromDOM()
> Zend_Gdata_App_Base::transferFromDOM()
> Zend_Gdata_App_Base::transferFromXML()
> Zend_Gdata_App_Base::__get()
> Zend_Gdata_App_Base::__isset()
> Zend_Gdata_App_Base::__set()
> Zend_Gdata_App_Base::__toString()
> Zend_Gdata_App_Base::__unset()

Documentation generated on Tue, 26 Oct 2010 20:08:56 +0400 by phpDocumentor 1.4.2