Entity
Table of Contents
Classes
- EsiWidget
- Represents a template widget that is handled by ESI
Usage:
```php
$this->getComponent('Widget')->registerWidget(
new \Cx\Core_Modules\Widget\Model\Entity\EsiWidget(
$this->getSystemComponentController(),
'FOO'
)
);
```
The above example replaces Sigma placeholder "FOO" by return value of
JsonAdapter method "getWidget" of JsonAdapter named after $this->getName()
- FinalStringWidget
- Represents a template widget that displays the same string everytime
Usage:
```php
$this->getComponent('Widget')->registerWidget(
new \Cx\Core_Modules\Widget\Model\Entity\FinalStringWidget(
$this->getSystemComponentController(),
'FOO',
'bar'
)
);
```
The above example replaces Sigma placeholder "FOO" by string "bar"
- RandomEsiWidget
- Represents a template widget that contains randomized content
- Sigma
- Temporary workaround: Sigma that does not remove untouched blocks and variables
- Widget
- Represents a template widget
- WidgetParseTarget
- Represents an entity which has content that can contain widgets