PHP 클래스 MetaModels\DcGeneral\Events\Table\MetaModels\Subscriber

상속: extends MetaModels\DcGeneral\Events\BaseSubscriber
파일 보기 프로젝트 열기: metamodels/core

공개 메소드들

메소드 설명
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