PHP Class Ojs\ApiBundle\Controller\Admin\UserRestController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Afficher le fichier Open project: ojs/ojs

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
getOr404 ( mixed $id ) : User Fetch a User or throw an 404 Exception.

Method Details

getOr404() protected méthode

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

getUserAction() public méthode

Get single User.
public getUserAction ( integer $id ) : array
$id integer the User id
Résultat array

getUsersAction() public méthode

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
Résultat array

newUserAction() public méthode

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

patchUserAction() public méthode

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
Résultat Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postUserAction() public méthode

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
Résultat Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

putUserAction() public méthode

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
Résultat Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View