Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Gdata_YouTube_Extension_MediaContent Class Reference

Public Member Functions

 __construct ()
 
 getDOM ($doc=null, $majorVersion=1, $minorVersion=null)
 Retrieves a DOMElement which corresponds to this element and all child properties.
 
 getFormat ()
 Returns the format of the media Optional.
 
 setFormat ($value)
 Sets the format of the media.
 
- Public Member Functions inherited from 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)
 Creates an individual MediaContent object.
 
 getDOM ($doc=null, $majorVersion=1, $minorVersion=null)
 Retrieves a DOMElement which corresponds to this element and all child properties.
 
 __toString ()
 Returns the URL representing this MediaContent object.
 
 getUrl ()
 
 setUrl ($value)
 
 getFileSize ()
 
 setFileSize ($value)
 
 getType ()
 
 setType ($value)
 
 getMedium ()
 
 setMedium ($value)
 
 getIsDefault ()
 
 setIsDefault ($value)
 
 getExpression ()
 
 setExpression ($value)
 
 getBitrate ()
 
 setBitrate ($value)
 
 getFramerate ()
 
 setFramerate ($value)
 
 getSamplingrate ()
 
 setSamplingrate ($value)
 
 getChannels ()
 
 setChannels ($value)
 
 getDuration ()
 
 setDuration ($value)
 
 getHeight ()
 
 setHeight ($value)
 
 getWidth ()
 
 setWidth ($value)
 
 getLang ()
 
 setLang ($value)
 
- Public Member Functions inherited from Zend_Gdata_Extension
 __construct ()
 

Protected Member Functions

 takeAttributeFromDOM ($attribute)
 Given a DOMNode representing an attribute, tries to map the data into instance members.
 
- Protected Member Functions inherited from Zend_Gdata_Media_Extension_MediaContent
 takeAttributeFromDOM ($attribute)
 Given a DOMNode representing an attribute, tries to map the data into instance members.
 

Protected Attributes

 $_rootElement = 'content'
 
 $_rootNamespace = 'media'
 
 $_format = null
 
- Protected Attributes inherited from Zend_Gdata_Media_Extension_MediaContent
 $_rootElement = 'content'
 
 $_rootNamespace = 'media'
 
 $_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
 
- Protected Attributes inherited from Zend_Gdata_Extension
 $_rootNamespace = 'gd'
 

Additional Inherited Members

- Static Public Member Functions inherited from Zend_Gdata_App_Base
static flushNamespaceLookupCache ()
 Flush namespace lookup cache.
 
- Static Protected Attributes inherited from Zend_Gdata_App_Base
static $_namespaceLookupCache = array()
 

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

getDOM (   $doc = null,
  $majorVersion = 1,
  $minorVersion = null 
)

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.

Parameters
DOMDocument$docThe DOMDocument used to construct DOMElements
Returns
DOMElement The DOMElement representing this element and all child properties.
getFormat ( )

Returns the format of the media Optional.

Returns
int The format of the media
setFormat (   $value)

Sets the format of the media.

Parameters
int$valueFormat of the media
Returns
Zend_Gdata_YouTube_Extension_MediaContent Provides a fluent interface
takeAttributeFromDOM (   $attribute)
protected

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.

Parameters
DOMNode$attributeThe DOMNode attribute needed to be handled

Member Data Documentation

$_format = null
protected
$_rootElement = 'content'
protected
$_rootNamespace = 'media'
protected