Trait luya\web\jsonld\ArticleTrait
| Uses Traits | luya\web\jsonld\CreativeWorkTrait |
|---|---|
| Implemented by | luya\web\jsonld\Article |
| Available since version | 1.0.1 |
| Source Code | https://github.com/luyadev/luya/blob/master/core/web/jsonld/ArticleTrait.php |
JsonLd - Article Trait
See also http://schema.org/Article.
Public Methods
Method Details
| public string getArticleSection ( ) |
public function getArticleSection()
{
return $this->_articleSection;
}
The actual body of the article.
| public static setArticleBody ( $articleBody ) | ||
| $articleBody | string | |
public function setArticleBody($articleBody)
{
$this->_articleBody = $articleBody;
return $this;
}
Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc.
| public static setArticleSection ( $articleSection ) | ||
| $articleSection | string | |
public function setArticleSection($articleSection)
{
$this->_articleSection = $articleSection;
return $this;
}
The page on which the work ends; for example "138" or "xvi".
| public static setPageEnd ( $pageEnd ) | ||
| $pageEnd | integer|string | |
public function setPageEnd($pageEnd)
{
$this->_pageEnd = $pageEnd;
return $this;
}
The page on which the work starts; for example "135" or "xiii".
| public static setPageStart ( $pageStart ) | ||
| $pageStart | integer|string | |
public function setPageStart($pageStart)
{
$this->_pageStart = $pageStart;
return $this;
}
Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".
| public static setPagination ( $pagination ) | ||
| $pagination | string | |
public function setPagination($pagination)
{
$this->_pagination = $pagination;
return $this;
}
The number of words in the text of the Article.
| public static setWordCount ( $wordCount ) | ||
| $wordCount | integer | |
public function setWordCount($wordCount)
{
$this->_wordCount = $wordCount;
return $this;
}