PHP 클래스 luya\base\ModuleReflection

저자: nadar
상속: extends yii\base\Object
파일 보기 프로젝트 열기: luyadev/luya 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$controller The controller paramter is null until the ModuleReflection::run method has been applied.
$request Request object from DI-Container.
$urlManager UrlManager object from DI-Container.

공개 메소드들

메소드 설명
__construct ( luya\web\Request $request, luya\web\UrlManager $urlManager, array $config = [] ) Class constructor in order to consum from DI Container.
defaultRoute ( string $controller, string $action = null, array $args = [] ) Inject a defaultRoute.
getModule ( ) : Module Getter for the module property.
getRequestRoute ( ) : array Determine the default route based on current defaultRoutes or parsedRequested by the UrlManager.
getSuffix ( ) : string Getter for the suffix property.
getUrlRule ( ) : array Returns the url rule parameters which are taken from the requested route.
init ( )
run ( ) : string | Response Run the route based on the values.
setModule ( Module $module ) Setter for the module property.
setSuffix ( string $suffix ) Setter for the suffix property.

메소드 상세

__construct() 공개 메소드

Class constructor in order to consum from DI Container.
public __construct ( luya\web\Request $request, luya\web\UrlManager $urlManager, array $config = [] )
$request luya\web\Request
$urlManager luya\web\UrlManager
$config array

defaultRoute() 공개 메소드

Inject a defaultRoute.
public defaultRoute ( string $controller, string $action = null, array $args = [] )
$controller string
$action string
$args array

getModule() 공개 메소드

Getter for the module property.
public getModule ( ) : Module
리턴 Module

getRequestRoute() 공개 메소드

Determine the default route based on current defaultRoutes or parsedRequested by the UrlManager.
public getRequestRoute ( ) : array
리턴 array

getSuffix() 공개 메소드

Getter for the suffix property.
public getSuffix ( ) : string
리턴 string

getUrlRule() 공개 메소드

Returns the url rule parameters which are taken from the requested route.
public getUrlRule ( ) : array
리턴 array

init() 공개 메소드

public init ( )

run() 공개 메소드

Run the route based on the values.
public run ( ) : string | Response
리턴 string | yii\web\Response The response of the action, can be either a string or an object from response.

setModule() 공개 메소드

Setter for the module property.
public setModule ( Module $module )
$module Module

setSuffix() 공개 메소드

Setter for the suffix property.
public setSuffix ( string $suffix )
$suffix string

프로퍼티 상세

$controller 공개적으로 프로퍼티

The controller paramter is null until the ModuleReflection::run method has been applied.
public $controller

$request 공개적으로 프로퍼티

Request object from DI-Container.
public $request

$urlManager 공개적으로 프로퍼티

UrlManager object from DI-Container.
public $urlManager