Zend Framework
1.12
|
Public Member Functions | |
__construct ($element=null) | |
Creates a Video entry, representing an individual video. | |
getDOM ($doc=null, $majorVersion=1, $minorVersion=null) | |
Retrieves a DOMElement which corresponds to this element and all child properties. | |
setRecorded ($recorded=null) | |
Sets when the video was recorded. | |
getRecorded () | |
Gets the date that the video was recorded. | |
setLocation ($location=null) | |
Sets the location information. | |
getLocation () | |
Gets the location where the video was recorded. | |
setNoEmbed ($noEmbed=null) | |
If an instance of Zend_Gdata_YouTube_Extension_NoEmbed is passed in, the video cannot be embedded. | |
getNoEmbed () | |
If the return value is an instance of Zend_Gdata_YouTube_Extension_NoEmbed, this video cannot be embedded. | |
isVideoEmbeddable () | |
Checks whether the video is embeddable. | |
setStatistics ($statistics=null) | |
Sets the statistics relating to the video. | |
getStatistics () | |
Returns the statistics relating to the video. | |
setRacy ($racy=null) | |
Specifies that the video has racy content. | |
getRacy () | |
Returns the racy flag object. | |
setRating ($rating=null) | |
Sets the rating relating to the video. | |
getRating () | |
Returns the rating relating to the video. | |
setComments ($comments=null) | |
Sets the comments relating to the video. | |
getComments () | |
Returns the comments relating to the video. | |
setFeedLink ($feedLink=null) | |
Sets the array of embedded feeds related to the video. | |
getFeedLink ($rel=null) | |
Get the feed link property for this entry. | |
getVideoResponsesLink () | |
Returns the link element relating to video responses. | |
getVideoRatingsLink () | |
Returns the link element relating to video ratings. | |
getVideoComplaintsLink () | |
Returns the link element relating to video complaints. | |
getVideoId () | |
Gets the YouTube video ID based upon the atom:id value. | |
getVideoRecorded () | |
Gets the date that the video was recorded. | |
setVideoRecorded ($recorded) | |
Sets the date that the video was recorded. | |
getWhere () | |
Gets the georss:where element. | |
setWhere ($value) | |
Sets the georss:where element. | |
getVideoTitle () | |
Gets the title of the video as a string. | |
setVideoTitle ($title) | |
Sets the title of the video as a string. | |
setVideoDescription ($description) | |
Sets the description of the video as a string. | |
getVideoDescription () | |
Gets the description of the video as a string. | |
getVideoWatchPageUrl () | |
Gets the URL of the YouTube video watch page. | |
getVideoThumbnails () | |
Gets an array of the thumbnails representing the video. | |
getFlashPlayerUrl () | |
Gets the URL of the flash player SWF. | |
getVideoDuration () | |
Gets the duration of the video, in seconds. | |
isVideoPrivate () | |
Checks whether the video is private. | |
setVideoPrivate () | |
Sets video to private. | |
setVideoPublic () | |
Sets a private video to be public. | |
getVideoTags () | |
Gets an array of the tags assigned to this video. | |
setVideoTags ($tags) | |
Sets the keyword tags for a video. | |
getVideoViewCount () | |
Gets the number of views for this video. | |
getVideoGeoLocation () | |
Gets the location specified for this video, if available. | |
getVideoRatingInfo () | |
Gets the rating information for this video, if available. | |
getVideoCategory () | |
Gets the category of this video, if available. | |
setVideoCategory ($category) | |
Sets the category of the video as a string. | |
getVideoDeveloperTags () | |
Gets the developer tags for the video, if available and if client is authenticated with a valid developerKey. | |
addVideoDeveloperTag ($developerTag) | |
Adds a developer tag to array of tags for the video. | |
setVideoDeveloperTags ($developerTags) | |
Set multiple developer tags for the video as strings. | |
getVideoState () | |
Get the current publishing state of the video. | |
ensureMediaGroupIsNotNull () | |
Get the VideoEntry's Zend_Gdata_YouTube_Extension_MediaGroup object. | |
setVideoRating ($ratingValue) | |
Helper function to conveniently set a video's rating. | |
getVideoCommentFeedUrl () | |
Retrieve the URL for a video's comment feed. | |
Public Attributes | |
const | YOUTUBE_DEVELOPER_TAGS_SCHEMA = 'http://gdata.youtube.com/schemas/2007/developertags.cat' |
const | YOUTUBE_CATEGORY_SCHEMA = 'http://gdata.youtube.com/schemas/2007/categories.cat' |
Protected Member Functions | |
takeChildFromDOM ($child) | |
Creates individual Entry objects of the appropriate type and stores them in the $_entry array based upon DOM data. | |
![]() | |
takeChildFromDOM ($child) | |
Creates individual Entry objects of the appropriate type and stores them as members of this entry based upon DOM data. | |
![]() | |
takeChildFromDOM ($child) | |
Creates individual Entry objects of the appropriate type and stores them as members of this entry based upon DOM data. | |
![]() | |
takeChildFromDOM ($child) | |
takeAttributeFromDOM ($attribute) | |
Given a DOMNode representing an attribute, tries to map the data into instance members. | |
Protected Attributes | |
$_entryClassName = 'Zend_Gdata_YouTube_VideoEntry' | |
$_noEmbed = null | |
$_statistics = null | |
$_racy = null | |
$_private = null | |
$_rating = null | |
$_comments = null | |
$_feedLink = array() | |
$_where = null | |
$_recorded = null | |
$_location = null | |
![]() | |
$_entryClassName = 'Zend_Gdata_YouTube_MediaEntry' | |
$_mediaGroup = null | |
![]() | |
$_entryClassName = 'Zend_Gdata_Media_Entry' | |
$_mediaGroup = null | |
![]() | |
$_entryClassName = 'Zend_Gdata_Entry' | |
![]() | |
$_mediaSource = null | |
![]() | |
$_rootElement = 'entry' | |
$_entryClassName = 'Zend_Gdata_App_Entry' | |
$_content = null | |
$_published = null | |
$_source = null | |
$_summary = null | |
$_control = null | |
$_edited = null | |
![]() | |
$_service = null | |
Service instance used to make network requests. | |
$_etag = NULL | |
$_author = array() | |
$_category = array() | |
$_contributor = array() | |
$_id = null | |
$_link = array() | |
$_rights = null | |
$_title = null | |
$_updated = null | |
$_majorProtocolVersion = 1 | |
Indicates the major protocol version that should be used. | |
$_minorProtocolVersion = null | |
Indicates the minor protocol version that should be used. | |
![]() | |
$_rootElement = null | |
$_rootNamespace = 'atom' | |
$_rootNamespaceURI = null | |
$_extensionElements = array() | |
$_extensionAttributes = array() | |
$_text = null | |
$_namespaces | |
Additional Inherited Members | |
![]() | |
static | flushNamespaceLookupCache () |
Flush namespace lookup cache. | |
![]() | |
static | $_namespaceLookupCache = array() |
__construct | ( | $element = null | ) |
Creates a Video entry, representing an individual video.
DOMElement | $element | (optional) DOMElement from which this object should be constructed. |
addVideoDeveloperTag | ( | $developerTag | ) |
Adds a developer tag to array of tags for the video.
string | $developerTag | DeveloperTag for the video |
ensureMediaGroupIsNotNull | ( | ) |
Get the VideoEntry's Zend_Gdata_YouTube_Extension_MediaGroup object.
If the mediaGroup does not exist, then set it.
getComments | ( | ) |
Returns the comments relating to the video.
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 |
getFeedLink | ( | $rel = null | ) |
Get the feed link property for this entry.
string | $rel | (optional) The rel value of the link to be found. If null, the array of links is returned. |
getFlashPlayerUrl | ( | ) |
Gets the URL of the flash player SWF.
null is returned if the duration value is not available.
getLocation | ( | ) |
Gets the location where the video was recorded.
getNoEmbed | ( | ) |
If the return value is an instance of Zend_Gdata_YouTube_Extension_NoEmbed, this video cannot be embedded.
getRacy | ( | ) |
Returns the racy flag object.
Zend_Gdata_App_VersionException |
getRating | ( | ) |
Returns the rating relating to the video.
getRecorded | ( | ) |
Gets the date that the video was recorded.
getStatistics | ( | ) |
Returns the statistics relating to the video.
getVideoCategory | ( | ) |
Gets the category of this video, if available.
The category is returned as a string. Valid categories are found at: http://gdata.youtube.com/schemas/2007/categories.cat If the category is not set, null is returned.
getVideoCommentFeedUrl | ( | ) |
Retrieve the URL for a video's comment feed.
getVideoComplaintsLink | ( | ) |
Returns the link element relating to video complaints.
getVideoDescription | ( | ) |
Gets the description of the video as a string.
null is returned if the video description is not available.
getVideoDeveloperTags | ( | ) |
Gets the developer tags for the video, if available and if client is authenticated with a valid developerKey.
The tags are returned as an array. If no tags are set, null is returned.
getVideoDuration | ( | ) |
Gets the duration of the video, in seconds.
null is returned if the duration value is not available.
getVideoGeoLocation | ( | ) |
Gets the location specified for this video, if available.
The location is returned as an array containing the keys 'longitude' and 'latitude'. null is returned if the location is not available.
getVideoId | ( | ) |
Gets the YouTube video ID based upon the atom:id value.
getVideoRatingInfo | ( | ) |
Gets the rating information for this video, if available.
The rating is returned as an array containing the keys 'average' and 'numRaters'. null is returned if the rating information is not available.
getVideoRatingsLink | ( | ) |
Returns the link element relating to video ratings.
getVideoRecorded | ( | ) |
Gets the date that the video was recorded.
getVideoResponsesLink | ( | ) |
Returns the link element relating to video responses.
getVideoState | ( | ) |
Get the current publishing state of the video.
getVideoTags | ( | ) |
Gets an array of the tags assigned to this video.
For convient usage inside a foreach loop, an empty array is returned when there are no tags assigned.
getVideoThumbnails | ( | ) |
Gets an array of the thumbnails representing the video.
Each thumbnail is an element of the array, and is an array of the thumbnail properties - time, height, width, and url. For convient usage inside a foreach loop, an empty array is returned if there are no thumbnails.
getVideoTitle | ( | ) |
Gets the title of the video as a string.
null is returned if the video title is not available.
getVideoViewCount | ( | ) |
Gets the number of views for this video.
null is returned if the number of views is not available.
getVideoWatchPageUrl | ( | ) |
Gets the URL of the YouTube video watch page.
null is returned if the video watch page URL is not available.
getWhere | ( | ) |
Gets the georss:where element.
isVideoEmbeddable | ( | ) |
Checks whether the video is embeddable.
isVideoPrivate | ( | ) |
Checks whether the video is private.
setComments | ( | $comments = null | ) |
Sets the comments relating to the video.
Zend_Gdata_Extension_Comments | $comments | The comments relating to the video |
setFeedLink | ( | $feedLink = null | ) |
Sets the array of embedded feeds related to the video.
array | $feedLink | The array of embedded feeds relating to the video |
setLocation | ( | $location = null | ) |
Sets the location information.
Zend_Gdata_YouTube_Extension_Location | $location | Where the video was recorded |
setNoEmbed | ( | $noEmbed = null | ) |
If an instance of Zend_Gdata_YouTube_Extension_NoEmbed is passed in, the video cannot be embedded.
Otherwise, if null is passsed in, the video is able to be embedded.
Zend_Gdata_YouTube_Extension_NoEmbed | $noEmbed | Whether or not the video can be embedded. |
setRacy | ( | $racy = null | ) |
Specifies that the video has racy content.
Zend_Gdata_YouTube_Extension_Racy | $racy | The racy flag object |
Zend_Gdata_App_VersionException |
setRating | ( | $rating = null | ) |
Sets the rating relating to the video.
Zend_Gdata_Extension_Rating | $rating | The rating relating to the video |
setRecorded | ( | $recorded = null | ) |
Sets when the video was recorded.
Zend_Gdata_YouTube_Extension_Recorded | $recorded | When the video was recorded |
setStatistics | ( | $statistics = null | ) |
Sets the statistics relating to the video.
Zend_Gdata_YouTube_Extension_Statistics | $statistics | The statistics relating to the video |
setVideoCategory | ( | $category | ) |
Sets the category of the video as a string.
string | $category | Categories for the video |
setVideoDescription | ( | $description | ) |
Sets the description of the video as a string.
string | $description | Description for the video |
setVideoDeveloperTags | ( | $developerTags | ) |
Set multiple developer tags for the video as strings.
array | $developerTags | Array of developerTag for the video |
setVideoPrivate | ( | ) |
Sets video to private.
setVideoPublic | ( | ) |
Sets a private video to be public.
setVideoRating | ( | $ratingValue | ) |
Helper function to conveniently set a video's rating.
integer | $ratingValue | A number representing the rating. Must be between 1 and 5 inclusive. |
Zend_Gdata_Exception |
setVideoRecorded | ( | $recorded | ) |
Sets the date that the video was recorded.
string | $recorded | The date that the video was recorded, in the format of '2001-06-19' |
setVideoTags | ( | $tags | ) |
Sets the keyword tags for a video.
mixed | $tags | Either a comma-separated string or an array of tags for the video |
setVideoTitle | ( | $title | ) |
Sets the title of the video as a string.
string | $title | Title for the video |
setWhere | ( | $value | ) |
Sets the georss:where element.
Zend_Gdata_Geo_Extension_GeoRssWhere | $value | The georss:where class value |
|
protected |
Creates individual Entry objects of the appropriate type and stores them in the $_entry array based upon DOM data.
DOMNode | $child | The DOMNode to process |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const YOUTUBE_CATEGORY_SCHEMA = 'http://gdata.youtube.com/schemas/2007/categories.cat' |
const YOUTUBE_DEVELOPER_TAGS_SCHEMA = 'http://gdata.youtube.com/schemas/2007/developertags.cat' |