PHP Class Elcodi\Store\GeoBundle\Controller\AddressController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller, use trait Elcodi\Store\CoreBundle\Controller\Traits\TemplateRenderTrait
Afficher le fichier Open project: elcodi/bamboo

Méthodes publiques

Méthode Description
deleteAction ( integer $id, string | null $source = null ) : Response Delete address
editAction ( integer $id, Request $request, string $source ) : Response Edit an address
listAction ( ) : Response List addresses page
newAction ( Elcodi\Component\Geo\Entity\Interfaces\AddressInterface $address, Symfony\Component\Form\FormView $formView, boolean $isValid, string | null $source = null ) : Response New address

Method Details

deleteAction() public méthode

Delete address
public deleteAction ( integer $id, string | null $source = null ) : Response
$id integer The address id
$source string | null The form source to redirect back
Résultat Symfony\Component\HttpFoundation\Response Response

editAction() public méthode

Edit an address
public editAction ( integer $id, Request $request, string $source ) : Response
$id integer The address id
$request Symfony\Component\HttpFoundation\Request The current request
$source string The form source to redirect back
Résultat Symfony\Component\HttpFoundation\Response Response

listAction() public méthode

List addresses page
public listAction ( ) : Response
Résultat Symfony\Component\HttpFoundation\Response Response

newAction() public méthode

New address
public newAction ( Elcodi\Component\Geo\Entity\Interfaces\AddressInterface $address, Symfony\Component\Form\FormView $formView, boolean $isValid, string | null $source = null ) : Response
$address Elcodi\Component\Geo\Entity\Interfaces\AddressInterface $address A new address entity
$formView Symfony\Component\Form\FormView The form view
$isValid boolean If the form is valid
$source string | null The form source to redirect back
Résultat Symfony\Component\HttpFoundation\Response Response