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 detached.

doc_Yii
2016-10-30 16:51:37
Comments
Leave a Comment

Please login to continue.