Overview

Namespaces

  • DcGeneral
    • Clipboard
    • Contao
      • Callback
      • Compatibility
      • DataDefinition
        • Definition
      • Dca
        • Builder
          • Legacy
        • Definition
        • Palette
        • Populator
      • Event
      • View
        • Contao2BackendView
          • Event
    • Controller
    • Data
    • DataDefinition
      • Builder
      • Definition
        • Properties
        • View
          • Panel
      • ModelRelationship
      • Palette
        • Builder
          • Event
        • Condition
          • Palette
          • Property
    • EnvironmentPopulator
    • Event
    • Exception
    • Factory
      • Event
    • Panel
    • View
      • Event

Classes

  • ActiveRecord
  • ClassLoader
  • DcCompat
  • TemplateLoader
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class DcCompat

Class DcCompat

Small compatibility layer for callbacks, that expect a "full featured" DC instance.

DataContainer
Extended by DcGeneral\DC_General implements DcGeneral\DataContainerInterface
Extended by DcGeneral\Contao\Compatibility\DcCompat
Namespace: DcGeneral\Contao\Compatibility
Located at Contao/Compatibility/DcCompat.php
Methods summary
public
# __construct( DcGeneral\EnvironmentInterface $environment, DcGeneral\Data\ModelInterface $model, null $propertyName = null )

Create a new instance.

Create a new instance.

Parameters

$environment
DcGeneral\EnvironmentInterface
$environment The Dc instance to use for delegating.
$model
DcGeneral\Data\ModelInterface
$model The model within scope.
$propertyName
null
$propertyName The name of the property within scope.

Overrides

DcGeneral\DC_General::__construct()
public DcGeneral\Data\ModelInterface
# getModel( )

Retrieve the current model.

Retrieve the current model.

Returns

DcGeneral\Data\ModelInterface
public string
# getPropertyName( )

Retrieve the current property.

Retrieve the current property.

Returns

string
public
# handlePopulateEnvironment( DcGeneral\Factory\Event\PopulateEnvironmentEvent $event )

Callback coming from the environment populator.

Callback coming from the environment populator.

Parameters

$event
DcGeneral\Factory\Event\PopulateEnvironmentEvent
$event The event.

Throws

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

Overrides

DcGeneral\DC_General::handlePopulateEnvironment()
protected string
# getTablenameCallback( string $strTable )

Call the table name callback.

Call the table name callback.

Parameters

$strTable
string
$strTable The current table name.

Returns

string
New name of current table.

Throws

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

Overrides

DcGeneral\DC_General::getTablenameCallback()
public
# __set( mixed $strKey, mixed $varValue )

Throws

DcGeneral\Exception\DcGeneralRuntimeException
The magic setter is unsupported and has been deactivated.
public mixed
# __get( string $name )

Magic getter.

Magic getter.

Deprecated

magic access is deprecated.

Parameters

$name
string
$name Name of the property to retrieve.

Returns

mixed

Throws

DcGeneral\Exception\DcGeneralRuntimeException
If an invalid key is requested.

Overrides

DcGeneral\DC_General::__get()
public array
# getDCA( )

Retrieve the DCA.

Retrieve the DCA.

Returns

array

Overrides

DcGeneral\DC_General::getDCA()
Methods inherited from DcGeneral\DC_General
__call(), copy(), create(), cut(), delete(), edit(), getControllerHandler(), getEnvironment(), getName(), getViewHandler(), move(), show(), showAll(), undo()
Properties summary
protected DcGeneral\Data\ModelInterface $model
#

The current model.

The current model.

protected string $propertyName
#

Name of the property currently working on.

Name of the property currently working on.

Properties inherited from DcGeneral\DC_General
$arrDCA, $arrFields, $objEnvironment
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0