public function trigger($event, array $args = [], $acceptReturn = false) {
        if (isset($this->events[$event])) {
            array_unshift($args, $this);
            foreach ($this->events[$event] as $fn) {
                $data = call_user_func_array($fn, $args);
                if ($acceptReturn) {
                    if ($data !== null) {
                        return $data;
                    }
                } elseif ($data === false) {
                    return false;
                }
            }
        }
    }
public function trigger($event, array $args = [], $acceptReturn = false) {
        if (isset($this->events[$event])) {
            array_unshift($args, $this);
            foreach ($this->events[$event] as $fn) {
                $data = call_user_func_array($fn, $args);
                if ($acceptReturn) {
                    if ($data !== null) {
                        return $data;
                    }
                } elseif ($data === false) {
                    return false;
                }
            }
        }
    }
public function trigger ( $ event , array $ args = [ ] , $ acceptReturn = false ) { if ( isset ( $ this -> events [ $ event ] ) ) { array_unshift ( $ args , $ this ) ; foreach ( $ this -> events [ $ event ] as $ fn ) { $ data = call_user_func_array ( $ fn , $ args ) ; if ( $ acceptReturn ) { if ( $ data !== null ) { return $ data ; } } elseif ( $ data === false ) { return false ; } } } }
Browse registered actions for this event

@param int $event event code
@param array $args arra of arguments to pass to the event function
@param bool $acceptReturn TRUE so a non-null function return can be used
by TcTable
@return mixed desired content or null
Browse registered actions for this event