Skip to content

Latest commit

 

History

History
132 lines (51 loc) · 2.27 KB

DieSchittigs-ContaoContentApiBundle-Article.md

File metadata and controls

132 lines (51 loc) · 2.27 KB

DieSchittigs\ContaoContentApiBundle\Article

ApiContentElement augments ArticleModel for the API.

Properties

$model

public mixed $model = null
  • Visibility: public

Methods

__construct

mixed DieSchittigs\ContaoContentApiBundle\Article::__construct(integer $id)

constructor.

  • Visibility: public

Arguments

  • $id integer - <p>id of the ArticleModel</p>

findByPageId

mixed DieSchittigs\ContaoContentApiBundle\Article::findByPageId(integer $pid)

Gets article by parent page id.

  • Visibility: public
  • This method is static.

Arguments

  • $pid integer - <p>id of the page</p>

hasReader

mixed DieSchittigs\ContaoContentApiBundle\Article::hasReader(string $readerType)

Does this Article have a reader module?

  • Visibility: public

Arguments

  • $readerType string - <p>What kind of reader? e.g. 'newsreader'</p>

toJson

mixed DieSchittigs\ContaoContentApiBundle\ContaoJsonSerializable::toJson()

__get

mixed DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel::__get(string $property)

Get the value from the attached model.

Arguments

  • $property string - <p>key</p>

__set

mixed DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel::__set(string $property, mixed $value)

Set the value in the attached model.

Arguments

  • $property string - <p>key</p>
  • $value mixed - <p>value</p>