Trait luya\web\jsonld\LiveBlogPostingTrait
Uses Traits | luya\web\jsonld\BlogPostingTrait |
---|---|
Implemented by | luya\web\jsonld\LiveBlogPosting |
Available since version | 1.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
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
public string getCoverageEndTime ( ) |
public function getCoverageEndTime()
{
return $this->_coverageEndTime;
}
public string getCoverageStartTime ( ) |
public function getCoverageStartTime()
{
return $this->_coverageStartTime;
}
public luya\web\jsonld\BlogPosting getLiveBlogUpdate ( ) |
public function getLiveBlogUpdate()
{
return $this->_liveBlogUpdate;
}
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;
}
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;
}
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;
}