PHP Class MetaModels\DcGeneral\Events\Table\MetaModels\Subscriber

Inheritance: extends MetaModels\DcGeneral\Events\BaseSubscriber
ファイルを表示 Open project: metamodels/core

Public Methods

Method Description
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.

Protected Methods

Method Description
registerEventsInDispatcher ( ) : void Register all listeners to handle creation of a data container.

Method Details

ensureTableNamePrefix() public method

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.
return void

fixLangArray() public method

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.
return void

fixLanguageLangArray() public method

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.
return void

getGlobalButton() public method

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.
return void

getOperationButton() public method

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.
return void

handleDelete() public method

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.
return void

handleUpdate() public method

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.
return void

modelToLabel() public method

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.
return void

registerEventsInDispatcher() protected method

Register all listeners to handle creation of a data container.
protected registerEventsInDispatcher ( ) : void
return void

unfixLangArray() public method

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.
return void

unfixLanguageLangArray() public method

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.
return void