base\ExitException __construct()

__construct() public method Constructor. public void __construct ( $status = 0, $message = null, $code = 0, Exception $previous = null )$status integer The exit status code $message string Error message $code integer Error code $previous Exception The previous exception used for the exception chaining.

base\ExitException $statusCode

$statusCode public property The exit status code public integer $statusCode = null

base\Exception getName()

getName() public method public string getName ( )return string The user-friendly name of this exception

base\Event trigger()

trigger() public static method Triggers a class-level event. This method will cause invocation of event handlers that are attached to the named event for the specified class and all its parent classes. public static void trigger ( $class, $name, $event = null )$class string|object The object or the fully qualified class name specifying the class-level event. $name string The event name. $event yii\base\Event The event parameter. If not set, a default yii\base\Event object will be c

base\Event on()

on() public static method Attaches an event handler to a class-level event. When a class-level event is triggered, event handlers attached to that class and all parent classes will be invoked. For example, the following code attaches an event handler to ActiveRecord's afterInsert event: Event::on(ActiveRecord::className(), ActiveRecord::EVENT_AFTER_INSERT, function ($event) { Yii::trace(get_class($event->sender) . ' is inserted.'); }); The handler will be invoked for EVERY successfu

base\Event offAll()

offAll() public static method (available since version 2.0.10) Detaches all registered class-level event handlers. See also: on() off() public static void offAll ( )

base\Event off()

off() public static method Detaches an event handler from a class-level event. This method is the opposite of on(). See also on(). public static boolean off ( $class, $name, $handler = null )$class string The fully qualified class name from which the event handler needs to be detached. $name string The event name. $handler callable The event handler to be removed. If it is null, all handlers attached to the named event will be removed. return boolean Whether a handler is found and

base\Event hasHandlers()

hasHandlers() public static method Returns a value indicating whether there is any handler attached to the specified class-level event. Note that this method will also check all parent classes to see if there is any handler attached to the named event. public static boolean hasHandlers ( $class, $name )$class string|object The object or the fully qualified class name specifying the class-level event. $name string The event name. return boolean Whether there is any handler attached

base\Event $sender

$sender public property The sender of this event. If not set, this property will be set as the object whose trigger() method is called. This property may also be a null when this event is a class-level event which is triggered in a static context. public object $sender = null

base\Event $name

$name public property The event name. This property is set by yii\base\Component::trigger() and trigger(). Event handlers may use this property to check what event it is handling. public string $name = null