Property | Type | Description | |
---|---|---|---|
$category | string | The video's category. For example, cooking. | |
$contentLoc | string | URL pointing to the actual media file (mp4). | |
$description | string | Description of the video, max 2048 characters. | |
$duration | integer | Duration of the video in seconds. | |
$expirationDate | string | The date after which the video will no longer be available, in W3C format. | |
$familyFriendly | string | No if the video should be available only to users with SafeSearch turned off. | |
$galleryLoc | string | Link to gallery of which this video appears in. | |
$live | boolean | Indicates whether the video is live. | |
$platform | string | Allowed values are web, mobile, and tv. | |
$playerLoc | string | URL pointing to the player file (normally a SWF). | |
$price | string | The price to download or view the video in ISO 4217 format. | |
$publicationDate | string | The date the video was first published, in W3C format. | |
$rating | float | The rating of the video. Allowed values are float numbers in the range 0.0 to 5.0. | |
$requiresSubscription | boolean | Does the video require a subscription? | |
$restriction | string | A space-delimited list of countries where the video may or may not be played. | |
$tags | array | A tag associated with the video. | |
$thumbnailLoc | string | URL pointing to an image thumbnail. | |
$title | string | Title of the video, max 100 characters. | |
$uploader | string | The video uploader's name. Only one |
|
$viewCount | integer | The number of times the video has been viewed. |
Method | Description | |
---|---|---|
__construct ( string $thumbnailLoc, string $title, string $description ) | Video constructor. | |
appendAttributeToCollectionXML ( XMLWriter $XMLWriter ) | ||
generateXML ( XMLWriter $XMLWriter ) | ||
getCategory ( ) : string | The video's category. For example, cooking. | |
getContentLoc ( ) : string | URL pointing to the actual media file (mp4). | |
getDescription ( ) : string | Description of the video, max 2048 characters. | |
getDuration ( ) : integer | Duration of the video in seconds. | |
getExpirationDate ( ) : string | The date after which the video will no longer be available, in W3C format. | |
getFamilyFriendly ( ) : string | No if the video should be available only to users with SafeSearch turned off. | |
getGalleryLoc ( ) : string | Link to gallery of which this video appears in. | |
getLive ( ) : boolean | Indicates whether the video is live. | |
getPlatform ( ) : string | String of space delimited platform values. | |
getPlayerLoc ( ) : string | URL pointing to the player file (normally a SWF). | |
getPrice ( ) : string | The price to download or view the video in ISO 4217 format. | |
getPublicationDate ( ) : string | The date the video was first published, in W3C format. | |
getRating ( ) : float | The rating of the video. Allowed values are float numbers in the range 0.0 to 5.0. | |
getRequiresSubscription ( ) : boolean | Does the video require a subscription? | |
getRestriction ( ) : string | A space-delimited list of countries where the video may or may not be played. | |
getTags ( ) : array | A tag associated with the video. | |
getThumbnailLoc ( ) : string | URL pointing to an image thumbnail. | |
getTitle ( ) : string | Title of the video, max 100 characters. | |
getUploader ( ) : string |
The video uploader's name. Only one |
|
getViewCount ( ) : integer | The number of times the video has been viewed. | |
setCategory ( string $category ) | The video's category. For example, cooking. | |
setContentLoc ( string $contentLoc ) | URL pointing to the actual media file (mp4). | |
setDuration ( integer $duration ) | Duration of the video in seconds. | |
setExpirationDate ( string $expirationDate ) | The date after which the video will no longer be available, in W3C format. | |
setFamilyFriendly ( string $familyFriendly ) | No if the video should be available only to users with SafeSearch turned off. | |
setGalleryLoc ( string $galleryLoc ) | Link to gallery of which this video appears in. | |
setLive ( boolean $live ) | Indicates whether the video is live. | |
setPlatform ( string $platform ) | String of space delimited platform values. | |
setPlayerLoc ( string $playerLoc ) | URL pointing to the player file (normally a SWF). | |
setPrice ( string $price ) | The price to download or view the video in ISO 4217 format. | |
setPublicationDate ( string $publicationDate ) | The date the video was first published, in W3C format. | |
setRating ( float $rating ) | The rating of the video. Allowed values are float numbers in the range 0.0 to 5.0. | |
setRequiresSubscription ( boolean $requiresSubscription ) | Does the video require a subscription? | |
setRestriction ( string $restriction ) | A space-delimited list of countries where the video may or may not be played. | |
setTags ( array $tags ) | A tag associated with the video. | |
setUploader ( string $uploader ) |
The video uploader's name. Only one |
|
setViewCount ( integer $viewCount ) | The number of times the video has been viewed. |
Method | Description | |
---|---|---|
optionalWriteElement ( XMLWriter $XMLWriter, $name, $value ) |
public appendAttributeToCollectionXML ( XMLWriter $XMLWriter ) | ||
$XMLWriter | XMLWriter |
public getCategory ( ) : string | ||
return | string |
public getContentLoc ( ) : string | ||
return | string |
public getDescription ( ) : string | ||
return | string |
public getDuration ( ) : integer | ||
return | integer |
public getExpirationDate ( ) : string | ||
return | string |
public getFamilyFriendly ( ) : string | ||
return | string |
public getGalleryLoc ( ) : string | ||
return | string |
public getPlatform ( ) : string | ||
return | string |
public getPlayerLoc ( ) : string | ||
return | string |
public getPublicationDate ( ) : string | ||
return | string |
public getRequiresSubscription ( ) : boolean | ||
return | boolean |
public getRestriction ( ) : string | ||
return | string |
public getThumbnailLoc ( ) : string | ||
return | string |
public getUploader ( ) : string | ||
return | string |
public getViewCount ( ) : integer | ||
return | integer |
protected optionalWriteElement ( XMLWriter $XMLWriter, $name, $value ) | ||
$XMLWriter | XMLWriter |
public setCategory ( string $category ) | ||
$category | string |
public setContentLoc ( string $contentLoc ) | ||
$contentLoc | string |
public setDuration ( integer $duration ) | ||
$duration | integer |
public setExpirationDate ( string $expirationDate ) | ||
$expirationDate | string |
public setFamilyFriendly ( string $familyFriendly ) | ||
$familyFriendly | string |
public setGalleryLoc ( string $galleryLoc ) | ||
$galleryLoc | string |
public setPlatform ( string $platform ) | ||
$platform | string |
public setPlayerLoc ( string $playerLoc ) | ||
$playerLoc | string |
public setPublicationDate ( string $publicationDate ) | ||
$publicationDate | string |
public setRequiresSubscription ( boolean $requiresSubscription ) | ||
$requiresSubscription | boolean |
public setRestriction ( string $restriction ) | ||
$restriction | string |
public setUploader ( string $uploader ) | ||
$uploader | string |
public setViewCount ( integer $viewCount ) | ||
$viewCount | integer |
protected string $category | ||
return | string |
protected string $contentLoc | ||
return | string |
protected string $description | ||
return | string |
protected int $duration | ||
return | integer |
protected string $expirationDate | ||
return | string |
protected string $familyFriendly | ||
return | string |
protected string $galleryLoc | ||
return | string |
protected bool $live | ||
return | boolean |
protected string $platform | ||
return | string |
protected string $playerLoc | ||
return | string |
protected string $price | ||
return | string |
protected string $publicationDate | ||
return | string |
protected float $rating | ||
return | float |
protected bool $requiresSubscription | ||
return | boolean |
protected string $restriction | ||
return | string |
protected string $thumbnailLoc | ||
return | string |
protected string $title | ||
return | string |
protected string $uploader | ||
return | string |
protected int $viewCount | ||
return | integer |