Class ContaoWidgetManager.
__construct(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model)
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe model for which widgets shall be generated.
decodeValue(string $property, mixed $value) : mixed
stringThe property.
mixedThe value of the property.
mixedencodeValue(string $property, mixed $value, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $propertyValues) : mixed
stringThe property.
mixedThe value of the property.
\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBagThe property value bag the property value originates from.
mixedgetEnvironment()
getWidget(string $property, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $inputValues) : \Widget
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
stringName of the property for which the widget shall be retrieved.
\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBagThe input values to use (optional).
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an unknown property has been passed. |
|---|---|
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When No widget could be build. |
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When property is not defined in the property definitions. |
hasWidget($property)
preLoadRichTextEditor() : void
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
\Exception |
When the rich text editor config file can not be found. |
|---|
processErrors(\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $propertyValues)
processInput(\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $propertyValues)
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
renderWidget(string $property, bool $ignoreErrors, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $inputValues) : string
stringThe name of the property for which the widget shall be rendered.
boolFlag if the error property of the widget shall get cleared prior rendering.
\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBagThe input values to use (optional).
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
For unknown properties. |
|---|
stringbuildDatePicker(\Contao\Widget $objWidget) : string
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
stringgenerateHelpText(string $property) : string
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
stringThe name of the property.
string$model : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface