public function removeAction( $action, $callback )
    {
        $i = 0;

        foreach( $this->actions as $key => $value )
        {
            if ( $action === $key )
            {
                foreach( $value as $a => $call )
                {
                    if ( get_class( $callback[ 0 ] ) === get_class( $call[ 'callback' ][ 0 ] ) )
                    {
                        if ( $callback[ 1 ] === $call[ 'callback' ][ 1 ] )
                        {
                            unset( $this->actions[ $key ][ $i ] );

                            if ( $this->debug )
                            {
                                echo PHP_EOL . '-ACTION: ' . $action . ' -> '
                                        . $this->_serializeCallback( $callback )
                                        . ' + Priority: ' . $call[ 'priority' ]
                                        . PHP_EOL;
                            }

                            return TRUE;
                        }
                    }
                }
            }

            $i++;
        }

        return FALSE;
    }
public function removeAction( $action, $callback )
    {
        $i = 0;

        foreach( $this->actions as $key => $value )
        {
            if ( $action === $key )
            {
                foreach( $value as $a => $call )
                {
                    if ( get_class( $callback[ 0 ] ) === get_class( $call[ 'callback' ][ 0 ] ) )
                    {
                        if ( $callback[ 1 ] === $call[ 'callback' ][ 1 ] )
                        {
                            unset( $this->actions[ $key ][ $i ] );

                            if ( $this->debug )
                            {
                                echo PHP_EOL . '-ACTION: ' . $action . ' -> '
                                        . $this->_serializeCallback( $callback )
                                        . ' + Priority: ' . $call[ 'priority' ]
                                        . PHP_EOL;
                            }

                            return TRUE;
                        }
                    }
                }
            }

            $i++;
        }

        return FALSE;
    }
public function removeAction ( $ action , $ callback ) { $ i = 0 ; foreach ( $ this -> actions as $ key => $ value ) { if ( $ action === $ key ) { foreach ( $ value as $ a => $ call ) { if ( get_class ( $ callback [ 0 ] ) === get_class ( $ call [ 'callback' ] [ 0 ] ) ) { if ( $ callback [ 1 ] === $ call [ 'callback' ] [ 1 ] ) { unset ( $ this -> actions [ $ key ] [ $ i ] ) ; if ( $ this -> debug ) { echo PHP_EOL . '-ACTION: ' . $ action . ' -> ' . $ this -> _serializeCallback ( $ callback ) . ' + Priority: ' . $ call [ 'priority' ] . PHP_EOL ; } return TRUE ; } } } } $ i ++ ; } return FALSE ; }
Removes a callback for an action.

@param string $action   the action name
@param mixed  $callback the callback [ function name, array ]

@return bool TRUE on success, FALSE on failure
Removes a callback for an action .