PHP Класс FluxBB\Web\Controller

Показать файл Открыть проект

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

Свойство Тип Описание
$input array The consolidated input data from the request.
$request Symfony\Component\HttpFoundation\Request The request being handled.
$server FluxBB\Server\ServerInterface The server instance.
$session Illuminate\Session\Store The session instance.
$url FluxBB\Web\UrlGeneratorInterface The URL generator instance.
$view FluxBB\View\ViewInterface The view instance.

Открытые методы

Метод Описание
call ( string $action ) : Response Call the given action on this controller.
setRequest ( Request $request ) : void Set the request being handled.
setServer ( FluxBB\Server\ServerInterface $server ) : void Set the server to use.
setSession ( Illuminate\Session\Store $session ) : void Set the session driver to use.
setUrlGenerator ( FluxBB\Web\UrlGeneratorInterface $url ) : void Set the URL generator instance.
setView ( FluxBB\View\ViewInterface $view ) : void Set the view environment to use.

Защищенные методы

Метод Описание
execute ( string $action, array $parameters = [] ) : array Let the FluxBB server execute the given action and return its response data.
getInput ( string $key ) : string Get the value of the input parameter with the given name.
makeRedirect ( string $url ) : RedirectResponse Instantiate a redirect response.
redirectTo ( string $route, array $parameters = [] ) : RedirectResponse Create a redirect response.
setInput ( string $key, string $value ) : void Explicitly set an input parameter to the given value.
view ( string $name, array $data = [] ) : Response Render the given view.

Описание методов

call() публичный Метод

Call the given action on this controller.
public call ( string $action ) : Response
$action string
Результат Symfony\Component\HttpFoundation\Response

execute() защищенный Метод

Let the FluxBB server execute the given action and return its response data.
protected execute ( string $action, array $parameters = [] ) : array
$action string
$parameters array
Результат array

getInput() защищенный Метод

Get the value of the input parameter with the given name.
protected getInput ( string $key ) : string
$key string
Результат string

makeRedirect() защищенный Метод

Instantiate a redirect response.
protected makeRedirect ( string $url ) : RedirectResponse
$url string
Результат RedirectResponse

redirectTo() защищенный Метод

Create a redirect response.
protected redirectTo ( string $route, array $parameters = [] ) : RedirectResponse
$route string
$parameters array
Результат RedirectResponse

setInput() защищенный Метод

Explicitly set an input parameter to the given value.
protected setInput ( string $key, string $value ) : void
$key string
$value string
Результат void

setRequest() публичный Метод

Set the request being handled.
public setRequest ( Request $request ) : void
$request Symfony\Component\HttpFoundation\Request
Результат void

setServer() публичный Метод

Set the server to use.
public setServer ( FluxBB\Server\ServerInterface $server ) : void
$server FluxBB\Server\ServerInterface
Результат void

setSession() публичный Метод

Set the session driver to use.
public setSession ( Illuminate\Session\Store $session ) : void
$session Illuminate\Session\Store
Результат void

setUrlGenerator() публичный Метод

Set the URL generator instance.
public setUrlGenerator ( FluxBB\Web\UrlGeneratorInterface $url ) : void
$url FluxBB\Web\UrlGeneratorInterface
Результат void

setView() публичный Метод

Set the view environment to use.
public setView ( FluxBB\View\ViewInterface $view ) : void
$view FluxBB\View\ViewInterface
Результат void

view() защищенный Метод

Render the given view.
protected view ( string $name, array $data = [] ) : Response
$name string
$data array
Результат Symfony\Component\HttpFoundation\Response

Описание свойств

$input защищенное свойство

The consolidated input data from the request.
protected array $input
Результат array

$request защищенное свойство

The request being handled.
protected Request,Symfony\Component\HttpFoundation $request
Результат Symfony\Component\HttpFoundation\Request

$server защищенное свойство

The server instance.
protected ServerInterface,FluxBB\Server $server
Результат FluxBB\Server\ServerInterface

$session защищенное свойство

The session instance.
protected Store,Illuminate\Session $session
Результат Illuminate\Session\Store

$url защищенное свойство

The URL generator instance.
protected UrlGeneratorInterface,FluxBB\Web $url
Результат FluxBB\Web\UrlGeneratorInterface

$view защищенное свойство

The view instance.
protected ViewInterface,FluxBB\View $view
Результат FluxBB\View\ViewInterface