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 subscription flavor of an Atom entry

$_entryClassName= ''Zend_Gdata_YouTube_SubscriptionEntry''
'Zend_Gdata_YouTube_SubscriptionEntry'Details
\Zend_Gdata_Media_Extension_MediaThumbnail
$_mediaThumbnail= 'null'
The media:thumbnail element for this entry.
This element is only used on subscriptions to playlists.
nullDetails

\Zend_Gdata_YouTube_Extension_PlaylistId
$_playlistId= 'null'
The playlist id for this entry.
This element is only used on subscriptions to playlists.
nullDetails

\Zend_Gdata_YouTube_Extension_PlaylistTitle
$_playlistTitle= 'null'
The playlist title for this entry.
This element is only used on subscriptions to playlists.
nullDetails

__construct(
\DOMElement $element
=
null
)
:
voidCreates a subscription entry, representing an individual subscription in a list of subscriptions, usually associated with an individual user.
| Name | Type | Description |
|---|---|---|
| $element | \DOMElement | (optional) DOMElement from which this object should be constructed. |

getCountHint(
)
:
\Zend_Gdata_YouTube_Extension_CountHintGet the counthint for a subscription.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_CountHint |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_VersionException |

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

getMediaThumbnail(
)
:
\Zend_Gdata_Media_Extension_MediaThumbnailGet the thumbnail for a subscription.
| Type | Description |
|---|---|
| \Zend_Gdata_Media_Extension_MediaThumbnail |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_VersionException |

getPlaylistId(
)
:
\Zend_Gdata_YouTube_Extension_PlaylistIdGet the playlist title for a 'playlist' subscription.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_PlaylistId |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_VersionException |

getPlaylistTitle(
)
:
\Zend_Gdata_YouTube_Extension_PlaylistTitleGet the playlist title for a 'playlist' subscription.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_PlaylistTitle |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_VersionException |

getQueryString(
)
:
\Zend_Gdata_YouTube_Extension_QueryStringGet the queryString of the subscription
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_QueryString |

getUsername(
)
:
\Zend_Gdata_YouTube_Extension_UsernameGet the username for a channel subscription.
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_Extension_Username |

setFeedLink(
array $feedLink
=
null
)
:
\Zend_Gdata_YouTube_SubscriptionEntrySets 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_SubscriptionEntry | Provides a fluent interface |

setPlaylistId(
\Zend_Gdata_YouTube_Extension_PlaylistId $id
=
null
)
:
\Zend_Gdata_YouTube_SubscriptionEntrySets the yt:playlistId element for a new playlist subscription.
| Name | Type | Description |
|---|---|---|
| $id | \Zend_Gdata_YouTube_Extension_PlaylistId | The id of the playlist to which to subscribe to. |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_SubscriptionEntry | Provides a fluent interface |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_VersionException |

setPlaylistTitle(
\Zend_Gdata_YouTube_Extension_PlaylistTitle $title
=
null
)
:
\Zend_Gdata_YouTube_SubscriptionEntrySets the yt:playlistTitle element for a new playlist subscription.
| Name | Type | Description |
|---|---|---|
| $title | \Zend_Gdata_YouTube_Extension_PlaylistTitle | The title of the playlist to which to subscribe to. |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_SubscriptionEntry | Provides a fluent interface |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_VersionException |

setQueryString(
\Zend_Gdata_YouTube_Extension_QueryString $queryString
=
null
)
:
\Zend_Gdata_YouTube_SubscriptionEntrySets the yt:queryString element for a new keyword subscription.
| Name | Type | Description |
|---|---|---|
| $queryString | \Zend_Gdata_YouTube_Extension_QueryString | The query string to subscribe to |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_SubscriptionEntry | Provides a fluent interface |

setUsername(
\Zend_Gdata_YouTube_Extension_Username $username
=
null
)
:
\Zend_Gdata_YouTube_SubscriptionEntrySets the username for a new channel subscription.
| Name | Type | Description |
|---|---|---|
| $username | \Zend_Gdata_YouTube_Extension_Username | The username of the channel to which to subscribe to. |
| Type | Description |
|---|---|
| \Zend_Gdata_YouTube_SubscriptionEntry | Provides a fluent interface |