Auth_OpenID_ServerError 클래스 참조

Auth_OpenID_ServerError에 대한 상속 다이어그램 :
Inheritance graph

모든 멤버 목록

Public 멤버 함수

 Auth_OpenID_ServerError ($query=null, $message=null)
 hasReturnTo ()
 encodeToURL ()
 encodeToKVForm ()
 whichEncoding ()
 toString ()

상세한 설명

Server.php 파일의 148 번째 라인에서 정의되었습니다.


멤버 함수 문서화

Auth_OpenID_ServerError::Auth_OpenID_ServerError ( query = null,
message = null 
)

private

Server.php 파일의 152 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : Auth_OpenID_MalformedReturnURL::Auth_OpenID_MalformedReturnURL(), Auth_OpenID_UntrustedReturnURL::Auth_OpenID_UntrustedReturnURL(), encodeToURL().

00153     {
00154         $this->message = $message;
00155         $this->query = $query;
00156     }

Auth_OpenID_ServerError::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.

Server.php 파일의 199 번째 라인에서 정의되었습니다.

다음을 참조함 : Auth_OpenID_KVForm::fromArray(), toString().

00200     {
00201         return Auth_OpenID_KVForm::fromArray(
00202                                       array('mode' => 'error',
00203                                             'error' => $this->toString()));
00204     }

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

Auth_OpenID_ServerError::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.

Server.php 파일의 178 번째 라인에서 정의되었습니다.

다음을 참조함 : $_Auth_OpenID_OpenID_Prefix, Auth_OpenID::appendArgs(), Auth_OpenID::arrayGet(), Auth_OpenID_ServerError(), null, toString().

00179     {
00180         global $_Auth_OpenID_OpenID_Prefix;
00181         $return_to = Auth_OpenID::arrayGet($this->query,
00182                                            $_Auth_OpenID_OpenID_Prefix .
00183                                            'return_to');
00184         if (!$return_to) {
00185             return new Auth_OpenID_ServerError(null, "no return_to URL");
00186         }
00187 
00188         return Auth_OpenID::appendArgs($return_to,
00189                             array('openid.mode' => 'error',
00190                                   'openid.error' => $this->toString()));
00191     }

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

Auth_OpenID_ServerError::hasReturnTo (  ) 

Returns the return_to URL for the request which caused this error.

Server.php 파일의 162 번째 라인에서 정의되었습니다.

다음을 참조함 : $_Auth_OpenID_OpenID_Prefix.

다음에 의해서 참조됨 : whichEncoding().

00163     {
00164         global $_Auth_OpenID_OpenID_Prefix;
00165         if ($this->query) {
00166             return array_key_exists($_Auth_OpenID_OpenID_Prefix .
00167                                     'return_to', $this->query);
00168         } else {
00169             return false;
00170         }
00171     }

Auth_OpenID_ServerError::toString (  ) 

Returns this error message.

Auth_OpenID_MalformedTrustRoot, Auth_OpenID_UntrustedReturnURL에서 재구현되었습니다.

Server.php 파일의 234 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : encodeToKVForm(), encodeToURL().

00235     {
00236         if ($this->message) {
00237             return $this->message;
00238         } else {
00239             return get_class($this) . " error";
00240         }
00241     }

Auth_OpenID_ServerError::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.

Server.php 파일의 211 번째 라인에서 정의되었습니다.

다음을 참조함 : $_Auth_OpenID_Encode_Kvform, $_Auth_OpenID_Encode_Url, $_Auth_OpenID_Request_Modes, Auth_OpenID::arrayGet(), hasReturnTo(), null.

00212     {
00213         global $_Auth_OpenID_Encode_Url,
00214             $_Auth_OpenID_Encode_Kvform,
00215             $_Auth_OpenID_Request_Modes;
00216 
00217         if ($this->hasReturnTo()) {
00218             return $_Auth_OpenID_Encode_Url;
00219         }
00220 
00221         $mode = Auth_OpenID::arrayGet($this->query, 'openid.mode');
00222 
00223         if ($mode) {
00224             if (!in_array($mode, $_Auth_OpenID_Request_Modes)) {
00225                 return $_Auth_OpenID_Encode_Kvform;
00226             }
00227         }
00228         return null;
00229     }

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.:

생성시간 : Wed Oct 28 22:59:46 2009, 프로젝트명 : XpressEngine, 생성자 :   doxygen 1.6.1