ApiContentElement augments ArticleModel for the API.
- Class name: Article
- Namespace: DieSchittigs\ContaoContentApiBundle
- Parent class: DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel
public mixed $model = null
- Visibility: public
mixed DieSchittigs\ContaoContentApiBundle\Article::__construct(integer $id)
constructor.
- Visibility: public
- $id integer - <p>id of the ArticleModel</p>
mixed DieSchittigs\ContaoContentApiBundle\Article::findByPageId(integer $pid)
Gets article by parent page id.
- Visibility: public
- This method is static.
- $pid integer - <p>id of the page</p>
mixed DieSchittigs\ContaoContentApiBundle\Article::hasReader(string $readerType)
Does this Article have a reader module?
- Visibility: public
- $readerType string - <p>What kind of reader? e.g. 'newsreader'</p>
mixed DieSchittigs\ContaoContentApiBundle\ContaoJsonSerializable::toJson()
- Visibility: public
- This method is defined by DieSchittigs\ContaoContentApiBundle\ContaoJsonSerializable
mixed DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel::__get(string $property)
Get the value from the attached model.
- Visibility: public
- This method is defined by DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel
- $property string - <p>key</p>
mixed DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel::__set(string $property, mixed $value)
Set the value in the attached model.
- Visibility: public
- This method is defined by DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel
- $property string - <p>key</p>
- $value mixed - <p>value</p>