PHP Class Backend\Core\Engine\Base\Object

Inheritance: extends KernelLoader
Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Protected Properties

Property Type Description
$action string The current action
$content string The actual output
$module string The current module

Public Methods

Method Description
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

Method Details

getAction() public method

Get the action
public getAction ( ) : string
return string

getContent() public method

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

getModule() public method

Get module
public getModule ( ) : string
return string

redirect() public method

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() public method

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

setModule() public method

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

Property Details

$action protected_oe property

The current action
protected string $action
return string

$content protected_oe property

The actual output
protected string $content
return string

$module protected_oe property

The current module
protected string $module
return string