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

$environment

\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface

The Dc instance to use for delegating.

$model

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

The model within scope (optional).

$propertyName

null

The name of the property within scope (optional).

{@inheritdoc}

__get($name) 
SuppressWarnings (PHPMD.CyclomaticComplexity)

Parameters

$name

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException When an unknown key is encountered.

{@inheritdoc}

__set($strKey, $varValue) 

Parameters

$strKey

$varValue

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException The magic setter is unsupported and has been deactivated.

Retrieve the current property.

getPropertyName() : string

Returns

string

{@inheritdoc}

handlePopulateEnvironment(\ContaoCommunityAlliance\DcGeneral\Factory\Event\PopulateEnvironmentEvent $event) 

Parameters

$event

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralException This method is for internal use only.

{@inheritdoc}

getTablenameCallback($strTable) 

Parameters

$strTable

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralException This method is for internal use only.

 Properties

   

Name of the property currently working on.

$propertyName : string