public function doAction( $action, $params = array() )
    {
        if ( isset( $this->actions[ $action ] ) )
        {
            foreach( $this->actions[ $action ] as $callback )
            {
                call_user_func_array( $callback[ 'callback' ], $params );

                if ( $this->debug )
                {
                    echo PHP_EOL . '->ACTION: ' . $action . ' -> '
                            . $this->_serializeCallback( $callback[ 'callback' ] )
                            . ' + Priority: ' . $callback[ 'priority' ]
                            . PHP_EOL;
                }
            }
        }
    }
public function doAction( $action, $params = array() )
    {
        if ( isset( $this->actions[ $action ] ) )
        {
            foreach( $this->actions[ $action ] as $callback )
            {
                call_user_func_array( $callback[ 'callback' ], $params );

                if ( $this->debug )
                {
                    echo PHP_EOL . '->ACTION: ' . $action . ' -> '
                            . $this->_serializeCallback( $callback[ 'callback' ] )
                            . ' + Priority: ' . $callback[ 'priority' ]
                            . PHP_EOL;
                }
            }
        }
    }
public function doAction ( $ action , $ params = array ( ) ) { if ( isset ( $ this -> actions [ $ action ] ) ) { foreach ( $ this -> actions [ $ action ] as $ callback ) { call_user_func_array ( $ callback [ 'callback' ] , $ params ) ; if ( $ this -> debug ) { echo PHP_EOL . '->ACTION: ' . $ action . ' -> ' . $ this -> _serializeCallback ( $ callback [ 'callback' ] ) . ' + Priority: ' . $ callback [ 'priority' ] . PHP_EOL ; } } } }
Executes callbacks for an action.

@param string $action action name
@param array  $params callback parameters
Executes callbacks for an action .