PHP 클래스 Illuminate\Routing\Redirector

파일 보기 프로젝트 열기: illuminate/routing 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$generator UrlGenerator The URL generator instance.
$session Illuminate\Session\Store The session store instance.

공개 메소드들

메소드 설명
__construct ( UrlGenerator $generator ) : void Create a new Redirector instance.
action ( string $action, array $parameters = [], integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse Create a new redirect response to a controller action.
away ( string $path, integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse Create a new redirect response to an external URL (no validation).
back ( integer $status = 302, array $headers = [], string $fallback = false ) : Illuminate\Http\RedirectResponse Create a new redirect response to the previous location.
getUrlGenerator ( ) : UrlGenerator Get the URL generator instance.
guest ( string $path, integer $status = 302, array $headers = [], boolean $secure = null ) : Illuminate\Http\RedirectResponse Create a new redirect response, while putting the current URL in the session.
home ( integer $status = 302 ) : Illuminate\Http\RedirectResponse Create a new redirect response to the "home" route.
intended ( string $default = '/', integer $status = 302, array $headers = [], boolean $secure = null ) : Illuminate\Http\RedirectResponse Create a new redirect response to the previously intended location.
refresh ( integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse Create a new redirect response to the current URI.
route ( string $route, array $parameters = [], integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse Create a new redirect response to a named route.
secure ( string $path, integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse Create a new redirect response to the given HTTPS path.
setSession ( Illuminate\Session\Store $session ) : void Set the active session store.
to ( string $path, integer $status = 302, array $headers = [], boolean $secure = null ) : Illuminate\Http\RedirectResponse Create a new redirect response to the given path.

보호된 메소드들

메소드 설명
createRedirect ( string $path, integer $status, array $headers ) : Illuminate\Http\RedirectResponse Create a new redirect response.

메소드 상세

__construct() 공개 메소드

Create a new Redirector instance.
public __construct ( UrlGenerator $generator ) : void
$generator UrlGenerator
리턴 void

action() 공개 메소드

Create a new redirect response to a controller action.
public action ( string $action, array $parameters = [], integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse
$action string
$parameters array
$status integer
$headers array
리턴 Illuminate\Http\RedirectResponse

away() 공개 메소드

Create a new redirect response to an external URL (no validation).
public away ( string $path, integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse
$path string
$status integer
$headers array
리턴 Illuminate\Http\RedirectResponse

back() 공개 메소드

Create a new redirect response to the previous location.
public back ( integer $status = 302, array $headers = [], string $fallback = false ) : Illuminate\Http\RedirectResponse
$status integer
$headers array
$fallback string
리턴 Illuminate\Http\RedirectResponse

createRedirect() 보호된 메소드

Create a new redirect response.
protected createRedirect ( string $path, integer $status, array $headers ) : Illuminate\Http\RedirectResponse
$path string
$status integer
$headers array
리턴 Illuminate\Http\RedirectResponse

getUrlGenerator() 공개 메소드

Get the URL generator instance.
public getUrlGenerator ( ) : UrlGenerator
리턴 UrlGenerator

guest() 공개 메소드

Create a new redirect response, while putting the current URL in the session.
public guest ( string $path, integer $status = 302, array $headers = [], boolean $secure = null ) : Illuminate\Http\RedirectResponse
$path string
$status integer
$headers array
$secure boolean
리턴 Illuminate\Http\RedirectResponse

home() 공개 메소드

Create a new redirect response to the "home" route.
public home ( integer $status = 302 ) : Illuminate\Http\RedirectResponse
$status integer
리턴 Illuminate\Http\RedirectResponse

intended() 공개 메소드

Create a new redirect response to the previously intended location.
public intended ( string $default = '/', integer $status = 302, array $headers = [], boolean $secure = null ) : Illuminate\Http\RedirectResponse
$default string
$status integer
$headers array
$secure boolean
리턴 Illuminate\Http\RedirectResponse

refresh() 공개 메소드

Create a new redirect response to the current URI.
public refresh ( integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse
$status integer
$headers array
리턴 Illuminate\Http\RedirectResponse

route() 공개 메소드

Create a new redirect response to a named route.
public route ( string $route, array $parameters = [], integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse
$route string
$parameters array
$status integer
$headers array
리턴 Illuminate\Http\RedirectResponse

secure() 공개 메소드

Create a new redirect response to the given HTTPS path.
public secure ( string $path, integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse
$path string
$status integer
$headers array
리턴 Illuminate\Http\RedirectResponse

setSession() 공개 메소드

Set the active session store.
public setSession ( Illuminate\Session\Store $session ) : void
$session Illuminate\Session\Store
리턴 void

to() 공개 메소드

Create a new redirect response to the given path.
public to ( string $path, integer $status = 302, array $headers = [], boolean $secure = null ) : Illuminate\Http\RedirectResponse
$path string
$status integer
$headers array
$secure boolean
리턴 Illuminate\Http\RedirectResponse

프로퍼티 상세

$generator 보호되어 있는 프로퍼티

The URL generator instance.
protected UrlGenerator,Illuminate\Routing $generator
리턴 UrlGenerator

$session 보호되어 있는 프로퍼티

The session store instance.
protected Store,Illuminate\Session $session
리턴 Illuminate\Session\Store