|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($seconds=null) | |
| getDOM ($doc=null, $majorVersion=1, $minorVersion=null) | |
| getSeconds () | |
| setSeconds ($value) | |
| __toString () | |
Protected Member Functions | |
| takeAttributeFromDOM ($attribute) | |
Protected Attributes | |
| $_rootNamespace = 'yt' | |
| $_rootElement = 'duration' | |
| $_seconds = null | |
Definition at line 38 of file Duration.php.
| __construct | ( | $ | seconds = null | ) |
Constructs a new Zend_Gdata_YouTube_Extension_Duration object.
| bool | $seconds,(optional) | The seconds value of the element. |
Definition at line 49 of file Duration.php.

| __toString | ( | ) |
Magic toString method allows using this directly via echo Works best in PHP >= 4.2.0
Reimplemented from Zend_Gdata_App_Base.
Definition at line 121 of file Duration.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.
| DOMDocument | $doc | The DOMDocument used to construct DOMElements |
Reimplemented from Zend_Gdata_App_Base.
Definition at line 66 of file Duration.php.
| getSeconds | ( | ) |
Get the value for this element's seconds attribute.
Definition at line 98 of file Duration.php.
| setSeconds | ( | $ | value | ) |
Set the value for this element's seconds attribute.
| int | $value | The desired value for this attribute. |
Definition at line 109 of file Duration.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.
| DOMNode | $attribute | The DOMNode attribute needed to be handled |
Reimplemented from Zend_Gdata_App_Base.
Definition at line 82 of file Duration.php.
$_rootElement = 'duration' [protected] |
Reimplemented from Zend_Gdata_App_Base.
Definition at line 42 of file Duration.php.
$_rootNamespace = 'yt' [protected] |
Reimplemented from Zend_Gdata_Extension.
Definition at line 41 of file Duration.php.
$_seconds = null [protected] |
Definition at line 43 of file Duration.php.