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\ErrorHandler unregister()

unregister() public method Unregisters this error handler by restoring the PHP error and exception handlers. public void unregister ( )

base\Event $data

$data public property The data that is passed to yii\base\Component::on() when attaching an event handler. Note that this varies according to which event handler is currently executing. public mixed $data = null

base\ErrorHandler register()

register() public method Register this error handler public void register ( )

base\ErrorHandler renderException()

renderException() protected abstract method Renders the exception. protected abstract void renderException ( $exception )$exception Exception The exception to be rendered.

base\ErrorHandler logException()

logException() public method (available since version 2.0.3) Logs the given exception public void logException ( $exception )$exception Exception The exception to be logged

base\ErrorHandler handleHhvmError()

handleHhvmError() public method (available since version 2.0.6) Handles HHVM execution errors such as warnings and notices. This method is used as a HHVM error handler. It will store exception that will be used in fatal error handler public boolean handleHhvmError ( $code, $message, $file, $line, $context, $backtrace )$code integer The level of the error raised. $message string The error message. $file string The filename that the error was raised in. $line integer The line number

base\ErrorHandler handleFatalError()

handleFatalError() public method Handles fatal PHP errors public void handleFatalError ( )

base\ErrorHandler handleFallbackExceptionMessage()

handleFallbackExceptionMessage() protected method (available since version 2.0.11) Handles exception thrown during exception processing in handleException(). protected void handleFallbackExceptionMessage ( $exception, $previousException )$exception Exception|\Throwable Exception that was thrown during main exception processing. $previousException Exception Main exception processed in handleException().

base\ErrorHandler convertExceptionToString()

convertExceptionToString() public static method Converts an exception into a simple string. public static string convertExceptionToString ( $exception )$exception Exception The exception being converted return string The string representation of the exception.