Auth_OpenID_CheckIDRequest::getCancelURL PHP Method

getCancelURL() public method

public getCancelURL ( )
    function getCancelURL()
    {
        if (!$this->return_to) {
            return new Auth_OpenID_NoReturnToError();
        }
        if ($this->immediate) {
            return new Auth_OpenID_ServerError(null, "Cancel is not an appropriate \\\n                                               response to immediate mode \\\n                                               requests.");
        }
        $response = new Auth_OpenID_Message($this->message->getOpenIDNamespace());
        $response->setArg(Auth_OpenID_OPENID_NS, 'mode', 'cancel');
        return $response->toURL($this->return_to);
    }