public function implementedEvents()
    {
        $eventMap = [
            'Model.beforeMarshal' => 'beforeMarshal',
            'Model.buildValidator' => 'buildValidator',
            'Model.beforeFind' => 'beforeFind',
            'Model.beforeSave' => 'beforeSave',
            'Model.afterSave' => 'afterSave',
            'Model.afterSaveCommit' => 'afterSaveCommit',
            'Model.beforeDelete' => 'beforeDelete',
            'Model.afterDelete' => 'afterDelete',
            'Model.afterDeleteCommit' => 'afterDeleteCommit',
            'Model.beforeRules' => 'beforeRules',
            'Model.afterRules' => 'afterRules',
        ];
        $events = [];

        foreach ($eventMap as $event => $method) {
            if (!method_exists($this, $method)) {
                continue;
            }
            $events[$event] = $method;
        }

        return $events;
    }
public function implementedEvents()
    {
        $eventMap = [
            'Model.beforeMarshal' => 'beforeMarshal',
            'Model.buildValidator' => 'buildValidator',
            'Model.beforeFind' => 'beforeFind',
            'Model.beforeSave' => 'beforeSave',
            'Model.afterSave' => 'afterSave',
            'Model.afterSaveCommit' => 'afterSaveCommit',
            'Model.beforeDelete' => 'beforeDelete',
            'Model.afterDelete' => 'afterDelete',
            'Model.afterDeleteCommit' => 'afterDeleteCommit',
            'Model.beforeRules' => 'beforeRules',
            'Model.afterRules' => 'afterRules',
        ];
        $events = [];

        foreach ($eventMap as $event => $method) {
            if (!method_exists($this, $method)) {
                continue;
            }
            $events[$event] = $method;
        }

        return $events;
    }
public function implementedEvents ( ) { $ eventMap = [ 'Model.beforeMarshal' => 'beforeMarshal' , 'Model.buildValidator' => 'buildValidator' , 'Model.beforeFind' => 'beforeFind' , 'Model.beforeSave' => 'beforeSave' , 'Model.afterSave' => 'afterSave' , 'Model.afterSaveCommit' => 'afterSaveCommit' , 'Model.beforeDelete' => 'beforeDelete' , 'Model.afterDelete' => 'afterDelete' , 'Model.afterDeleteCommit' => 'afterDeleteCommit' , 'Model.beforeRules' => 'beforeRules' , 'Model.afterRules' => 'afterRules' , ] ; $ events = [ ] ; foreach ( $ eventMap as $ event => $ method ) { if ( ! method_exists ( $ this , $ method ) ) { continue ; } $ events [ $ event ] = $ method ; } return $ events ; }
Get the Model callbacks this table is interested in.

By implementing the conventional methods a table class is assumed
to be interested in the related event.

Override this method if you need to add non-conventional event listeners.
Or if you want you table to listen to non-standard events.

The conventional method map is:

- Model.beforeMarshal => beforeMarshal
- Model.buildValidator => buildValidator
- Model.beforeFind => beforeFind
- Model.beforeSave => beforeSave
- Model.afterSave => afterSave
- Model.afterSaveCommit => afterSaveCommit
- Model.beforeDelete => beforeDelete
- Model.afterDelete => afterDelete
- Model.afterDeleteCommit => afterDeleteCommit
- Model.beforeRules => beforeRules
- Model.afterRules => afterRules

@return array
Get the Model callbacks this table is interested in .