PHP 클래스 Ojs\ApiBundle\Controller\Admin\UserRestController

상속: extends FOS\RestBundle\Controller\FOSRestController
파일 보기 프로젝트 열기: ojs/ojs

공개 메소드들

메소드 설명
getUserAction ( integer $id ) : array Get single User.
getUsersAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Users.
newUserAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new User.
patchUserAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing user from the submitted data or create a new user at a specific location.
postUserAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a User from the submitted data.
putUserAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing User from the submitted data or create a new User at a specific location.

보호된 메소드들

메소드 설명
getOr404 ( mixed $id ) : User Fetch a User or throw an 404 Exception.

메소드 상세

getOr404() 보호된 메소드

Fetch a User or throw an 404 Exception.
protected getOr404 ( mixed $id ) : User
$id mixed
리턴 Ojs\UserBundle\Entity\User

getUserAction() 공개 메소드

Get single User.
public getUserAction ( integer $id ) : array
$id integer the User id
리턴 array

getUsersAction() 공개 메소드

List all Users.
public getUsersAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array
$request Symfony\Component\HttpFoundation\Request the request object
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface param fetcher service
리턴 array

newUserAction() 공개 메소드

Presents the form to use to create a new User.
public newUserAction ( ) : Symfony\Component\Form\FormTypeInterface
리턴 Symfony\Component\Form\FormTypeInterface

patchUserAction() 공개 메소드

Update existing user from the submitted data or create a new user at a specific location.
public patchUserAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the user id
리턴 Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postUserAction() 공개 메소드

Create a User from the submitted data.
public postUserAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
리턴 Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

putUserAction() 공개 메소드

Update existing User from the submitted data or create a new User at a specific location.
public putUserAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the User id
리턴 Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View