PHP Класс MetaModels\DcGeneral\Events\Table\AbstractAddAllHandler

This is in use in the render settings and input screen settings.
Наследование: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__construct ( MetaModels\IMetaModelsServiceContainer $serviceContainer ) Create a new instance.
getSubscribedEvents ( ) {@inheritDoc}
handleActionEvent ( ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event ) : void Handle the action event.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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

accepts() абстрактный защищенный Метод

Test if the passed attribute is acceptable.
abstract protected accepts ( MetaModels\Attribute\IAttribute $attribute ) : boolean
$attribute MetaModels\Attribute\IAttribute The attribute to check.
Результат boolean

createEmptyDataFor() абстрактный защищенный Метод

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.
Результат array

getSubscribedEvents() публичный статический Метод

{@inheritDoc}
public static getSubscribedEvents ( )

handleActionEvent() публичный Метод

Handle the action event.
public handleActionEvent ( ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Event\ActionEvent The event to handle.
Результат void

Описание свойств

$actionName защищенное статическое свойство

The action name to listen on.
protected static string $actionName
Результат string

$ptable защищенное статическое свойство

The parent table name to work on.
protected static string $ptable
Результат string

$table защищенное статическое свойство

The table name to work on.
protected static string $table
Результат string