Skip to content

Latest commit

 

History

History
116 lines (45 loc) · 2.04 KB

DieSchittigs-ContaoContentApiBundle-Reader.md

File metadata and controls

116 lines (45 loc) · 2.04 KB

DieSchittigs\ContaoContentApiBundle\Reader

Reader augments reader model classes for the API.

Properties

$model

public mixed $model = null
  • Visibility: public

Methods

__construct

mixed DieSchittigs\ContaoContentApiBundle\Reader::__construct(string $model, string $url)

constructor.

  • Visibility: public

Arguments

  • $model string - <p>Reader Model class (e.g. NewsModel)</p>
  • $url string - <p>Current URL</p>

urlToAlias

mixed DieSchittigs\ContaoContentApiBundle\Reader::urlToAlias(string $url)

Gets the alias from a URL.

  • Visibility: private

Arguments

  • $url string - <p>URL to get the alias from</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>