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

Public Member Functions

 __construct ($viewCount=null, $videoWatchCount=null, $subscriberCount=null, $lastWebAccess=null, $favoriteCount=null)
 Constructs a new Zend_Gdata_YouTube_Extension_Statistics object.
 
 getDOM ($doc=null, $majorVersion=1, $minorVersion=null)
 Retrieves a DOMElement which corresponds to this element and all child properties.
 
 getViewCount ()
 Get the value for this element's viewCount attribute.
 
 setViewCount ($value)
 Set the value for this element's viewCount attribute.
 
 getVideoWatchCount ()
 Get the value for this element's videoWatchCount attribute.
 
 setVideoWatchCount ($value)
 Set the value for this element's videoWatchCount attribute.
 
 getSubscriberCount ()
 Get the value for this element's subscriberCount attribute.
 
 setSubscriberCount ($value)
 Set the value for this element's subscriberCount attribute.
 
 getLastWebAccess ()
 Get the value for this element's lastWebAccess attribute.
 
 setLastWebAccess ($value)
 Set the value for this element's lastWebAccess attribute.
 
 getFavoriteCount ()
 Get the value for this element's favoriteCount attribute.
 
 setFavoriteCount ($value)
 Set the value for this element's favoriteCount attribute.
 
 __toString ()
 Magic toString method allows using this directly via echo Works best in PHP >= 4.2.0.
 
- 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

 $_rootNamespace = 'yt'
 
 $_rootElement = 'statistics'
 
 $_videoWatchCount = null
 
 $_viewCount = null
 
 $_subscriberCount = null
 
 $_lastWebAccess = null
 
 $_favoriteCount = 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 (   $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

Member Function Documentation

__toString ( )

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

Returns
string
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.
getFavoriteCount ( )

Get the value for this element's favoriteCount attribute.

Returns
int The value associated with this attribute.
getLastWebAccess ( )

Get the value for this element's lastWebAccess attribute.

Returns
int The value associated with this attribute.
getSubscriberCount ( )

Get the value for this element's subscriberCount attribute.

Returns
int The value associated with this attribute.
getVideoWatchCount ( )

Get the value for this element's videoWatchCount attribute.

Returns
int The value associated with this attribute.
getViewCount ( )

Get the value for this element's viewCount attribute.

Returns
int The value associated with this attribute.
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.
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.
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.
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.
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.
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

Member Data Documentation

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