Events Manager

The purpose of this component is to intercept the execution of most of the other components of the framework by creating “hook points”. These hook points allow the developer to obtain status information, manipulate data or change the flow of execution during the process of a component. Naming Convention Phalcon events use namespaces to avoid naming collisions. Each component in Phalcon occupies a different event namespace and you are free to create your own as you see fit. Event names are forma

Cli\Router\RouteInterface::getCompiledPattern

abstract public getCompiledPattern () ...

Mvc\View\Engine\Volt\Compiler::functionCall

public functionCall (array $expr) Resolves function intermediate code into PHP function calls

Session\Bag::getDI

public getDI () Returns the DependencyInjector container

Mvc\Micro::map

public Phalcon\Mvc\Router\RouteInterface map (string $routePattern, callable $handler) Maps a route to a handler without any HTTP method constraint

Validation::setDefaultMessages

public setDefaultMessages ([array $messages]) Adds default messages to validators

Cache\Frontend\Base64::isBuffering

public isBuffering () Check whether if frontend is buffering output

Mvc\Model\RelationInterface::isReusable

abstract public isReusable () ...

Annotations\Annotation::getExprArguments

public array getExprArguments () Returns the expression arguments without resolving

Mvc\Model::update

public update ([mixed $data], [mixed $whiteList]) Updates a model instance. If the instance doesn’t exist in the persistence it will throw an exception Returning true on success or false otherwise. //Updating a robot name $robot = Robots::findFirst("id=100"); $robot->name = "Biomass"; $robot->update();