Trait luya\web\jsonld\LiveBlogPostingTrait

Uses Traitsluya\web\jsonld\BlogPostingTrait
Implemented byluya\web\jsonld\LiveBlogPosting
Available since version1.0.1
Source Code https://github.com/luyadev/luya/blob/master/core/web/jsonld/LiveBlogPostingTrait.php

JsonLd - Live Blog Posting trait

See also http://schema.org/LiveBlogPosting.

Public Methods

Hide inherited methods

Method Description Defined By
getCoverageEndTime() luya\web\jsonld\LiveBlogPostingTrait
getCoverageStartTime() luya\web\jsonld\LiveBlogPostingTrait
getLiveBlogUpdate() luya\web\jsonld\LiveBlogPostingTrait
setCoverageEndTime() The time when the live blog will stop covering the Event. Note that coverage may continue after the Event concludes. luya\web\jsonld\LiveBlogPostingTrait
setCoverageStartTime() The time when the live blog will begin covering the Event. Note that coverage may begin before the Event's start time. luya\web\jsonld\LiveBlogPostingTrait
setLiveBlogUpdate() An update to the LiveBlog. luya\web\jsonld\LiveBlogPostingTrait

Method Details

Hide inherited methods

getCoverageEndTime() public method

public string getCoverageEndTime ( )

                public function getCoverageEndTime()
{
    return $this->_coverageEndTime;
}

            
getCoverageStartTime() public method

public string getCoverageStartTime ( )

                public function getCoverageStartTime()
{
    return $this->_coverageStartTime;
}

            
getLiveBlogUpdate() public method

public luya\web\jsonld\BlogPosting getLiveBlogUpdate ( )

                public function getLiveBlogUpdate()
{
    return $this->_liveBlogUpdate;
}

            
setCoverageEndTime() public method

The time when the live blog will stop covering the Event. Note that coverage may continue after the Event concludes.

public static setCoverageEndTime ( luya\web\jsonld\DateTimeValue $coverageEndTime )
$coverageEndTime luya\web\jsonld\DateTimeValue

                public function setCoverageEndTime(DateTimeValue $coverageEndTime)
{
    $this->_coverageEndTime = $coverageEndTime->getValue();
    return $this;
}

            
setCoverageStartTime() public method

The time when the live blog will begin covering the Event. Note that coverage may begin before the Event's start time.

The LiveBlogPosting may also be created before coverage begins.

public static setCoverageStartTime ( luya\web\jsonld\DateTimeValue $coverageStartTime )
$coverageStartTime luya\web\jsonld\DateTimeValue

                public function setCoverageStartTime(DateTimeValue $coverageStartTime)
{
    $this->_coverageStartTime = $coverageStartTime->getValue();
    return $this;
}

            
setLiveBlogUpdate() public method

An update to the LiveBlog.

public static setLiveBlogUpdate ( luya\web\jsonld\BlogPosting $liveBlogUpdate )
$liveBlogUpdate luya\web\jsonld\BlogPosting

                public function setLiveBlogUpdate(BlogPosting $liveBlogUpdate)
{
    $this->_liveBlogUpdate = $liveBlogUpdate;
    return $this;
}