FormationsController
extends AbstractController
in package
Controleur des formations
Tags
Table of Contents
Constants
- PAGE_FORMATION = "pages/formation.html.twig"
- Chemin de la page 'formation'
- PAGE_FORMATIONS = "pages/formations.html.twig"
- Chemin de la page 'formations'
Properties
Methods
- __construct() : mixed
- findAllContain() : Response
- Affiche la liste des formations dont un champ contient une valeur
- index() : Response
- Affiche la liste de toutes les formations
- showOne() : Response
- Affiche le détail d'une formation
- sort() : Response
- Affiche la liste des formations triées sur un champ
Constants
PAGE_FORMATION
Chemin de la page 'formation'
private
mixed
PAGE_FORMATION
= "pages/formation.html.twig"
PAGE_FORMATIONS
Chemin de la page 'formations'
private
mixed
PAGE_FORMATIONS
= "pages/formations.html.twig"
Properties
$categorieRepository
private
CategorieRepository
$categorieRepository
$formationRepository
private
FormationRepository
$formationRepository
Methods
__construct()
public
__construct(FormationRepository $formationRepository, CategorieRepository $categorieRepository) : mixed
Parameters
- $formationRepository : FormationRepository
- $categorieRepository : CategorieRepository
findAllContain()
Affiche la liste des formations dont un champ contient une valeur
public
findAllContain(type $champ, Request $request[, type $table = "" ]) : Response
Parameters
- $champ : type
- $request : Request
- $table : type = ""
Attributes
- #[Route]
- '/formations/recherche/{champ}/{table}'
- $name: 'formations.findallcontain'
Return values
Responseindex()
Affiche la liste de toutes les formations
public
index() : Response
Attributes
- #[Route]
- '/formations'
- $name: 'formations'
Return values
ResponseshowOne()
Affiche le détail d'une formation
public
showOne(type $id) : Response
Parameters
- $id : type
Attributes
- #[Route]
- '/formations/formation/{id}'
- $name: 'formations.showone'
Return values
Responsesort()
Affiche la liste des formations triées sur un champ
public
sort(type $champ, type $ordre[, type $table = "" ]) : Response
Parameters
- $champ : type
- $ordre : type
- $table : type = ""
Attributes
- #[Route]
- '/formations/tri/{champ}/{ordre}/{table}'
- $name: 'formations.sort'