Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

oauth_error.php
Go to the documentation of this file.
1 <?php
12 class ezpRestOauthErrorStatus implements ezcMvcResultStatusObject
13 {
14 public $errorType;
15 public $message;
16
17 public function __construct( $errorType = null, $message = null )
18 {
19 $this->errorType = $errorType;
20 $this->message = $message;
21 }
22
23 public function process( ezcMvcResponseWriter $writer )
24 {
25 if ( $writer instanceof ezcMvcHttpResponseWriter )
26 {
27 $writer->headers["HTTP/1.1 " . ezpOauthErrorType::httpCodeForError( $this->errorType )] = "";
28 }
29
30 if ( $this->message !== null )
31 {
32 $writer->response->body = $this->message;
33 }
34 }
35 }
36 ?>
ezpRestOauthErrorStatus
Definition: oauth_error.php:13
ezpRestOauthErrorStatus\__construct
__construct( $errorType=null, $message=null)
Definition: oauth_error.php:17
ezpRestOauthErrorStatus\$errorType
$errorType
Definition: oauth_error.php:14
ezpRestOauthErrorStatus\process
process(ezcMvcResponseWriter $writer)
Definition: oauth_error.php:23
ezpRestOauthErrorStatus\$message
$message
Definition: oauth_error.php:15
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.