PHP Класс Ojs\ApiBundle\Controller\Admin\UserRestController

Наследование: extends FOS\RestBundle\Controller\FOSRestController
Показать файл Открыть проект

Открытые методы

Метод Описание
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