API Documentation for: 1.1.1
Show:

ObjectFormEvent Class

Extends Event
Namespace: Canteen\Errors

Events for the form object

Constructor

ObjectFormEvent

(
  • type
  • [object=null]
)

Parameters:

  • type String

    The type of event

  • [object=null] Object optional

    The optional object reference

Item Index

Properties

Properties

ADDED

String final static

After an object has been successfully added.

BEFORE_ADD

String final static

Before the object is added, might do additional checks, validation.

BEFORE_REMOVE

String final static

Fired before an object is removed can be used to do any additional checks on an object, like permissions.

BEFORE_UPDATE

String final static

Before the object is updated, might do additional checks.

FAILED

String final static

Event whenever the form fails

object

Object

The reference to the object

REMOVED

String final static

Fired after an object is successfully removed can be used to do any additional removals on additional tables.

UPDATED

String final static

After an object has been successfully updated.

VALIDATE

String final static

Before update to add, this is done before add or write to do common validation between those two.