PHP Класс Ojs\ApiBundle\Controller\Journal\JournalSectionRestController

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

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

Метод Описание
deleteSectionAction ( $id ) : Response
getSectionAction ( integer $id ) : array Get single Section.
getSectionsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Sections.
newSectionAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Section.
patchSectionAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal_section from the submitted data or create a new journal_section at a specific location.
postSectionAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Section from the submitted data.
putSectionAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Section from the submitted data or create a new Section at a specific location.

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

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

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

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

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

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

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

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

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

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

List all Sections.
public getSectionsAction ( 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

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

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

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

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

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

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

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

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