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

Public Member Functions

 __construct ($explanation=null, $name=null, $reasonCode=null, $helpUrl=null)
 getDOM ($doc=null, $majorVersion=1, $minorVersion=null)
 getName ()
 setName ($value)
 getReasonCode ()
 setReasonCode ($value)
 getHelpUrl ()
 setHelpUrl ($value)
 __toString ()

Protected Member Functions

 takeAttributeFromDOM ($attribute)

Protected Attributes

 $_rootNamespace = 'yt'
 $_rootElement = 'state'
 $_name = null
 $_reasonCode = null
 $_helpUrl = null

Detailed Description

Definition at line 38 of file State.php.


Constructor & Destructor Documentation

__construct ( explanation = null,
name = null,
reasonCode = null,
helpUrl = null 
)

Constructs a new Zend_Gdata_YouTube_Extension_State object.

Parameters:
string$explanation,(optional)The explanation of this state
string$name,(optional)The name value
string$reasonCode,(optional)The reasonCode value
string$helpUrl,(optional)The helpUrl value

Definition at line 55 of file State.php.

Here is the call graph for this function:


Member Function Documentation

Magic toString method allows using this directly via echo Works best in PHP >= 4.2.0

Returns:
string

Reimplemented from Zend_Gdata_App_Base.

Definition at line 188 of file State.php.

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 State.php.

Get the value for this element's helpUrl attribute.

Returns:
int The value associated with this attribute.

Definition at line 165 of file State.php.

getName ( )

Get the value for this element's name attribute.

Returns:
int The value associated with this attribute.

Definition at line 121 of file State.php.

Get the value for this element's reasonCode attribute.

Returns:
int The value associated with this attribute.

Definition at line 143 of file State.php.

setHelpUrl ( value)

Set the value for this element's helpUrl attribute.

Parameters:
int$valueThe desired value for this attribute.
Returns:
Zend_Gdata_YouTube_Extension_State The element being modified.

Definition at line 176 of file State.php.

setName ( value)

Set the value for this element's name attribute.

Parameters:
int$valueThe desired value for this attribute.
Returns:
Zend_Gdata_YouTube_Extension_State The element being modified.

Definition at line 132 of file State.php.

setReasonCode ( value)

Set the value for this element's reasonCode attribute.

Parameters:
int$valueThe desired value for this attribute.
Returns:
Zend_Gdata_YouTube_Extension_State The element being modified.

Definition at line 154 of file State.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 valueare stored in an array. TODO: Convert attributes to proper types

Parameters:
DOMNode$attributeThe DOMNode attribute needed to be handled

Reimplemented from Zend_Gdata_App_Base.

Definition at line 99 of file State.php.


Field Documentation

$_helpUrl = null [protected]

Definition at line 45 of file State.php.

$_name = null [protected]

Definition at line 43 of file State.php.

$_reasonCode = null [protected]

Definition at line 44 of file State.php.

$_rootElement = 'state' [protected]

Reimplemented from Zend_Gdata_App_Base.

Definition at line 42 of file State.php.

$_rootNamespace = 'yt' [protected]

Reimplemented from Zend_Gdata_Extension.

Definition at line 41 of file State.php.


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