Galette API documentation
Gestionnaire d’Adhérents en Ligne Extrêmement Tarabiscoté mais Tellement Efficace
1.0.0
Galette\Controllers\AbstractController Class Reference
Inheritance diagram for Galette\Controllers\AbstractController:
Collaboration diagram for Galette\Controllers\AbstractController:

Public Member Functions

 __construct (ContainerInterface $container)
 

Protected Member Functions

 galetteRedirect (Request $request, Response $response)
 
 getArgs (Request $request)
 
 withJson (Response $response, array $data, int $status=200)
 

Protected Attributes

Db $zdb
 
Login $login
 
Preferences $preferences
 
Twig $view
 
Logo $logo
 
PrintLogo $print_logo
 
Plugins $plugins
 
RouteParser $routeparser
 
History $history
 
I18n $i18n
 
L10n $l10n
 
Session $session
 
Messages $flash
 
FieldsConfig $fields_config
 
ListsConfig $lists_config
 
array $members_fields
 
array $members_form_fields
 
array $members_fields_cats
 

Detailed Description

Galette abstract controller

Author
Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be

Constructor & Destructor Documentation

◆ __construct()

Galette\Controllers\AbstractController::__construct ( ContainerInterface  $container)

Constructor

Parameters
ContainerInterface$containerContainer instance

Member Function Documentation

◆ galetteRedirect()

Galette\Controllers\AbstractController::galetteRedirect ( Request  $request,
Response  $response 
)
protected

Galette redirection workflow Each user have a default homepage depending on it status (logged in or not, its credentials, etc.

Parameters
Request$requestPSR Request
Response$responsePSR Response
Returns
Response

◆ getArgs()

Galette\Controllers\AbstractController::getArgs ( Request  $request)
protected

Get route arguments php-di bridge pass each variable, not an array of all arguments

Parameters
Request$requestPSR Request
Returns
array<string,mixed>

◆ withJson()

Galette\Controllers\AbstractController::withJson ( Response  $response,
array  $data,
int  $status = 200 
)
protected

Get a JSON response

Parameters
Response$responseResponse instance
array<string,mixed>$data Data to send
int$statusHTTP status code
Returns
Response

The documentation for this class was generated from the following file: