Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Represents the YouTube video flavor of an Atom entry

\Zend_Gdata_Extensions_Comments
$_comments= 'null'
Specifies the comments associated with a video.
nullDetails
$_entryClassName= ''Zend_Gdata_YouTube_VideoEntry''
'Zend_Gdata_YouTube_VideoEntry'Details
\Zend_Gdata_YouTube_Extension_Private|null
$_private= 'null'
If not null, specifies that the video is private.

\Zend_Gdata_YouTube_Extension_Racy|null
$_racy= 'null'
If not null, specifies that the video has racy content.

\Zend_Gdata_YouTube_Extension_Statistics
$_statistics= 'null'
Specifies the statistics relating to the video.

__construct(
\DOMElement $element
=
null
)
:
voidCreates a Video entry, representing an individual video
| Name | Type | Description |
|---|---|---|
| $element | \DOMElement | (optional) DOMElement from which this object should be constructed. |

addVideoDeveloperTag(
string $developerTag
)
:
\Zend_Gdata_YouTube_VideoEntryAdds a developer tag to array of tags for the video.
| Name | Type | Description |
|---|---|---|
| $developerTag | string | DeveloperTag for the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

ensureMediaGroupIsNotNull(
)
:
voidGet the VideoEntry's Zend_Gdata_YouTube_Extension_MediaGroup object.
If the mediaGroup does not exist, then set it.

getComments(
)
:
\Zend_Gdata_Extension_CommentsReturns the comments relating to the video.
| Type | Description |
|---|---|
| \Zend_Gdata_Extension_Comments | The comments relating to the video |

getDOM(
\DOMDocument $doc
=
null, $majorVersion
=
1, $minorVersion
=
null
)
:
\DOMElementRetrieves 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.
| Name | Type | Description |
|---|---|---|
| $doc | \DOMDocument | The DOMDocument used to construct DOMElements |
| $majorVersion | ||
| $minorVersion |
| Type | Description |
|---|---|
| \DOMElement | The DOMElement representing this element and all child properties. |

getFeedLink(
string $rel
=
null
)
:
mixedGet the feed link property for this entry.
| Name | Type | Description |
|---|---|---|
| $rel | string | (optional) The rel value of the link to be found. If null, the array of links is returned. |
| Type | Description |
|---|---|
| mixed | If $rel is specified, a Zend_Gdata_Extension_FeedLink object corresponding to the requested rel value is returned if found, or null if the requested value is not found. If $rel is null or not specified, an array of all available feed links for this entry is returned, or null if no feed links are set. |

getFlashPlayerUrl(
)
:
string|nullGets the URL of the flash player SWF. null is returned if the duration value is not available.
| Type | Description |
|---|---|
| string|null | The URL of the flash player SWF |

getLocation(
)
:
\Zend_Gdata_YouTube_Extension_Location|nullGets the location where the video was recorded.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_Location|null |

getNoEmbed(
)
:
\Zend_Gdata_YouTube_Extension_NoEmbed|nullIf the return value is an instance of Zend_Gdata_YouTube_Extension_NoEmbed, this video cannot be embedded.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_NoEmbed|null | Whether or not the video can be embedded |

getRacy(
)
:
\Zend_Gdata_YouTube_Extension_Racy|nullReturns the racy flag object.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_Racy|null | The racy flag object |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_VersionException |

getRating(
)
:
\Zend_Gdata_Extension_RatingReturns the rating relating to the video.
| Type | Description |
|---|---|
| \Zend_Gdata_Extension_Rating | The rating relating to the video |

getRecorded(
)
:
\Zend_Gdata_YouTube_Extension_Recorded|nullGets the date that the video was recorded.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_Recorded|null |

getStatistics(
)
:
\Zend_Gdata_YouTube_Extension_StatisticsReturns the statistics relating to the video.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_Statistics | The statistics relating to the video |

getVideoCategory(
)
:
string|nullGets 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.
| Type | Description |
|---|---|
| string|null | The category of this video |

getVideoCommentFeedUrl(
)
:
string|nullRetrieve the URL for a video's comment feed.
| Type | Description |
|---|---|
| string|null | The URL if found, or null if not found. |

getVideoComplaintsLink(
)
:
\Zend_Gdata_App_Extension_LinkReturns the link element relating to video complaints.
| Type | Description |
|---|---|
| \Zend_Gdata_App_Extension_Link |

getVideoDescription(
)
:
string|nullGets the description of the video as a string. null is returned if the video description is not available.
| Type | Description |
|---|---|
| string|null | The description of the video |

getVideoDeveloperTags(
)
:
array|nullGets 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.
| Type | Description |
|---|---|
| array|null | The developer tags for this video or null if none were set. |

getVideoDuration(
)
:
string|nullGets the duration of the video, in seconds. null is returned if the duration value is not available.
| Type | Description |
|---|---|
| string|null | The duration of the video, in seconds. |

getVideoGeoLocation(
)
:
array|nullGets 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.
| Type | Description |
|---|---|
| array|null | The location specified for this video |

getVideoId(
)
:
stringGets the YouTube video ID based upon the atom:id value
| Type | Description |
|---|---|
| string | The video ID |

getVideoRatingInfo(
)
:
array|nullGets 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.
| Type | Description |
|---|---|
| array|null | The rating information for this video |

getVideoRatingsLink(
)
:
\Zend_Gdata_App_Extension_LinkReturns the link element relating to video ratings.
| Type | Description |
|---|---|
| \Zend_Gdata_App_Extension_Link |

getVideoRecorded(
)
:
string|nullGets the date that the video was recorded.
| Type | Description |
|---|---|
| string|null | The date that the video was recorded |

getVideoResponsesLink(
)
:
\Zend_Gdata_App_Extension_LinkReturns the link element relating to video responses.
| Type | Description |
|---|---|
| \Zend_Gdata_App_Extension_Link |

getVideoState(
)
:
\Zend_Gdata_YouTube_Extension_State|nullGet the current publishing state of the video.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_State|null | The publishing state of this video |

getVideoTags(
)
:
arrayGets 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.
| Type | Description |
|---|---|
| array | An array of the tags assigned to this video |

getVideoThumbnails(
)
:
arrayGets 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.
| Type | Description |
|---|---|
| array | An array of video thumbnails. |

getVideoTitle(
)
:
string|nullGets the title of the video as a string. null is returned if the video title is not available.
| Type | Description |
|---|---|
| string|null | The title of the video |

getVideoViewCount(
)
:
string|nullGets the number of views for this video. null is returned if the number of views is not available.
| Type | Description |
|---|---|
| string|null | The number of views for this video |

getVideoWatchPageUrl(
)
:
string|nullGets the URL of the YouTube video watch page. null is returned if the video watch page URL is not available.
| Type | Description |
|---|---|
| string|null | The URL of the YouTube video watch page |

getWhere(
)
:
\Zend_Gdata_Geo_Extension_GeoRssWhereGets the georss:where element
| Type | Description |
|---|---|
| \Zend_Gdata_Geo_Extension_GeoRssWhere |

isVideoEmbeddable(
)
:
boolChecks whether the video is embeddable.
| Type | Description |
|---|---|
| bool | Returns true if the video is embeddable. |

isVideoPrivate(
)
:
boolChecks whether the video is private.
| Type | Description |
|---|---|
| bool | Return true if video is private |

setComments(
\Zend_Gdata_Extension_Comments $comments
=
null
)
:
\Zend_Gdata_YouTube_VideoEntrySets the comments relating to the video.
| Name | Type | Description |
|---|---|---|
| $comments | \Zend_Gdata_Extension_Comments | The comments relating to the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setFeedLink(
array $feedLink
=
null
)
:
\Zend_Gdata_YouTube_VideoEntrySets the array of embedded feeds related to the video
| Name | Type | Description |
|---|---|---|
| $feedLink | array | The array of embedded feeds relating to the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setLocation(
\Zend_Gdata_YouTube_Extension_Location $location
=
null
)
:
\Zend_Gdata_YouTube_VideoEntrySets the location information.
| Name | Type | Description |
|---|---|---|
| $location | \Zend_Gdata_YouTube_Extension_Location | Where the video was recorded |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setNoEmbed(
\Zend_Gdata_YouTube_Extension_NoEmbed $noEmbed
=
null
)
:
\Zend_Gdata_YouTube_VideoEntryIf 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.
| Name | Type | Description |
|---|---|---|
| $noEmbed | \Zend_Gdata_YouTube_Extension_NoEmbed | Whether or not the video can be embedded. |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setRacy(
\Zend_Gdata_YouTube_Extension_Racy $racy
=
null
)
:
\Zend_Gdata_YouTube_VideoEntrySpecifies that the video has racy content.
| Name | Type | Description |
|---|---|---|
| $racy | \Zend_Gdata_YouTube_Extension_Racy | The racy flag object |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_VersionException |

setRating(
\Zend_Gdata_Extension_Rating $rating
=
null
)
:
\Zend_Gdata_YouTube_VideoEntrySets the rating relating to the video.
| Name | Type | Description |
|---|---|---|
| $rating | \Zend_Gdata_Extension_Rating | The rating relating to the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setRecorded(
\Zend_Gdata_YouTube_Extension_Recorded $recorded
=
null
)
:
\Zend_Gdata_YouTube_VideoEntrySets when the video was recorded.
| Name | Type | Description |
|---|---|---|
| $recorded | \Zend_Gdata_YouTube_Extension_Recorded | When the video was recorded |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setStatistics(
\Zend_Gdata_YouTube_Extension_Statistics $statistics
=
null
)
:
\Zend_Gdata_YouTube_VideoEntrySets the statistics relating to the video.
| Name | Type | Description |
|---|---|---|
| $statistics | \Zend_Gdata_YouTube_Extension_Statistics | The statistics relating to the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setVideoCategory(
string $category
)
:
\Zend_Gdata_YouTube_VideoEntrySets the category of the video as a string.
| Name | Type | Description |
|---|---|---|
| $category | string | Categories for the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setVideoDescription(
string $description
)
:
\Zend_Gdata_YouTube_VideoEntrySets the description of the video as a string.
| Name | Type | Description |
|---|---|---|
| $description | string | Description for the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setVideoDeveloperTags(
array $developerTags
)
:
\Zend_Gdata_YouTube_VideoEntrySet multiple developer tags for the video as strings.
| Name | Type | Description |
|---|---|---|
| $developerTags | array | Array of developerTag for the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setVideoPrivate(
)
:
\Zend_Gdata_YouTube_VideoEntrySets video to private.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setVideoPublic(
)
:
\Zend_Gdata_YouTube_VideoEntrySets a private video to be public.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setVideoRating(
integer $ratingValue
)
:
\Zend_Gdata_YouTube_VideoEntryHelper function to conveniently set a video's rating.
| Name | Type | Description |
|---|---|---|
| $ratingValue | integer | A number representing the rating. Must be between 1 and 5 inclusive. |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface. |
| Exception | Description |
|---|---|
| \Zend_Gdata_Exception |

setVideoRecorded(
string $recorded
)
:
voidSets the date that the video was recorded.
| Name | Type | Description |
|---|---|---|
| $recorded | string | The date that the video was recorded, in the format of '2001-06-19' |

setVideoTags(
mixed $tags
)
:
\Zend_Gdata_YouTube_VideoEntrySets the keyword tags for a video.
| Name | Type | Description |
|---|---|---|
| $tags | mixed | Either a comma-separated string or an array of tags for the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setVideoTitle(
string $title
)
:
\Zend_Gdata_YouTube_VideoEntrySets the title of the video as a string.
| Name | Type | Description |
|---|---|---|
| $title | string | Title for the video |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |

setWhere(
\Zend_Gdata_Geo_Extension_GeoRssWhere $value
)
:
\Zend_Gdata_YouTube_VideoEntrySets the georss:where element
| Name | Type | Description |
|---|---|---|
| $value | \Zend_Gdata_Geo_Extension_GeoRssWhere | The georss:where class value |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_VideoEntry | Provides a fluent interface |