Trait luya\web\jsonld\ArticleTrait

Uses Traitsluya\web\jsonld\CreativeWorkTrait
Implemented byluya\web\jsonld\Article
Available since version1.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

Hide inherited methods

Method Description Defined By
getArticleBody() luya\web\jsonld\ArticleTrait
getArticleSection() luya\web\jsonld\ArticleTrait
getPageEnd() luya\web\jsonld\ArticleTrait
getPageStart() luya\web\jsonld\ArticleTrait
getPagination() luya\web\jsonld\ArticleTrait
getWordCount() luya\web\jsonld\ArticleTrait
setArticleBody() The actual body of the article. luya\web\jsonld\ArticleTrait
setArticleSection() Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc. luya\web\jsonld\ArticleTrait
setPageEnd() The page on which the work ends; for example "138" or "xvi". luya\web\jsonld\ArticleTrait
setPageStart() The page on which the work starts; for example "135" or "xiii". luya\web\jsonld\ArticleTrait
setPagination() Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". luya\web\jsonld\ArticleTrait
setWordCount() The number of words in the text of the Article. luya\web\jsonld\ArticleTrait

Method Details

Hide inherited methods

getArticleBody() public method

public string getArticleBody ( )

                public function getArticleBody()
{
    return $this->_articleBody;
}

            
getArticleSection() public method

public string getArticleSection ( )

                public function getArticleSection()
{
    return $this->_articleSection;
}

            
getPageEnd() public method

public integer|string getPageEnd ( )

                public function getPageEnd()
{
    return $this->_pageEnd;
}

            
getPageStart() public method

public integer|string getPageStart ( )

                public function getPageStart()
{
    return $this->_pageStart;
}

            
getPagination() public method

public string getPagination ( )

                public function getPagination()
{
    return $this->_pagination;
}

            
getWordCount() public method

public integer getWordCount ( )

                public function getWordCount()
{
    return $this->_wordCount;
}

            
setArticleBody() public method

The actual body of the article.

public static setArticleBody ( $articleBody )
$articleBody string

                public function setArticleBody($articleBody)
{
    $this->_articleBody = $articleBody;
    return $this;
}

            
setArticleSection() public method

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;
}

            
setPageEnd() public method

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;
}

            
setPageStart() public method

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;
}

            
setPagination() public method

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;
}

            
setWordCount() public method

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;
}