PHP Class WellCommerce\Bundle\CoreBundle\Controller\Admin\AbstractAdminController

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\Controller\AbstractController, implements AdminControllerInterface
Mostrar archivo Open project: wellcommerce/wellcommerce Class Usage Examples

Public Methods

Method Description
__construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $manager, WellCommerce\Component\Form\FormBuilderInterface $formBuilder = null, WellCommerce\Component\DataGrid\DataGridInterface $dataGrid = null ) AbstractAdminController constructor.
addAction ( Request $request ) : Response
deleteAction ( integer $id ) : Response
editAction ( integer $id ) : Response
gridAction ( Request $request ) : Response
indexAction ( ) : Response

Protected Methods

Method Description
getAuthenticatedAdmin ( ) : WellCommerce\Bundle\AdminBundle\Entity\UserInterface
getDataGrid ( ) : WellCommerce\Component\DataGrid\DataGridInterface
getOrderProvider ( ) : WellCommerce\Bundle\OrderBundle\Provider\Admin\OrderProviderInterface

Method Details

__construct() public method

AbstractAdminController constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $manager, WellCommerce\Component\Form\FormBuilderInterface $formBuilder = null, WellCommerce\Component\DataGrid\DataGridInterface $dataGrid = null )
$manager WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface
$formBuilder WellCommerce\Component\Form\FormBuilderInterface
$dataGrid WellCommerce\Component\DataGrid\DataGridInterface

addAction() public method

public addAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

deleteAction() public method

public deleteAction ( integer $id ) : Response
$id integer
return Symfony\Component\HttpFoundation\Response

editAction() public method

public editAction ( integer $id ) : Response
$id integer
return Symfony\Component\HttpFoundation\Response

getAuthenticatedAdmin() protected method

protected getAuthenticatedAdmin ( ) : WellCommerce\Bundle\AdminBundle\Entity\UserInterface
return WellCommerce\Bundle\AdminBundle\Entity\UserInterface

getDataGrid() protected method

protected getDataGrid ( ) : WellCommerce\Component\DataGrid\DataGridInterface
return WellCommerce\Component\DataGrid\DataGridInterface

getOrderProvider() protected method

protected getOrderProvider ( ) : WellCommerce\Bundle\OrderBundle\Provider\Admin\OrderProviderInterface
return WellCommerce\Bundle\OrderBundle\Provider\Admin\OrderProviderInterface

gridAction() public method

public gridAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

indexAction() public method

public indexAction ( ) : Response
return Symfony\Component\HttpFoundation\Response