Method | Description | |
---|---|---|
deleteAction ( |
Updated edited element action | |
disableAction ( |
Disable entity | |
disableEntity ( Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) | Disables the given entity | |
enableAction ( |
Enable entity | |
enableEntity ( Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) | Enables the given entity | |
flush ( mixed $entity ) | Save an entity. To ensure the method is simple, the entity will be persisted always | |
flushCache ( ) | Flush cache | |
getFailResponse ( |
Return fail response | |
getOkResponse ( |
Return ok response | |
getResponse ( |
Return response | |
redirectRoute ( string $route, array $params = [] ) : |
Return a RedirectResponse given a route name and an array of parameters | |
translate ( string $string ) : string | Translate |
Method | Description | |
---|---|---|
getManagerForClass ( Mixed $entity ) : Doctrine\Common\Persistence\ObjectManager | Get entity manager from an entity |
protected deleteAction ( |
||
$request | Request | |
$entity | Mixed | Entity to delete |
$redirectPath | string | Redirect path |
return | Redirect response |
protected disableAction ( |
||
$request | Request | |
$entity | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | Entity to disable |
return | array | Result |
protected disableEntity ( Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) | ||
$entity | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | The entity to disable |
protected enableAction ( |
||
$request | Request | |
$entity | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | Entity to enable |
return | array | Result |
protected enableEntity ( Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) | ||
$entity | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | The entity to disable |
protected getFailResponse ( |
||
$request | Request | |
$exception | Exception | Exception |
return | mixed | Response |
protected getOkResponse ( |
||
$request | Request | |
$redirectPath | string | Redirect path |
return | mixed | Response |
protected redirectRoute ( string $route, array $params = [] ) : |
||
$route | string | Route |
$params | array | Params |
return | Response |