PHP Class Elcodi\Admin\CouponBundle\Controller\CouponController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Afficher le fichier Open project: elcodi/bamboo

Méthodes publiques

Méthode Description
deleteAction ( Request $request, mixed $entity, string $redirectPath = null ) : RedirectResponse Delete entity
disableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array Disable entity
editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Coupon\Entity\Interfaces\CouponInterface $coupon, boolean $isValid ) : RedirectResponse Edit and Saves page
enableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array Enable entity
listAction ( integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array List elements of certain entity type.

Method Details

deleteAction() public méthode

Delete entity
public deleteAction ( Request $request, mixed $entity, string $redirectPath = null ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request Request
$entity mixed Entity to delete
$redirectPath string Redirect path
Résultat Symfony\Component\HttpFoundation\RedirectResponse Redirect response

disableAction() public méthode

Disable entity
public disableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array
$request Symfony\Component\HttpFoundation\Request Request
$entity Elcodi\Component\Core\Entity\Interfaces\EnabledInterface Entity to disable
Résultat array Result

editAction() public méthode

Edit and Saves page
public editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Coupon\Entity\Interfaces\CouponInterface $coupon, boolean $isValid ) : RedirectResponse
$form Symfony\Component\Form\FormInterface Form
$coupon Elcodi\Component\Coupon\Entity\Interfaces\CouponInterface Coupon
$isValid boolean Request handle is valid
Résultat Symfony\Component\HttpFoundation\RedirectResponse Redirect response

enableAction() public méthode

Enable entity
public enableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array
$request Symfony\Component\HttpFoundation\Request Request
$entity Elcodi\Component\Core\Entity\Interfaces\EnabledInterface Entity to enable
Résultat array Result

listAction() public méthode

This action is just a wrapper, so should never get any data, as this is component responsibility
public listAction ( integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array
$page integer Page
$limit integer Limit of items per page
$orderByField string Field to order by
$orderByDirection string Direction to order by
Résultat array Result