PHP 클래스 MetaModels\DcGeneral\Events\MetaModel\CreateVariantButton

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

공개 메소드들

메소드 설명
createButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent $event ) : void Check if we have to add the "Create variant" button.
handleCreateVariantAction ( ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event ) : void Handle the "create variant" event.
presetVariantBase ( ContaoCommunityAlliance\DcGeneral\Event\PreEditModelEvent $event ) : void Check the items before the edit start. If there is a item with variant support and a empty vargroup it must be a base. So set the varbase to 1.

보호된 메소드들

메소드 설명
breadcrumb ( ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment ) : string Get the breadcrumb navigation via event.
registerEventsInDispatcher ( ) : void Register all listeners.

메소드 상세

breadcrumb() 보호된 메소드

Get the breadcrumb navigation via event.
protected breadcrumb ( ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment ) : string
$environment ContaoCommunityAlliance\DcGeneral\EnvironmentInterface The environment.
리턴 string

createButton() 공개 메소드

Check if we have to add the "Create variant" button.
public createButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent The event.
리턴 void

handleCreateVariantAction() 공개 메소드

Handle the "create variant" event.
public handleCreateVariantAction ( ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Event\ActionEvent The action Event being executed.
리턴 void

presetVariantBase() 공개 메소드

Check the items before the edit start. If there is a item with variant support and a empty vargroup it must be a base. So set the varbase to 1.
public presetVariantBase ( ContaoCommunityAlliance\DcGeneral\Event\PreEditModelEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Event\PreEditModelEvent The event with the model.
리턴 void

registerEventsInDispatcher() 보호된 메소드

Register all listeners.
protected registerEventsInDispatcher ( ) : void
리턴 void