PHP 클래스 yii\base\Request

For more details and usage information on Request, see the guide article on requests.
부터: 2.0
저자: Qiang Xue ([email protected])
상속: extends Component
파일 보기 프로젝트 열기: yiisoft/yii2 1 사용 예제들

공개 메소드들

메소드 설명
getIsConsoleRequest ( ) : boolean Returns a value indicating whether the current request is made via command line
getScriptFile ( ) : string Returns entry script file path.
resolve ( ) : array Resolves the current request into a route and the associated parameters.
setIsConsoleRequest ( boolean $value ) Sets the value indicating whether the current request is made via command line
setScriptFile ( string $value ) Sets the entry script file path.

메소드 상세

getIsConsoleRequest() 공개 메소드

Returns a value indicating whether the current request is made via command line
public getIsConsoleRequest ( ) : boolean
리턴 boolean the value indicating whether the current request is made via console

getScriptFile() 공개 메소드

Returns entry script file path.
public getScriptFile ( ) : string
리턴 string entry script file path (processed w/ realpath())

resolve() 추상적인 공개 메소드

Resolves the current request into a route and the associated parameters.
abstract public resolve ( ) : array
리턴 array the first element is the route, and the second is the associated parameters.

setIsConsoleRequest() 공개 메소드

Sets the value indicating whether the current request is made via command line
public setIsConsoleRequest ( boolean $value )
$value boolean the value indicating whether the current request is made via command line

setScriptFile() 공개 메소드

The entry script file path can normally be determined based on the SCRIPT_FILENAME SERVER variable. However, for some server configurations, this may not be correct or feasible. This setter is provided so that the entry script file path can be manually specified.
public setScriptFile ( string $value )
$value string the entry script file path. This can be either a file path or a path alias.