PHP Класс Backend\Core\Engine\Base\Object

Наследование: extends KernelLoader
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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