
Public 멤버 함수 | |
| Auth_OpenID_ServerError ($query=null, $message=null) | |
| hasReturnTo () | |
| encodeToURL () | |
| encodeToKVForm () | |
| whichEncoding () | |
| toString () | |
Server.php 파일의 148 번째 라인에서 정의되었습니다.
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().
| 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 }

1.6.1