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

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

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

Метод Описание
deleteSubjectAction ( $id ) : Response
getSubjectAction ( integer $id ) : array Get single Subject.
getSubjectsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Subjects.
newSubjectAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Subject.
patchSubjectAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing subject from the submitted data or create a new subject at a specific location.
postSubjectAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Subject from the submitted data.
putSubjectAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Subject from the submitted data or create a new Subject at a specific location.

Защищенные методы

Метод Описание
getOr404 ( mixed $id ) : Subject Fetch a Subject or throw an 404 Exception.

Описание методов

deleteSubjectAction() публичный Метод

public deleteSubjectAction ( $id ) : Response
$id
Результат Response

getOr404() защищенный Метод

Fetch a Subject or throw an 404 Exception.
protected getOr404 ( mixed $id ) : Subject
$id mixed
Результат Ojs\JournalBundle\Entity\Subject

getSubjectAction() публичный Метод

Get single Subject.
public getSubjectAction ( integer $id ) : array
$id integer the Subject id
Результат array

getSubjectsAction() публичный Метод

List all Subjects.
public getSubjectsAction ( 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

newSubjectAction() публичный Метод

Presents the form to use to create a new Subject.
public newSubjectAction ( ) : Symfony\Component\Form\FormTypeInterface
Результат Symfony\Component\Form\FormTypeInterface

patchSubjectAction() публичный Метод

Update existing subject from the submitted data or create a new subject at a specific location.
public patchSubjectAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the subject id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postSubjectAction() публичный Метод

Create a Subject from the submitted data.
public postSubjectAction ( 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

putSubjectAction() публичный Метод

Update existing Subject from the submitted data or create a new Subject at a specific location.
public putSubjectAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the Subject id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View