Méthode | 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 |
Méthode | 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 |
Résultat | Redirect response |
protected disableAction ( |
||
$request | Request | |
$entity | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | Entity to disable |
Résultat | 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 |
Résultat | 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 |
Résultat | mixed | Response |
protected getOkResponse ( |
||
$request | Request | |
$redirectPath | string | Redirect path |
Résultat | mixed | Response |
protected redirectRoute ( string $route, array $params = [] ) : |
||
$route | string | Route |
$params | array | Params |
Résultat | Response |