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

Public Member Functions

 __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 Attributes

 $_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 (   $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.

Member Function Documentation

__toString ( )

Returns the URL representing this MediaContent object.

Returns
string The URL representing this MediaContent object.
getBitrate ( )
Returns
int
getChannels ( )
Returns
int
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.
getDuration ( )
Returns
int
getExpression ( )
Returns
string
getFileSize ( )
Returns
int The size of the media in bytes
getFramerate ( )
Returns
int
getHeight ( )
Returns
int
getIsDefault ( )
Returns
bool
getLang ( )
Returns
string
getMedium ( )
Returns
string
getSamplingrate ( )
Returns
int
getType ( )
Returns
string
getUrl ( )
Returns
string The direct URL to the media object
getWidth ( )
Returns
int
setBitrate (   $value)
Parameters
int
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setChannels (   $value)
Parameters
int
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setDuration (   $value)
Parameters
int
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setExpression (   $value)
Parameters
string
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setFileSize (   $value)
Parameters
int$value
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setFramerate (   $value)
Parameters
int
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setHeight (   $value)
Parameters
int
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setIsDefault (   $value)
Parameters
bool$value
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setLang (   $value)
Parameters
string
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setMedium (   $value)
Parameters
string$value
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setSamplingrate (   $value)
Parameters
int
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setType (   $value)
Parameters
string$value
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setUrl (   $value)
Parameters
string$valueThe direct URL to the media object
Returns
Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface
setWidth (   $value)
Parameters
int
Returns
Zend_Gdata_Media_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

$_bitrate = null
protected
$_channels = null
protected
$_duration = null
protected
$_expression = null
protected
$_fileSize = null
protected
$_framerate = null
protected
$_height = null
protected
$_isDefault = null
protected
$_lang = null
protected
$_medium = null
protected
$_rootElement = 'content'
protected
$_rootNamespace = 'media'
protected
$_samplingrate = null
protected
$_type = null
protected
$_url = null
protected
$_width = null
protected