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\AbstractModelAwareEvent;
16: 
17: /**
18:  * Class DecodePropertyValueForWidgetEvent.
19:  *
20:  * This event is issued when a property value has to be converted from the native data (presented by the data provider)
21:  * into data understood by the widget.
22:  *
23:  * @package DcGeneral\Contao\View\Contao2BackendView\Event
24:  */
25: class DecodePropertyValueForWidgetEvent
26:     extends AbstractModelAwareEvent
27: {
28:     const NAME = 'dc-general.view.contao2backend.decode-property-value-for-widget';
29: 
30:     /**
31:      * The name of the property for which the data shall be decoded.
32:      *
33:      * @var string
34:      */
35:     protected $property;
36: 
37:     /**
38:      * The value of the data.
39:      *
40:      * @var mixed
41:      */
42:     protected $value;
43: 
44:     /**
45:      * Set the name of the property.
46:      *
47:      * @param string $property The name of the property.
48:      *
49:      * @return DecodePropertyValueForWidgetEvent
50:      */
51:     public function setProperty($property)
52:     {
53:         $this->property = $property;
54: 
55:         return $this;
56:     }
57: 
58:     /**
59:      * Retrieve the name of the property.
60:      *
61:      * @return string
62:      */
63:     public function getProperty()
64:     {
65:         return $this->property;
66:     }
67: 
68:     /**
69:      * Set the value in the event.
70:      *
71:      * @param mixed $value The new value.
72:      *
73:      * @return DecodePropertyValueForWidgetEvent
74:      */
75:     public function setValue($value)
76:     {
77:         $this->value = $value;
78: 
79:         return $this;
80:     }
81: 
82:     /**
83:      * Retrieve the value from the event.
84:      *
85:      * @return mixed
86:      */
87:     public function getValue()
88:     {
89:         return $this->value;
90:     }
91: }
92: 
93: 
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0