PHP Class Xpressengine\Http\Request

PHP version 5
Author: XE Developers ([email protected])
Inheritance: extends Illuminate\Http\Request
Show file Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Property Type Description
$config Illuminate\Config\Repository
$mobileResolver Closure 현재 요청이 mobile 페이지의 요청인지 판단하는 resolver 이 클래스는 이 resolver를 사용하여 mobile 페이지 요청인지 판단한다.
$originInputSource Symfony\Component\HttpFoundation\ParameterBag

Public Methods

Method Description
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를 지정한다.

Method Details

createFromBase() public static method

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

getMobileResolver() public method

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

isManageRequest() public method

Check request to manage
public isManageRequest ( ) : boolean
return boolean

isMobile() public method

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

isMobileByAgent() public method

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

originAll() public method

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

originExcept() public method

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

originInput() public method

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
return string | array

originOnly() public method

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

setConfig() public method

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

setMobileResolver() public method

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

Property Details

$config protected property

protected Repository,Illuminate\Config $config
return Illuminate\Config\Repository

$mobileResolver protected property

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

$originInputSource protected property

protected ParameterBag,Symfony\Component\HttpFoundation $originInputSource
return Symfony\Component\HttpFoundation\ParameterBag