public function fireEvent($name, $params = null)
    {
        $handleList = Utility::get($this->events, $name, null);
        $result = true;
        if ($handleList) {
            foreach ($handleList as $methodName) {
                if (gettype($methodName) == "string") {
                    $return = $this->$methodName($params);
                } else {
                    $return = $methodName($params);
                }
                $result &= ($return !== null) ? $return : true;
            }
        }
        //Allow to write event handle in the report
        if (method_exists($this, $name)) {
            $return = $this->$name($params);
            $result &= ($return !== null) ? $return : true;
        }
        return $result;
    }
public function fireEvent($name, $params = null)
    {
        $handleList = Utility::get($this->events, $name, null);
        $result = true;
        if ($handleList) {
            foreach ($handleList as $methodName) {
                if (gettype($methodName) == "string") {
                    $return = $this->$methodName($params);
                } else {
                    $return = $methodName($params);
                }
                $result &= ($return !== null) ? $return : true;
            }
        }
        //Allow to write event handle in the report
        if (method_exists($this, $name)) {
            $return = $this->$name($params);
            $result &= ($return !== null) ? $return : true;
        }
        return $result;
    }
public function fireEvent ( $ name , $ params = null ) { $ handleList = Utility :: get ( $ this -> events , $ name , null ) ; $ result = true ; if ( $ handleList ) { foreach ( $ handleList as $ methodName ) { if ( gettype ( $ methodName ) == "string" ) { $ return = $ this -> $ methodName ( $ params ) ; } else { $ return = $ methodName ( $ params ) ; } $ result &= ( $ return !== null ) ? $ return : true ; } } //Allow to write event handle in the report if ( method_exists ( $ this , $ name ) ) { $ return = $ this -> $ name ( $ params ) ; $ result &= ( $ return !== null ) ? $ return : true ; } return $ result ; }
Fire an event with parameters in array form

@param string $name   Name of event
@param array  $params Parameters going with the event

@return bool Approve or disapprove action
Fire an event with parameters in array form