public function getFlowURI($flow_name, array $params = array()) {
        if (empty($flow_name)) {
            throw new VGS_Client_Exception("Unspecified flow name");
        }

        $default_params = array(
            'client_id' => $this->getClientID(),
            'response_type' => 'code',
            'redirect_uri' => $this->getCurrentURI(),
        );

        if ($this->xiti) {
            $default_params['xiti_json'] = $this->getXitiConfiguration();
        }
        $default_params['v'] = self::VERSION;

        $parameters = array_merge($default_params, $params);
        return $this->getUrl('flow', $flow_name, $parameters);
    }
public function getFlowURI($flow_name, array $params = array()) {
        if (empty($flow_name)) {
            throw new VGS_Client_Exception("Unspecified flow name");
        }

        $default_params = array(
            'client_id' => $this->getClientID(),
            'response_type' => 'code',
            'redirect_uri' => $this->getCurrentURI(),
        );

        if ($this->xiti) {
            $default_params['xiti_json'] = $this->getXitiConfiguration();
        }
        $default_params['v'] = self::VERSION;

        $parameters = array_merge($default_params, $params);
        return $this->getUrl('flow', $flow_name, $parameters);
    }
public function getFlowURI ( $ flow_name , array $ params = array ( ) ) { if ( empty ( $ flow_name ) ) { throw new VGS_Client_Exception ( "Unspecified flow name" ) ; } $ default_params = array ( 'client_id' => $ this -> getClientID ( ) , 'response_type' => 'code' , 'redirect_uri' => $ this -> getCurrentURI ( ) , ) ; if ( $ this -> xiti ) { $ default_params [ 'xiti_json' ] = $ this -> getXitiConfiguration ( ) ; } $ default_params [ 'v' ] = self :: VERSION ; $ parameters = array_merge ( $ default_params , $ params ) ; return $ this -> getUrl ( 'flow' , $ flow_name , $ parameters ) ; }
Get an URI to any flow url in SPiD

@param  string $flow_name name of flow, ie `auth`, `login`, `checkout` etc
@param  array  $params get parameters to include in the url, like `cancel_redirect_uri`, `tag` or `redirect_uri`
@return string url
@throws VGS_Client_Exception
Get an URI to any flow url in SPiD