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

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

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

Метод Описание
deleteThemeAction ( $id ) : Response
getThemeAction ( integer $id ) : array Get single JournalTheme.
getThemesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all JournalThemes.
newThemeAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new JournalTheme.
patchThemeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal_theme from the submitted data or create a new journal_theme at a specific location.
postThemeAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a JournalTheme from the submitted data.
putThemeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing JournalTheme from the submitted data or create a new JournalTheme at a specific location.

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

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

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

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

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

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

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

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

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

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

List all JournalThemes.
public getThemesAction ( 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

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

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

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

Update existing journal_theme from the submitted data or create a new journal_theme at a specific location.
public patchThemeAction ( 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_theme id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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

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

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