PHP Class Elcodi\Admin\MediaBundle\Controller\ImageController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Datei anzeigen Open project: elcodi/bamboo

Public Methods

Method 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
enableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array Enable entity
listAction ( ) : array List elements of certain entity type.
uploadAction ( ) : array Nav for entity

Method Details

deleteAction() public method

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
return Symfony\Component\HttpFoundation\RedirectResponse Redirect response

disableAction() public method

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
return array Result

enableAction() public method

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
return array Result

listAction() public method

This action is just a wrapper, so should never get any data, as this is component responsibility
public listAction ( ) : array
return array Result

uploadAction() public method

Nav for entity
public uploadAction ( ) : array
return array Result