PHP Class FluxBB\Web\Controller

Afficher le fichier Open project: fluxbb/core

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

call() public méthode

Call the given action on this controller.
public call ( string $action ) : Response
$action string
Résultat Symfony\Component\HttpFoundation\Response

execute() protected méthode

Let the FluxBB server execute the given action and return its response data.
protected execute ( string $action, array $parameters = [] ) : array
$action string
$parameters array
Résultat array

getInput() protected méthode

Get the value of the input parameter with the given name.
protected getInput ( string $key ) : string
$key string
Résultat string

makeRedirect() protected méthode

Instantiate a redirect response.
protected makeRedirect ( string $url ) : RedirectResponse
$url string
Résultat RedirectResponse

redirectTo() protected méthode

Create a redirect response.
protected redirectTo ( string $route, array $parameters = [] ) : RedirectResponse
$route string
$parameters array
Résultat RedirectResponse

setInput() protected méthode

Explicitly set an input parameter to the given value.
protected setInput ( string $key, string $value ) : void
$key string
$value string
Résultat void

setRequest() public méthode

Set the request being handled.
public setRequest ( Request $request ) : void
$request Symfony\Component\HttpFoundation\Request
Résultat void

setServer() public méthode

Set the server to use.
public setServer ( FluxBB\Server\ServerInterface $server ) : void
$server FluxBB\Server\ServerInterface
Résultat void

setSession() public méthode

Set the session driver to use.
public setSession ( Illuminate\Session\Store $session ) : void
$session Illuminate\Session\Store
Résultat void

setUrlGenerator() public méthode

Set the URL generator instance.
public setUrlGenerator ( FluxBB\Web\UrlGeneratorInterface $url ) : void
$url FluxBB\Web\UrlGeneratorInterface
Résultat void

setView() public méthode

Set the view environment to use.
public setView ( FluxBB\View\ViewInterface $view ) : void
$view FluxBB\View\ViewInterface
Résultat void

view() protected méthode

Render the given view.
protected view ( string $name, array $data = [] ) : Response
$name string
$data array
Résultat Symfony\Component\HttpFoundation\Response

Property Details

$input protected_oe property

The consolidated input data from the request.
protected array $input
Résultat array

$request protected_oe property

The request being handled.
protected Request,Symfony\Component\HttpFoundation $request
Résultat Symfony\Component\HttpFoundation\Request

$server protected_oe property

The server instance.
protected ServerInterface,FluxBB\Server $server
Résultat FluxBB\Server\ServerInterface

$session protected_oe property

The session instance.
protected Store,Illuminate\Session $session
Résultat Illuminate\Session\Store

$url protected_oe property

The URL generator instance.
protected UrlGeneratorInterface,FluxBB\Web $url
Résultat FluxBB\Web\UrlGeneratorInterface

$view protected_oe property

The view instance.
protected ViewInterface,FluxBB\View $view
Résultat FluxBB\View\ViewInterface