Moodle  2.2.1
http://www.collinsharper.com
Zend_Gdata_Media_Extension_MediaCategory Class Reference
Inheritance diagram for Zend_Gdata_Media_Extension_MediaCategory:
Collaboration diagram for Zend_Gdata_Media_Extension_MediaCategory:

Public Member Functions

 __construct ($text=null, $scheme=null, $label=null)
 getDOM ($doc=null, $majorVersion=1, $minorVersion=null)
 getScheme ()
 setScheme ($value)
 getLabel ()
 setLabel ($value)

Protected Member Functions

 takeAttributeFromDOM ($attribute)

Protected Attributes

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

Detailed Description

Definition at line 38 of file MediaCategory.php.


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

Definition at line 57 of file MediaCategory.php.

Here is the call graph for this function:


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.

Reimplemented from Zend_Gdata_App_Base.

Definition at line 76 of file MediaCategory.php.

getLabel ( )
Returns:
string Human-readable label to be displayed in applications

Definition at line 133 of file MediaCategory.php.

getScheme ( )

Returns the URI that identifies the categorization scheme Optional.

Returns:
string URI that identifies the categorization scheme

Definition at line 115 of file MediaCategory.php.

setLabel ( value)
Parameters:
string$valueHuman-readable label to be displayed in applications
Returns:
Zend_Gdata_Media_Extension_MediaCategory Provides a fluent interface

Definition at line 142 of file MediaCategory.php.

setScheme ( value)
Parameters:
string$valueURI that identifies the categorization scheme
Returns:
Zend_Gdata_Media_Extension_MediaCategory Provides a fluent interface

Definition at line 124 of file MediaCategory.php.

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

Reimplemented from Zend_Gdata_App_Base.

Definition at line 95 of file MediaCategory.php.


Field Documentation

$_label = null [protected]

Definition at line 48 of file MediaCategory.php.

$_rootElement = 'category' [protected]

Reimplemented from Zend_Gdata_App_Base.

Definition at line 41 of file MediaCategory.php.

$_rootNamespace = 'media' [protected]

Reimplemented from Zend_Gdata_Extension.

Definition at line 42 of file MediaCategory.php.

$_scheme = null [protected]

Definition at line 47 of file MediaCategory.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations