PHP Class Auth_OpenID_ServerError

显示文件 Open project: openid/php-openid Class Usage Examples

Public Methods

Method Description
__construct ( $message = null, $text = null, $reference = null, $contact = null )
encodeToKVForm ( ) Encodes the response to key-value form. This is a machine-readable format used to respond to messages which came directly from the consumer and not through the user-agent. See the OpenID specification.
encodeToURL ( ) Encodes this error's response as a URL suitable for redirection. If the response has no return_to, another Auth_OpenID_ServerError is returned.
getReturnTo ( )
hasReturnTo ( ) Returns the return_to URL for the request which caused this error.
toFormMarkup ( $form_tag_attrs = null )
toHTML ( $form_tag_attrs = null )
toMessage ( )
toString ( ) Returns this error message.
whichEncoding ( ) Returns one of Auth_OpenID_ENCODE_URL, Auth_OpenID_ENCODE_KVFORM, or null, depending on the type of encoding expected for this error's payload.

Method Details

__construct() public method

public __construct ( $message = null, $text = null, $reference = null, $contact = null )

encodeToKVForm() public method

Encodes the response to key-value form. This is a machine-readable format used to respond to messages which came directly from the consumer and not through the user-agent. See the OpenID specification.
public encodeToKVForm ( )

encodeToURL() public method

Encodes this error's response as a URL suitable for redirection. If the response has no return_to, another Auth_OpenID_ServerError is returned.
public encodeToURL ( )

getReturnTo() public method

public getReturnTo ( )

hasReturnTo() public method

Returns the return_to URL for the request which caused this error.
public hasReturnTo ( )

toFormMarkup() public method

public toFormMarkup ( $form_tag_attrs = null )

toHTML() public method

public toHTML ( $form_tag_attrs = null )

toMessage() public method

public toMessage ( )

toString() public method

Returns this error message.
public toString ( )

whichEncoding() public method

Returns one of Auth_OpenID_ENCODE_URL, Auth_OpenID_ENCODE_KVFORM, or null, depending on the type of encoding expected for this error's payload.
public whichEncoding ( )