lib/AktiveMerchant/Support/GatewaySupport.php
public function getSupportedActions($gateway)
    {
        if (!is_string($gateway)) {
            $gateway = get_class($gateway);
        }
        $gateway = Inflect::camelize($gateway);

        $class = new \ReflectionClass('AktiveMerchant\\Billing\\Gateways\\' . $gateway);
        $actions = array();

        foreach ($this->actions as $action) {
            if ($class->hasMethod($action)) {
                $actions[] = $action;
            }
        }

        return $actions;
    }
public function getSupportedActions($gateway)
    {
        if (!is_string($gateway)) {
            $gateway = get_class($gateway);
        }
        $gateway = Inflect::camelize($gateway);

        $class = new \ReflectionClass('AktiveMerchant\\Billing\\Gateways\\' . $gateway);
        $actions = array();

        foreach ($this->actions as $action) {
            if ($class->hasMethod($action)) {
                $actions[] = $action;
            }
        }

        return $actions;
    }
public function getSupportedActions ( $ gateway ) { if ( ! is_string ( $ gateway ) ) { $ gateway = get_class ( $ gateway ) ; } $ gateway = Inflect :: camelize ( $ gateway ) ; $ class = new \ ReflectionClass ( 'AktiveMerchant\\Billing\\Gateways\\' . $ gateway ) ; $ actions = array ( ) ; foreach ( $ this -> actions as $ action ) { if ( $ class -> hasMethod ( $ action ) ) { $ actions [ ] = $ action ; } } return $ actions ; }
Gets an array with supported actions for given gateway.

@param string|Gateway $gateway
@access public
@return array
Gets an array with supported actions for given gateway .