widget
Table of Contents
Classes
- EsiWidgetController
- JsonAdapter Controller to handle EsiWidgets
Usage:
- Create a subclass that implements parseWidget()
- Register it as a Controller in your ComponentController
- RandomEsiWidgetController
- JsonAdapter Controller to handle EsiWidgets
Usage:
- Create a subclass that implements parseWidget()
- Register it as a Controller in your ComponentController
- ComponentController
- Main controller for Widget handler
- EsiWidgetControllerException
- Exception for wrong usage of ESI widget
- EsiWidgetController
- JsonAdapter Controller to handle EsiWidgets
Usage:
- Create a subclass that implements parseWidget()
- Register it as a Controller in your ComponentController
- RandomEsiWidgetController
- JsonAdapter Controller to handle EsiWidgets
Usage:
- Create a subclass that implements parseWidget()
- Register it as a Controller in your ComponentController
- 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