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 |
| return | boolean |
Whether a handler is found and detached. |
Please login to continue.