PHP Class MetaModels\DcGeneral\Events\Table\AbstractAddAllHandler
This is in use in the render settings and input screen settings.
Show file
Open project: metamodels/core
Protected Properties
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 Details
__construct()
public method
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
handleActionEvent()
public method
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 |
|