Small compatibility layer for callbacks, that expect a "full featured" DC instance.
Methods
Create a new instance.
__construct(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, null $propertyName)
Parameters
$propertyName
null
The name of the property within scope (optional).
{@inheritdoc}
__get($name)
SuppressWarnings |
(PHPMD.CyclomaticComplexity) |
Parameters
$name
Exceptions
{@inheritdoc}
__set($strKey, $varValue)
Parameters
$strKey
$varValue
Exceptions
Retrieve the current property.
getPropertyName() : string
{@inheritdoc}
handlePopulateEnvironment(\ContaoCommunityAlliance\DcGeneral\Factory\Event\PopulateEnvironmentEvent $event)
Parameters
$event
Exceptions
{@inheritdoc}
getTablenameCallback($strTable)
Parameters
$strTable
Exceptions
Properties
Name of the property currently working on.
$propertyName : string