PHP Class MetaModels\DcGeneral\Events\Table\AbstractAddAllHandler

This is in use in the render settings and input screen settings.
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Show file Open project: metamodels/core

Protected Properties

Property Type Description
$actionName string The action name to listen on.
$ptable string The parent table name to work on.
$table string The table name to work on.

Public Methods

Method Description
__construct ( MetaModels\IMetaModelsServiceContainer $serviceContainer ) Create a new instance.
getSubscribedEvents ( ) {@inheritDoc}
handleActionEvent ( ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event ) : void Handle the action event.

Protected Methods

Method Description
accepts ( MetaModels\Attribute\IAttribute $attribute ) : boolean Test if the passed attribute is acceptable.
createEmptyDataFor ( MetaModels\Attribute\IAttribute $attribute ) : array Create an empty data set for inclusion into the database.

Private Methods

Method Description
generateForm ( ) : array Generate the form.
getMetaModelById ( integer $modelId ) : MetaModels\IMetaModel Retrieve the MetaModel with the given id.
knowsAttribute ( MetaModels\Attribute\IAttribute $attribute ) : boolean Check if an attribute is already present.
loadLanguageFiles ( ) : void Load the language file.
perform ( integer $startSort, integer $pid ) : void Perform the action.

Method Details

__construct() public method

Create a new instance.
public __construct ( MetaModels\IMetaModelsServiceContainer $serviceContainer )
$serviceContainer MetaModels\IMetaModelsServiceContainer The MetaModel service container.

accepts() abstract protected method

Test if the passed attribute is acceptable.
abstract protected accepts ( MetaModels\Attribute\IAttribute $attribute ) : boolean
$attribute MetaModels\Attribute\IAttribute The attribute to check.
return boolean

createEmptyDataFor() abstract protected method

Create an empty data set for inclusion into the database.
abstract protected createEmptyDataFor ( MetaModels\Attribute\IAttribute $attribute ) : array
$attribute MetaModels\Attribute\IAttribute The attribute to generate the data for.
return array

getSubscribedEvents() public static method

{@inheritDoc}
public static getSubscribedEvents ( )

handleActionEvent() public method

Handle the action event.
public handleActionEvent ( ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Event\ActionEvent The event to handle.
return void

Property Details

$actionName protected static property

The action name to listen on.
protected static string $actionName
return string

$ptable protected static property

The parent table name to work on.
protected static string $ptable
return string

$table protected static property

The table name to work on.
protected static string $table
return string