Events and Events Manager Models allow you to implement events that will be thrown while performing an insert/update/delete which can be used to define business rules. The following are the events supported by Phalcon\Mvc\Model and their order of execution: Operation Name Can stop operation? Explanation Inserting/Updating beforeValidation YES Is executed before the fields are validated for not nulls/empty strings or foreign keys Inserting beforeValidationOnCreate YES Is executed before the fiel
public setExpiration (mixed $expire) Sets the cookie’s expiration time
public dropView (mixed $viewName, [mixed $schemaName], [mixed $ifExists]) Generates SQL to drop a view
public callable getActiveHandler () Return the handler that will be called for the matched route
public dropIndex (mixed $tableName, mixed $schemaName, mixed $indexName) Generates SQL to delete an index from a table
public getNamespaceAliases () Returns all the registered namespace aliases
final public count () Counts how many rows are in the resultset
abstract public getLastInitialized () ...
integer EMERGENCY
public isValidHttpMethod (mixed $method) Checks if a method is a valid HTTP method
Page 364 of 382