PHP Class Backend\Core\Engine\Base\Object

Inheritance: extends KernelLoader
Afficher le fichier Open project: forkcms/forkcms Class Usage Examples

Protected Properties

Свойство Type Description
$action string The current action
$content string The actual output
$module string The current module

Méthodes publiques

Méthode 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 méthode

Get the action
public getAction ( ) : string
Résultat string

getContent() public méthode

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

getModule() public méthode

Get module
public getModule ( ) : string
Résultat string

redirect() public méthode

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 méthode

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

setModule() public méthode

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
Résultat string

$content protected_oe property

The actual output
protected string $content
Résultat string

$module protected_oe property

The current module
protected string $module
Résultat string