PHP Class Esensi\Model\Observers\PurgingModelObserver

See also: Esensi\Model\Traits\PurgingModelTrait
Author: Daniel LaBarge ([email protected])
Show file Open project: esensi/model

Public Methods

Method Description
creating ( Esensi\Model\Contracts\PurgingModelInterface $model ) Register an event listener for the creating event.
updating ( Esensi\Model\Contracts\PurgingModelInterface $model ) Register an event listener for the updating event.

Protected Methods

Method Description
performPurging ( Esensi\Model\Contracts\PurgingModelInterface $model, string $event ) Check if purging is enabled and then purge the attributes that need purging.

Method Details

creating() public method

Listener purgees the purgeable attributes before save.
public creating ( Esensi\Model\Contracts\PurgingModelInterface $model )
$model Esensi\Model\Contracts\PurgingModelInterface

performPurging() protected method

Check if purging is enabled and then purge the attributes that need purging.
protected performPurging ( Esensi\Model\Contracts\PurgingModelInterface $model, string $event )
$model Esensi\Model\Contracts\PurgingModelInterface
$event string name

updating() public method

Listener purgees the purgeable attributes before save.
public updating ( Esensi\Model\Contracts\PurgingModelInterface $model )
$model Esensi\Model\Contracts\PurgingModelInterface