Class ContaoWidgetManager.
__construct(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model)
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model for which widgets shall be generated.
decodeValue(string $property, mixed $value) : mixed
string
The property.
mixed
The value of the property.
mixed
encodeValue(string $property, mixed $value, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $propertyValues) : mixed
string
The property.
mixed
The value of the property.
\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
The property value bag the property value originates from.
mixed
getEnvironment()
getWidget(string $property, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $inputValues) : \Widget
SuppressWarnings | (PHPMD.Superglobals) |
---|---|
SuppressWarnings | (PHPMD.CamelCaseVariableName) |
string
Name of the property for which the widget shall be retrieved.
\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
The 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
string
The name of the property for which the widget shall be rendered.
bool
Flag if the error property of the widget shall get cleared prior rendering.
\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
The input values to use (optional).
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
For unknown properties. |
---|
string
buildDatePicker(\Contao\Widget $objWidget) : string
SuppressWarnings | (PHPMD.Superglobals) |
---|---|
SuppressWarnings | (PHPMD.CamelCaseVariableName) |
string
generateHelpText(string $property) : string
SuppressWarnings | (PHPMD.Superglobals) |
---|---|
SuppressWarnings | (PHPMD.CamelCaseVariableName) |
string
The name of the property.
string
$model : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface