Class Zend_Gdata_YouTube_Extension_Statistics

Description

Represents the yt:statistics element used by the YouTube data API

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Gdata/YouTube/Extension/Statistics.php (line 38)

Zend_Gdata_App_Base
   |
   --Zend_Gdata_App_Extension
      |
      --Zend_Gdata_Extension
         |
         --Zend_Gdata_YouTube_Extension_Statistics
Variable Summary
Method Summary
 Zend_Gdata_YouTube_Extension_Statistics __construct ([ $viewCount = null], [ $videoWatchCount = null], [ $subscriberCount = null], [ $lastWebAccess = null], [ $favoriteCount = null], string $viewCount(optional), string $videoWatchCount(optional), string $subscriberCount(optional), string $lastWebAccess(optional), string $favoriteCount(optional))
 DOMElement getDOM ([DOMDocument $doc = null], [ $majorVersion = 1], [ $minorVersion = null])
 int getViewCount ()
 void takeAttributeFromDOM (DOMNode $attribute)
 string __toString ()
Variables
integer $_favoriteCount = null (line 91)

The favoriteCount attribute specifies the number of YouTube users who have added a video to their list of favorite videos. The favoriteCount attribute is only specified when the <yt:statistics> tag appears within a video entry.

  • access: protected
string $_lastWebAccess = null (line 81)

The lastWebAccess attribute indicates the most recent time that a particular user used YouTube.

  • access: protected
mixed $_rootElement = 'statistics' (line 42)
  • access: protected

Redefinition of:
Zend_Gdata_App_Base::$_rootElement
mixed $_rootNamespace = 'yt' (line 41)
  • access: protected

Redefinition of:
Zend_Gdata_Extension::$_rootNamespace
integer $_subscriberCount = null (line 73)

The subscriberCount attribute specifies the number of YouTube users who have subscribed to a particular user's YouTube channel.

The subscriberCount attribute is only specified when the <yt:statistics> tag appears within a user profile entry.

  • access: protected
integer $_videoWatchCount = null (line 52)

The videoWatchCount attribute specifies the number of videos that a user has watched on YouTube. The videoWatchCount attribute is only specified when the <yt:statistics> tag appears within a user profile entry.

  • access: protected
integer $_viewCount = null (line 63)

When the viewCount attribute refers to a video entry, the attribute specifies the number of times that the video has been viewed.

When the viewCount attribute refers to a user profile, the attribute specifies the number of times that the user's profile has been viewed.

  • access: protected

Inherited Variables

Inherited from Zend_Gdata_App_Base

Zend_Gdata_App_Base::$_extensionAttributes
Zend_Gdata_App_Base::$_extensionElements
Zend_Gdata_App_Base::$_namespaceLookupCache
Zend_Gdata_App_Base::$_namespaces
Zend_Gdata_App_Base::$_rootNamespaceURI
Zend_Gdata_App_Base::$_text
Methods
Constructor __construct (line 101)

Constructs a new Zend_Gdata_YouTube_Extension_Statistics object.

  • access: public
Zend_Gdata_YouTube_Extension_Statistics __construct ([ $viewCount = null], [ $videoWatchCount = null], [ $subscriberCount = null], [ $lastWebAccess = null], [ $favoriteCount = null], string $viewCount(optional), string $videoWatchCount(optional), string $subscriberCount(optional), string $lastWebAccess(optional), string $favoriteCount(optional))
  • 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
  • $viewCount
  • $videoWatchCount
  • $subscriberCount
  • $lastWebAccess
  • $favoriteCount

Redefinition of:
Zend_Gdata_Extension::__construct()
getDOM (line 124)

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.

  • return: The DOMElement representing this element and all child properties.
  • access: public
DOMElement getDOM ([DOMDocument $doc = null], [ $majorVersion = 1], [ $minorVersion = null])
  • DOMDocument $doc: The DOMDocument used to construct DOMElements
  • $majorVersion
  • $minorVersion

Redefinition of:
Zend_Gdata_App_Base::getDOM()
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.
getFavoriteCount (line 276)

Get the value for this element's favoriteCount attribute.

  • return: The value associated with this attribute.
  • access: public
int getFavoriteCount ()
getLastWebAccess (line 253)

Get the value for this element's lastWebAccess attribute.

  • return: The value associated with this attribute.
  • access: public
int getLastWebAccess ()
getSubscriberCount (line 230)

Get the value for this element's subscriberCount attribute.

  • return: The value associated with this attribute.
  • access: public
int getSubscriberCount ()
getVideoWatchCount (line 207)

Get the value for this element's videoWatchCount attribute.

  • return: The value associated with this attribute.
  • access: public
int getVideoWatchCount ()
getViewCount (line 184)

Get the value for this element's viewCount attribute.

  • return: The value associated with this attribute.
  • access: public
int getViewCount ()
setFavoriteCount (line 288)

Set the value for this element's favoriteCount attribute.

  • return: The element being modified.
  • access: public
Zend_Gdata_YouTube_Extension_Statistics setFavoriteCount (int $value)
  • int $value: The desired value for this attribute.
setLastWebAccess (line 265)

Set the value for this element's lastWebAccess attribute.

  • return: The element being modified.
  • access: public
Zend_Gdata_YouTube_Extension_Statistics setLastWebAccess (int $value)
  • int $value: The desired value for this attribute.
setSubscriberCount (line 242)

Set the value for this element's subscriberCount attribute.

  • return: The element being modified.
  • access: public
Zend_Gdata_YouTube_Extension_Statistics setSubscriberCount (int $value)
  • int $value: The desired value for this attribute.
setVideoWatchCount (line 219)

Set the value for this element's videoWatchCount attribute.

  • return: The element being modified.
  • access: public
Zend_Gdata_YouTube_Extension_Statistics setVideoWatchCount (int $value)
  • int $value: The desired value for this attribute.
setViewCount (line 196)

Set the value for this element's viewCount attribute.

  • return: The element being modified.
  • access: public
Zend_Gdata_YouTube_Extension_Statistics setViewCount (int $value)
  • int $value: The desired value for this attribute.
takeAttributeFromDOM (line 156)

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

  • access: protected
void takeAttributeFromDOM (DOMNode $attribute)
  • DOMNode $attribute: The DOMNode attribute needed to be handled

Redefinition of:
Zend_Gdata_App_Base::takeAttributeFromDOM()
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.
__toString (line 300)

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

  • access: public
string __toString ()

Redefinition of:
Zend_Gdata_App_Base::__toString()
Magic toString method allows using this directly via echo Works best in PHP >= 4.2.0

Inherited Methods

Inherited From Zend_Gdata_Extension

 Zend_Gdata_Extension::__construct()

Inherited From Zend_Gdata_App_Base

 Zend_Gdata_App_Base::__construct()
 Zend_Gdata_App_Base::encode()
 Zend_Gdata_App_Base::flushNamespaceLookupCache()
 Zend_Gdata_App_Base::getDOM()
 Zend_Gdata_App_Base::getExtensionAttributes()
 Zend_Gdata_App_Base::getExtensionElements()
 Zend_Gdata_App_Base::getText()
 Zend_Gdata_App_Base::getXML()
 Zend_Gdata_App_Base::lookupNamespace()
 Zend_Gdata_App_Base::registerAllNamespaces()
 Zend_Gdata_App_Base::registerNamespace()
 Zend_Gdata_App_Base::saveXML()
 Zend_Gdata_App_Base::setExtensionAttributes()
 Zend_Gdata_App_Base::setExtensionElements()
 Zend_Gdata_App_Base::setText()
 Zend_Gdata_App_Base::takeAttributeFromDOM()
 Zend_Gdata_App_Base::takeChildFromDOM()
 Zend_Gdata_App_Base::transferFromDOM()
 Zend_Gdata_App_Base::transferFromXML()
 Zend_Gdata_App_Base::__get()
 Zend_Gdata_App_Base::__isset()
 Zend_Gdata_App_Base::__set()
 Zend_Gdata_App_Base::__toString()
 Zend_Gdata_App_Base::__unset()

Documentation generated on Mon, 21 Jun 2010 15:46:42 -0400 by phpDocumentor 1.4.3