PHP 클래스 Backend\Core\Engine\Base\Object

상속: extends KernelLoader
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$action string The current action
$content string The actual output
$module string The current module

공개 메소드들

메소드 설명
getAction ( ) : string Get the action
getContent ( ) : Response Since the display action in the backend is rather complicated and we want to make this work with our Kernel, I've added this getContent method to extract the output from the actual displaying.
getModule ( ) : string Get module
redirect ( string $url, integer $code = 302 ) Redirect to a given URL
setAction ( string $action, string $module = null ) Set the action
setModule ( string $module ) Set the module

메소드 상세

getAction() 공개 메소드

Get the action
public getAction ( ) : string
리턴 string

getContent() 공개 메소드

With this function we'll be able to get the content and return it as a Symfony output object.
public getContent ( ) : Response
리턴 Symfony\Component\HttpFoundation\Response

getModule() 공개 메소드

Get module
public getModule ( ) : string
리턴 string

redirect() 공개 메소드

Redirect to a given URL
public redirect ( string $url, integer $code = 302 )
$url string The URL to redirect to.
$code integer The redirect code, default is 302 which means this is a temporary redirect.

setAction() 공개 메소드

Set the action
public setAction ( string $action, string $module = null )
$action string The action to load.
$module string The module to load.

setModule() 공개 메소드

Set the module
public setModule ( string $module )
$module string The module to load.

프로퍼티 상세

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

The current action
protected string $action
리턴 string

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

The actual output
protected string $content
리턴 string

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

The current module
protected string $module
리턴 string