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

  • AbstractCommandEvent
  • AbstractContainerAwareEvent
  • AbstractEnvironmentAwareEvent
  • AbstractModelAwareEvent
  • AbstractModelCommandEvent
  • AbstractViewAwareEvent
  • EventPropagator
  • PostCreateModelEvent
  • PostDeleteModelEvent
  • PostDuplicateModelEvent
  • PostPasteModelEvent
  • PostPersistModelEvent
  • PreCreateModelEvent
  • PreDeleteModelEvent
  • PreDuplicateModelEvent
  • PrePasteModelEvent
  • PrePersistModelEvent

Interfaces

  • CommandEventInterface
  • EventPropagatorInterface
  • ModelCommandEventInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class PostPersistModelEvent

This event is emitted after a model has been saved to the data provider.

Symfony\Component\EventDispatcher\Event
Extended by DcGeneral\Event\AbstractEnvironmentAwareEvent implements DcGeneral\EnvironmentAwareInterface
Extended by DcGeneral\Event\AbstractModelAwareEvent implements DcGeneral\ModelAwareInterface
Extended by DcGeneral\Event\PostPersistModelEvent
Namespace: DcGeneral\Event
Package: DcGeneral\Event
Located at Event/PostPersistModelEvent.php
Methods summary
public
# __construct( DcGeneral\EnvironmentInterface $environment, DcGeneral\Data\ModelInterface $model, DcGeneral\Data\ModelInterface $originalModel = null )

Create a new model aware event.

Create a new model aware event.

Parameters

$environment
DcGeneral\EnvironmentInterface
$environment The environment.
$model
DcGeneral\Data\ModelInterface
$model The model attached to the event.
$originalModel
DcGeneral\Data\ModelInterface|null
$originalModel The original state of the model (persistent in the data provider).

Overrides

DcGeneral\Event\AbstractModelAwareEvent::__construct()
public DcGeneral\Data\ModelInterface|null
# getOriginalModel( )

Return the original state of the model. May be null on create.

Return the original state of the model. May be null on create.

Returns

DcGeneral\Data\ModelInterface|null
Methods inherited from DcGeneral\Event\AbstractModelAwareEvent
getModel()
Methods inherited from DcGeneral\Event\AbstractEnvironmentAwareEvent
getEnvironment()
Constants summary
string NAME 'dc-general.model.post-persist'
#
Properties summary
protected DcGeneral\Data\ModelInterface|null $originalModel
#

The original model attached to the event.

The original model attached to the event.

Properties inherited from DcGeneral\Event\AbstractModelAwareEvent
$model
Properties inherited from DcGeneral\Event\AbstractEnvironmentAwareEvent
$environment
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0