메소드 | 설명 | |
---|---|---|
deleteAction ( |
Delete entity | |
disableAction ( |
Disable entity | |
editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\User\Entity\Interfaces\AdminUserInterface $adminUser, boolean $isValid ) : |
Edit and Saves admin user | |
enableAction ( |
Enable entity | |
listAction ( integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array | List elements of certain entity type. |
메소드 | 설명 | |
---|---|---|
denyWithMessage ( $string ) | Deny the request with a Forbidden error and a translated message | |
isSameUser ( Elcodi\Component\User\Entity\Interfaces\AdminUserInterface $entity ) : boolean | Check if the user is the same as the logged one |
public deleteAction ( |
||
$request | Request | |
$entity | mixed | Entity to delete |
$redirectPath | string | Redirect path |
리턴 | Redirect response |
protected denyWithMessage ( $string ) | ||
$string | String to be translated |
public disableAction ( |
||
$request | Request | |
$entity | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | Entity to disable |
리턴 | array | Result |
public editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\User\Entity\Interfaces\AdminUserInterface $adminUser, boolean $isValid ) : |
||
$form | Symfony\Component\Form\FormInterface | Form |
$adminUser | Elcodi\Component\User\Entity\Interfaces\AdminUserInterface | Admin User |
$isValid | boolean | Is valid |
리턴 | Redirect response |
public enableAction ( |
||
$request | Request | |
$entity | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | Entity to enable |
리턴 | array | Result |
protected isSameUser ( Elcodi\Component\User\Entity\Interfaces\AdminUserInterface $entity ) : boolean | ||
$entity | Elcodi\Component\User\Entity\Interfaces\AdminUserInterface | |
리턴 | boolean |