PHP Класс Thepixeldeveloper\Sitemap\Subelements\Video

Наследование: implements Thepixeldeveloper\Sitemap\OutputInterface, implements Thepixeldeveloper\Sitemap\AppendAttributeInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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 is allowed per video.
$viewCount integer The number of times the video has been viewed.

Открытые методы

Метод Описание
__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 is allowed per video.
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 is allowed per video.
setViewCount ( integer $viewCount ) The number of times the video has been viewed.

Защищенные методы

Метод Описание
optionalWriteElement ( XMLWriter $XMLWriter, $name, $value )

Описание методов

__construct() публичный Метод

Video constructor.
public __construct ( string $thumbnailLoc, string $title, string $description )
$thumbnailLoc string
$title string
$description string

appendAttributeToCollectionXML() публичный Метод

public appendAttributeToCollectionXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

generateXML() публичный Метод

public generateXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

getCategory() публичный Метод

The video's category. For example, cooking.
public getCategory ( ) : string
Результат string

getContentLoc() публичный Метод

URL pointing to the actual media file (mp4).
public getContentLoc ( ) : string
Результат string

getDescription() публичный Метод

Description of the video, max 2048 characters.
public getDescription ( ) : string
Результат string

getDuration() публичный Метод

Duration of the video in seconds.
public getDuration ( ) : integer
Результат integer

getExpirationDate() публичный Метод

The date after which the video will no longer be available, in W3C format.
public getExpirationDate ( ) : string
Результат string

getFamilyFriendly() публичный Метод

No if the video should be available only to users with SafeSearch turned off.
public getFamilyFriendly ( ) : string
Результат string

getGalleryLoc() публичный Метод

Link to gallery of which this video appears in.
public getGalleryLoc ( ) : string
Результат string

getLive() публичный Метод

Indicates whether the video is live.
public getLive ( ) : boolean
Результат boolean

getPlatform() публичный Метод

Allowed values are web, mobile, and tv.
public getPlatform ( ) : string
Результат string

getPlayerLoc() публичный Метод

URL pointing to the player file (normally a SWF).
public getPlayerLoc ( ) : string
Результат string

getPrice() публичный Метод

The price to download or view the video in ISO 4217 format.
public getPrice ( ) : string
Результат string

getPublicationDate() публичный Метод

The date the video was first published, in W3C format.
public getPublicationDate ( ) : string
Результат string

getRating() публичный Метод

The rating of the video. Allowed values are float numbers in the range 0.0 to 5.0.
public getRating ( ) : float
Результат float

getRequiresSubscription() публичный Метод

Does the video require a subscription?
public getRequiresSubscription ( ) : boolean
Результат boolean

getRestriction() публичный Метод

A space-delimited list of countries where the video may or may not be played.
public getRestriction ( ) : string
Результат string

getTags() публичный Метод

A tag associated with the video.
public getTags ( ) : array
Результат array

getThumbnailLoc() публичный Метод

URL pointing to an image thumbnail.
public getThumbnailLoc ( ) : string
Результат string

getTitle() публичный Метод

Title of the video, max 100 characters.
public getTitle ( ) : string
Результат string

getUploader() публичный Метод

The video uploader's name. Only one is allowed per video.
public getUploader ( ) : string
Результат string

getViewCount() публичный Метод

The number of times the video has been viewed.
public getViewCount ( ) : integer
Результат integer

optionalWriteElement() защищенный Метод

protected optionalWriteElement ( XMLWriter $XMLWriter, $name, $value )
$XMLWriter XMLWriter

setCategory() публичный Метод

The video's category. For example, cooking.
public setCategory ( string $category )
$category string

setContentLoc() публичный Метод

URL pointing to the actual media file (mp4).
public setContentLoc ( string $contentLoc )
$contentLoc string

setDuration() публичный Метод

Duration of the video in seconds.
public setDuration ( integer $duration )
$duration integer

setExpirationDate() публичный Метод

The date after which the video will no longer be available, in W3C format.
public setExpirationDate ( string $expirationDate )
$expirationDate string

setFamilyFriendly() публичный Метод

No if the video should be available only to users with SafeSearch turned off.
public setFamilyFriendly ( string $familyFriendly )
$familyFriendly string

setGalleryLoc() публичный Метод

Link to gallery of which this video appears in.
public setGalleryLoc ( string $galleryLoc )
$galleryLoc string

setLive() публичный Метод

Indicates whether the video is live.
public setLive ( boolean $live )
$live boolean

setPlatform() публичный Метод

Allowed values are web, mobile, and tv.
public setPlatform ( string $platform )
$platform string

setPlayerLoc() публичный Метод

URL pointing to the player file (normally a SWF).
public setPlayerLoc ( string $playerLoc )
$playerLoc string

setPrice() публичный Метод

The price to download or view the video in ISO 4217 format.
public setPrice ( string $price )
$price string

setPublicationDate() публичный Метод

The date the video was first published, in W3C format.
public setPublicationDate ( string $publicationDate )
$publicationDate string

setRating() публичный Метод

The rating of the video. Allowed values are float numbers in the range 0.0 to 5.0.
public setRating ( float $rating )
$rating float

setRequiresSubscription() публичный Метод

Does the video require a subscription?
public setRequiresSubscription ( boolean $requiresSubscription )
$requiresSubscription boolean

setRestriction() публичный Метод

A space-delimited list of countries where the video may or may not be played.
public setRestriction ( string $restriction )
$restriction string

setTags() публичный Метод

A tag associated with the video.
public setTags ( array $tags )
$tags array

setUploader() публичный Метод

The video uploader's name. Only one is allowed per video.
public setUploader ( string $uploader )
$uploader string

setViewCount() публичный Метод

The number of times the video has been viewed.
public setViewCount ( integer $viewCount )
$viewCount integer

Описание свойств

$category защищенное свойство

The video's category. For example, cooking.
protected string $category
Результат string

$contentLoc защищенное свойство

URL pointing to the actual media file (mp4).
protected string $contentLoc
Результат string

$description защищенное свойство

Description of the video, max 2048 characters.
protected string $description
Результат string

$duration защищенное свойство

Duration of the video in seconds.
protected int $duration
Результат integer

$expirationDate защищенное свойство

The date after which the video will no longer be available, in W3C format.
protected string $expirationDate
Результат string

$familyFriendly защищенное свойство

No if the video should be available only to users with SafeSearch turned off.
protected string $familyFriendly
Результат string

$galleryLoc защищенное свойство

Link to gallery of which this video appears in.
protected string $galleryLoc
Результат string

$live защищенное свойство

Indicates whether the video is live.
protected bool $live
Результат boolean

$platform защищенное свойство

Allowed values are web, mobile, and tv.
protected string $platform
Результат string

$playerLoc защищенное свойство

URL pointing to the player file (normally a SWF).
protected string $playerLoc
Результат string

$price защищенное свойство

The price to download or view the video in ISO 4217 format.
protected string $price
Результат string

$publicationDate защищенное свойство

The date the video was first published, in W3C format.
protected string $publicationDate
Результат string

$rating защищенное свойство

The rating of the video. Allowed values are float numbers in the range 0.0 to 5.0.
protected float $rating
Результат float

$requiresSubscription защищенное свойство

Does the video require a subscription?
protected bool $requiresSubscription
Результат boolean

$restriction защищенное свойство

A space-delimited list of countries where the video may or may not be played.
protected string $restriction
Результат string

$tags защищенное свойство

A tag associated with the video.
protected array $tags
Результат array

$thumbnailLoc защищенное свойство

URL pointing to an image thumbnail.
protected string $thumbnailLoc
Результат string

$title защищенное свойство

Title of the video, max 100 characters.
protected string $title
Результат string

$uploader защищенное свойство

The video uploader's name. Only one is allowed per video.
protected string $uploader
Результат string

$viewCount защищенное свойство

The number of times the video has been viewed.
protected int $viewCount
Результат integer