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

Public Member Functions

 __construct ($text=null, $scheme=null, $label=null)
 Creates an individual MediaCategory object.
 
 getDOM ($doc=null, $majorVersion=1, $minorVersion=null)
 Retrieves a DOMElement which corresponds to this element and all child properties.
 
 getScheme ()
 Returns the URI that identifies the categorization scheme Optional.
 
 setScheme ($value)
 
 getLabel ()
 
 setLabel ($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 = 'category'
 
 $_rootNamespace = 'media'
 
 $_scheme = null
 
 $_label = 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 (   $text = null,
  $scheme = null,
  $label = null 
)

Creates an individual MediaCategory object.

Parameters
string$textIndication of the type and content of the media
string$schemeURI that identifies the categorization scheme
string$labelHuman-readable label to be displayed in applications

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.
getLabel ( )
Returns
string Human-readable label to be displayed in applications
getScheme ( )

Returns the URI that identifies the categorization scheme Optional.

Returns
string URI that identifies the categorization scheme
setLabel (   $value)
Parameters
string$valueHuman-readable label to be displayed in applications
Returns
Zend_Gdata_Media_Extension_MediaCategory Provides a fluent interface
setScheme (   $value)
Parameters
string$valueURI that identifies the categorization scheme
Returns
Zend_Gdata_Media_Extension_MediaCategory 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

$_label = null
protected
$_rootElement = 'category'
protected
$_rootNamespace = 'media'
protected
$_scheme = null
protected