PHP 클래스 Elcodi\Admin\UserBundle\Controller\AdminUserController

상속: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
파일 보기 프로젝트 열기: elcodi/bamboo

공개 메소드들

메소드 설명
deleteAction ( Request $request, mixed $entity, string $redirectPath = null ) : RedirectResponse Delete entity
disableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array Disable entity
editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\User\Entity\Interfaces\AdminUserInterface $adminUser, boolean $isValid ) : RedirectResponse Edit and Saves admin user
enableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array 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

메소드 상세

deleteAction() 공개 메소드

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

denyWithMessage() 보호된 메소드

Deny the request with a Forbidden error and a translated message
protected denyWithMessage ( $string )
$string String to be translated

disableAction() 공개 메소드

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
리턴 array Result

editAction() 공개 메소드

Edit and Saves admin user
public editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\User\Entity\Interfaces\AdminUserInterface $adminUser, boolean $isValid ) : RedirectResponse
$form Symfony\Component\Form\FormInterface Form
$adminUser Elcodi\Component\User\Entity\Interfaces\AdminUserInterface Admin User
$isValid boolean Is valid
리턴 Symfony\Component\HttpFoundation\RedirectResponse Redirect response

enableAction() 공개 메소드

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
리턴 array Result

isSameUser() 보호된 메소드

Check if the user is the same as the logged one
protected isSameUser ( Elcodi\Component\User\Entity\Interfaces\AdminUserInterface $entity ) : boolean
$entity Elcodi\Component\User\Entity\Interfaces\AdminUserInterface
리턴 boolean

listAction() 공개 메소드

This action is just a wrapper, so should never get any data, as this is component responsibility
public listAction ( integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array
$page integer Page
$limit integer Limit of items per page
$orderByField string Field to order by
$orderByDirection string Direction to order by
리턴 array Result