Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 |
Результат | Redirect response |
protected disableAction ( |
||
$request | Request | |
$entity | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | Entity to disable |
Результат | 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 |
Результат | 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 |
Результат | mixed | Response |
protected getOkResponse ( |
||
$request | Request | |
$redirectPath | string | Redirect path |
Результат | mixed | Response |
protected redirectRoute ( string $route, array $params = [] ) : |
||
$route | string | Route |
$params | array | Params |
Результат | Response |