예제 #1
0
파일: ErrorResponse.php 프로젝트: elgg/elgg
 /**
  * Constructor
  * 
  * @param string $error       Error message
  * @param int    $status_code HTTP status code
  * @param string $forward_url Forward url
  * @access private
  * @see elgg_error_response
  */
 public function __construct($error = '', $status_code = ELGG_HTTP_OK, $forward_url = REFERRER)
 {
     parent::__construct($error, $status_code, $forward_url);
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param string $forward_url Forward url
  * @param int    $status_code HTTP status code
  * @access private
  * @see elgg_redirect_response
  */
 public function __construct($forward_url = REFERRER, $status_code = ELGG_HTTP_FOUND)
 {
     parent::__construct('', $status_code, $forward_url);
 }