Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezpkernelredirect.php
Go to the documentation of this file.
1 <?php
14 class ezpKernelRedirect extends ezpKernelResult
15 {
21 private $targetUrl;
22
28 private $statusCode;
29
30 public function __construct( $url, $redirectStatus = null, $content = null )
31 {
32 $this->targetUrl = $url ?: '/';
33 $this->statusCode = $redirectStatus ? (int)substr( $redirectStatus, 0, 3 ) : 302;
34 parent::__construct( $content, array( 'status' => $redirectStatus ) );
35 }
36
40 public function getStatusCode()
41 {
42 return $this->statusCode;
43 }
44
48 public function getTargetUrl()
49 {
50 return $this->targetUrl;
51 }
52 }
ezpKernelRedirect
Definition: ezpkernelredirect.php:15
ezpKernelRedirect\getTargetUrl
getTargetUrl()
Definition: ezpkernelredirect.php:48
ezpKernelRedirect\$statusCode
$statusCode
Definition: ezpkernelredirect.php:28
ezpKernelRedirect\__construct
__construct( $url, $redirectStatus=null, $content=null)
Definition: ezpkernelredirect.php:30
ezpKernelRedirect\$targetUrl
$targetUrl
Definition: ezpkernelredirect.php:21
ezpKernelRedirect\getStatusCode
getStatusCode()
Definition: ezpkernelredirect.php:40
ezpKernelResult
Definition: ezpkernelresult.php:15
ezpKernelResult\$content
$content
Definition: ezpkernelresult.php:21
$url
$url
Definition: messagereviewlist.php:153
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.