PHP 클래스 Thepixeldeveloper\Sitemap\Subelements\Video

상속: implements Thepixeldeveloper\Sitemap\OutputInterface, implements Thepixeldeveloper\Sitemap\AppendAttributeInterface
파일 보기 프로젝트 열기: thepixeldeveloper/sitemap

보호된 프로퍼티들

프로퍼티 타입 설명
$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?

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