Overview

Namespaces

  • DcGeneral
    • Clipboard
    • Contao
      • Callback
      • Compatibility
      • DataDefinition
        • Definition
      • Dca
        • Builder
          • Legacy
        • Definition
        • Palette
        • Populator
      • Event
      • View
        • Contao2BackendView
          • Event
    • Controller
    • Data
    • DataDefinition
      • Builder
      • Definition
        • Properties
        • View
          • Panel
      • ModelRelationship
      • Palette
        • Builder
          • Event
        • Condition
          • Palette
          • Property
    • EnvironmentPopulator
    • Event
    • Exception
    • Factory
      • Event
    • Panel
    • View
      • Event

Classes

  • BaseButtonEvent
  • BaseGetButtonsEvent
  • BuildWidgetEvent
  • DecodePropertyValueForWidgetEvent
  • EditModelBeforeSaveEvent
  • EncodePropertyValueFromWidgetEvent
  • GetBreadcrumbEvent
  • GetEditModeButtonsEvent
  • GetGlobalButtonEvent
  • GetGlobalButtonsEvent
  • GetGroupHeaderEvent
  • GetOperationButtonEvent
  • GetParentHeaderEvent
  • GetPasteButtonEvent
  • GetPasteRootButtonEvent
  • GetPropertyOptionsEvent
  • GetSelectModeButtonsEvent
  • ManipulateWidgetEvent
  • ModelToLabelEvent
  • ParentViewChildRecordEvent
  • ResolveWidgetErrorMessageEvent
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * PHP version 5
 4:  * @package    generalDriver
 5:  * @author     Christian Schiffler <c.schiffler@cyberspectrum.de>
 6:  * @author     Stefan Heimes <stefan_heimes@hotmail.com>
 7:  * @author     Tristan Lins <tristan.lins@bit3.de>
 8:  * @copyright  The MetaModels team.
 9:  * @license    LGPL.
10:  * @filesource
11:  */
12: 
13: namespace DcGeneral\Contao\View\Contao2BackendView\Event;
14: 
15: use DcGeneral\Event\AbstractEnvironmentAwareEvent;
16: 
17: /**
18:  * Class BaseGetButtonsEvent.
19:  *
20:  * Base event for retrieving buttons. This event is not being emitted anywhere as it is only a base class for other
21:  * events.
22:  *
23:  * @package DcGeneral\Contao\View\Contao2BackendView\Event
24:  */
25: class BaseGetButtonsEvent
26:     extends AbstractEnvironmentAwareEvent
27: {
28:     /**
29:      * The name of the event.
30:      */
31:     const NAME = 'dc-general.view.contao2backend.get-buttons';
32: 
33:     /**
34:      * The list of buttons.
35:      *
36:      * @var string[]
37:      */
38:     protected $buttons;
39: 
40:     /**
41:      * Set the list of buttons.
42:      *
43:      * @param string[] $buttons The buttons to be returned.
44:      *
45:      * @return $this
46:      */
47:     public function setButtons($buttons)
48:     {
49:         $this->buttons = $buttons;
50: 
51:         return $this;
52:     }
53: 
54:     /**
55:      * Get the list of buttons.
56:      *
57:      * @return string[]
58:      */
59:     public function getButtons()
60:     {
61:         return $this->buttons;
62:     }
63: }
64: 
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0