Fuel\Event\EventTrait::off PHP Method

off() public method

Removes one or more events.
public off ( string $event = null, mixed $handler = null, mixed $context = null ) : object
$event string event name
$handler mixed event handler
$context mixed closure context
return object $this
    public function off($event = null, $handler = null, $context = null)
    {
        // When a container is set
        if ($this->_eventContainer) {
            // When the object is self binding
            if ($context === null and $this->_eventBindSelf) {
                // Set the context to $this
                $context = $this;
            }
            // Add the event to the container
            $this->_eventContainer->on($event, $handler, $context);
        }
        // Remain chainable
        return $this;
    }