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

Public Member Functions

 __construct ($viewCount=null, $videoWatchCount=null, $subscriberCount=null, $lastWebAccess=null, $favoriteCount=null)
 getDOM ($doc=null, $majorVersion=1, $minorVersion=null)
 getViewCount ()
 setViewCount ($value)
 getVideoWatchCount ()
 setVideoWatchCount ($value)
 getSubscriberCount ()
 setSubscriberCount ($value)
 getLastWebAccess ()
 setLastWebAccess ($value)
 getFavoriteCount ()
 setFavoriteCount ($value)
 __toString ()

Protected Member Functions

 takeAttributeFromDOM ($attribute)

Protected Attributes

 $_rootNamespace = 'yt'
 $_rootElement = 'statistics'
 $_videoWatchCount = null
 $_viewCount = null
 $_subscriberCount = null
 $_lastWebAccess = null
 $_favoriteCount = null

Detailed Description

Definition at line 38 of file Statistics.php.


Constructor & Destructor Documentation

__construct ( viewCount = null,
videoWatchCount = null,
subscriberCount = null,
lastWebAccess = null,
favoriteCount = null 
)

Constructs a new Zend_Gdata_YouTube_Extension_Statistics object.

Parameters:
string$viewCount,(optional)The viewCount value
string$videoWatchCount,(optional)The videoWatchCount value
string$subscriberCount,(optional)The subscriberCount value
string$lastWebAccess,(optional)The lastWebAccess value
string$favoriteCount,(optional)The favoriteCount value

Definition at line 101 of file Statistics.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 300 of file Statistics.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 124 of file Statistics.php.

Get the value for this element's favoriteCount attribute.

Returns:
int The value associated with this attribute.

Definition at line 276 of file Statistics.php.

Get the value for this element's lastWebAccess attribute.

Returns:
int The value associated with this attribute.

Definition at line 253 of file Statistics.php.

Get the value for this element's subscriberCount attribute.

Returns:
int The value associated with this attribute.

Definition at line 230 of file Statistics.php.

Get the value for this element's videoWatchCount attribute.

Returns:
int The value associated with this attribute.

Definition at line 207 of file Statistics.php.

Get the value for this element's viewCount attribute.

Returns:
int The value associated with this attribute.

Definition at line 184 of file Statistics.php.

setFavoriteCount ( value)

Set the value for this element's favoriteCount attribute.

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

Definition at line 288 of file Statistics.php.

setLastWebAccess ( value)

Set the value for this element's lastWebAccess attribute.

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

Definition at line 265 of file Statistics.php.

setSubscriberCount ( value)

Set the value for this element's subscriberCount attribute.

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

Definition at line 242 of file Statistics.php.

setVideoWatchCount ( value)

Set the value for this element's videoWatchCount attribute.

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

Definition at line 219 of file Statistics.php.

setViewCount ( value)

Set the value for this element's viewCount attribute.

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

Definition at line 196 of file Statistics.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 156 of file Statistics.php.


Field Documentation

$_favoriteCount = null [protected]

Definition at line 91 of file Statistics.php.

$_lastWebAccess = null [protected]

Definition at line 81 of file Statistics.php.

$_rootElement = 'statistics' [protected]

Reimplemented from Zend_Gdata_App_Base.

Definition at line 42 of file Statistics.php.

$_rootNamespace = 'yt' [protected]

Reimplemented from Zend_Gdata_Extension.

Definition at line 41 of file Statistics.php.

$_subscriberCount = null [protected]

Definition at line 73 of file Statistics.php.

$_videoWatchCount = null [protected]

Definition at line 52 of file Statistics.php.

$_viewCount = null [protected]

Definition at line 63 of file Statistics.php.


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