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

Наследование: extends MetaModels\DcGeneral\Events\BaseSubscriber
Показать файл Открыть проект

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

Метод Описание
ensureTableNamePrefix ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void Called by tl_metamodel.tableName onsave_callback.
fixLangArray ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void Decode a language array.
fixLanguageLangArray ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void Decode a language array.
getGlobalButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetGlobalButtonEvent $event ) : void Clear the button if the User is not admin.
getOperationButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent $event ) : void Clear the button if the User is not admin.
handleDelete ( ContaoCommunityAlliance\DcGeneral\Event\PreDeleteModelEvent $event ) : void Handle the deletion of a MetaModel and all attached data.
handleUpdate ( ContaoCommunityAlliance\DcGeneral\Event\PostPersistModelEvent $event ) : void Handle the update of a MetaModel and all attached data.
modelToLabel ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void Render a model in the backend list.
unfixLangArray ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void Encode a language array.
unfixLanguageLangArray ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void Decode a language array.

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

Метод Описание
registerEventsInDispatcher ( ) : void Register all listeners to handle creation of a data container.

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

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

Prefixes the table name with mm_ if not provided by the user as such. Checks if the table name is legal to the DB.
public ensureTableNamePrefix ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent The event.
Результат void

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

Decode a language array.
public fixLangArray ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent The event.
Результат void

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

Decode a language array.
public fixLanguageLangArray ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent The event.
Результат void

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

Clear the button if the User is not admin.
public getGlobalButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetGlobalButtonEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetGlobalButtonEvent The event.
Результат void

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

Clear the button if the User is not admin.
public getOperationButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent The event.
Результат void

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

Handle the deletion of a MetaModel and all attached data.
public handleDelete ( ContaoCommunityAlliance\DcGeneral\Event\PreDeleteModelEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Event\PreDeleteModelEvent The event.
Результат void

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

Handle the update of a MetaModel and all attached data.
public handleUpdate ( ContaoCommunityAlliance\DcGeneral\Event\PostPersistModelEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Event\PostPersistModelEvent The event.
Результат void

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

Render a model in the backend list.
public modelToLabel ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent The event.
Результат void

registerEventsInDispatcher() защищенный Метод

Register all listeners to handle creation of a data container.
protected registerEventsInDispatcher ( ) : void
Результат void

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

Encode a language array.
public unfixLangArray ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent The event.
Результат void

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

Decode a language array.
public unfixLanguageLangArray ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent The event.
Результат void