PHP 클래스 Xpressengine\Http\Request

PHP version 5
저자: XE Developers ([email protected])
상속: extends Illuminate\Http\Request
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config Illuminate\Config\Repository
$mobileResolver Closure 현재 요청이 mobile 페이지의 요청인지 판단하는 resolver 이 클래스는 이 resolver를 사용하여 mobile 페이지 요청인지 판단한다.
$originInputSource Symfony\Component\HttpFoundation\ParameterBag

공개 메소드들

메소드 설명
createFromBase ( Request $request ) : Request Create an Illuminate request from a Symfony instance.
getMobileResolver ( ) : Closure movile resolver를 반환한다.
isManageRequest ( ) : boolean Check request to manage
isMobile ( boolean $fromUserAgent = false ) : boolean 현재 요청이 모바일 페이지 요청인지 조회한다.
isMobileByAgent ( ) : mixed 브라우저의 user agent만으로 현재 요청이 모바일 페이지 요청인지 조회한다.
originAll ( ) : array Get all of the origin input and files for the request.
originExcept ( array | mixed $keys ) : array Get all of the origin input except for a specified array of items.
originInput ( string $key = null, string | array | null $default = null ) : string | array Retrieve an origin input item from the request.
originOnly ( array $keys ) : array Get a subset of the origin items from the input data.
setConfig ( Illuminate\Config\Repository $config ) : void Set Illuminate config
setMobileResolver ( Closure $callback ) : void mobile resolver를 지정한다.

메소드 상세

createFromBase() 공개 정적인 메소드

Create an Illuminate request from a Symfony instance.
public static createFromBase ( Request $request ) : Request
$request Symfony\Component\HttpFoundation\Request request instance
리턴 Request

getMobileResolver() 공개 메소드

movile resolver를 반환한다.
public getMobileResolver ( ) : Closure
리턴 Closure

isManageRequest() 공개 메소드

Check request to manage
public isManageRequest ( ) : boolean
리턴 boolean

isMobile() 공개 메소드

$fromUserAgent가 true일 경우 사용자가 강제로 지정한 모드
public isMobile ( boolean $fromUserAgent = false ) : boolean
$fromUserAgent boolean true일 경우, 브라우저의 user agent만으로 판단한다.
리턴 boolean

isMobileByAgent() 공개 메소드

브라우저의 user agent만으로 현재 요청이 모바일 페이지 요청인지 조회한다.
public isMobileByAgent ( ) : mixed
리턴 mixed

originAll() 공개 메소드

Get all of the origin input and files for the request.
public originAll ( ) : array
리턴 array

originExcept() 공개 메소드

Get all of the origin input except for a specified array of items.
public originExcept ( array | mixed $keys ) : array
$keys array | mixed item keys
리턴 array

originInput() 공개 메소드

Retrieve an origin input item from the request.
public originInput ( string $key = null, string | array | null $default = null ) : string | array
$key string input item key
$default string | array | null default value
리턴 string | array

originOnly() 공개 메소드

Get a subset of the origin items from the input data.
public originOnly ( array $keys ) : array
$keys array item keys
리턴 array

setConfig() 공개 메소드

Set Illuminate config
public setConfig ( Illuminate\Config\Repository $config ) : void
$config Illuminate\Config\Repository config repository instance
리턴 void

setMobileResolver() 공개 메소드

mobile resolver를 지정한다.
public setMobileResolver ( Closure $callback ) : void
$callback Closure resolver
리턴 void

프로퍼티 상세

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

protected Repository,Illuminate\Config $config
리턴 Illuminate\Config\Repository

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

현재 요청이 mobile 페이지의 요청인지 판단하는 resolver 이 클래스는 이 resolver를 사용하여 mobile 페이지 요청인지 판단한다.
protected Closure $mobileResolver
리턴 Closure

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

protected ParameterBag,Symfony\Component\HttpFoundation $originInputSource
리턴 Symfony\Component\HttpFoundation\ParameterBag