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

Public Member Functions

 __construct ($element=null)
 getDOM ($doc=null, $majorVersion=1, $minorVersion=null)
 getVideoId ()
 getUsername ()
 getRating ()
 getRatingValue ()
 getActivityType ()
 getAuthorName ()

Data Fields

const ACTIVITY_CATEGORY_SCHEME

Protected Member Functions

 takeChildFromDOM ($child)

Protected Attributes

 $_entryClassName = 'Zend_Gdata_YouTube_ActivityEntry'
 $_videoId = null
 $_username = null
 $_rating = null

Detailed Description

Definition at line 55 of file ActivityEntry.php.


Constructor & Destructor Documentation

__construct ( element = null)

Constructs a new Zend_Gdata_YouTube_ActivityEntry object.

Parameters:
DOMElement$element(optional) The DOMElement on which to base this object.

Reimplemented from Zend_Gdata_Entry.

Definition at line 93 of file ActivityEntry.php.

Here is the call graph for this function:


Member Function Documentation

Return the activity type that was performed.

Convenience method that inspects category where scheme is http://gdata.youtube.com/schemas/2007/userevents.cat.

Returns:
string|null The activity category if found.

Definition at line 211 of file ActivityEntry.php.

Here is the call graph for this function:

Convenience method to quickly get access to the author of the activity

Returns:
string The author of the activity

Definition at line 227 of file ActivityEntry.php.

Here is the call graph for this function:

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 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_Entry.

Definition at line 108 of file ActivityEntry.php.

getRating ( )

Returns the rating for this activity entry.

Returns:
null|Zend_Gdata_YouTube_Extension_Rating

Definition at line 182 of file ActivityEntry.php.

Return the value of the rating for this video entry.

Convenience method to save needless typing.

Returns:
integer|null The value of the rating that was created, if found.

Definition at line 194 of file ActivityEntry.php.

Returns the username for this activity entry.

Returns:
null|Zend_Gdata_YouTube_Extension_Username

Definition at line 172 of file ActivityEntry.php.

Returns the video ID for this activity entry.

Returns:
null|Zend_Gdata_YouTube_Extension_VideoId

Definition at line 162 of file ActivityEntry.php.

takeChildFromDOM ( child) [protected]

Creates individual Entry objects of the appropriate type and stores them as members of this entry based upon DOM data.

Parameters:
DOMNode$childThe DOMNode to process

Reimplemented from Zend_Gdata_Entry.

Definition at line 132 of file ActivityEntry.php.

Here is the call graph for this function:


Field Documentation

$_entryClassName = 'Zend_Gdata_YouTube_ActivityEntry' [protected]

Reimplemented from Zend_Gdata_Entry.

Definition at line 65 of file ActivityEntry.php.

$_rating = null [protected]

Definition at line 86 of file ActivityEntry.php.

$_username = null [protected]

Definition at line 79 of file ActivityEntry.php.

$_videoId = null [protected]

Definition at line 72 of file ActivityEntry.php.

Initial value:
        'http://gdata.youtube.com/schemas/2007/userevents.cat'

Definition at line 57 of file ActivityEntry.php.


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