protected function callOnListeners($event, $args = [])
    {
        $result = false;
        foreach ($this->getOnListeners($event) as $listener) {
            Helper::call($listener, $args);
        }
        return $result;
    }
protected function callOnListeners($event, $args = [])
    {
        $result = false;
        foreach ($this->getOnListeners($event) as $listener) {
            Helper::call($listener, $args);
        }
        return $result;
    }
protected function callOnListeners ( $ event , $ args = [ ] ) { $ result = false ; foreach ( $ this -> getOnListeners ( $ event ) as $ listener ) { Helper :: call ( $ listener , $ args ) ; } return $ result ; }
Calls the assigned before listeners.

@param string $event
@param array  $args

@return bool
Calls the assigned before listeners .