off() public method
Detaches an existing event handler from this component.
This method is the opposite of on().
See also on().
public boolean off ( $name, $handler = null ) | ||
---|---|---|
$name | string |
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 |
If a handler is found and detached |
Please login to continue.