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

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

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

Метод Описание
deleteFileAction ( $id ) : Response
getFileAction ( integer $id ) : array Get single ArticleFile.
getFilesAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all ArticleFiles.
newFileAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new ArticleFile.
patchFileAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing article file from the submitted data or create a new article file at a specific location.
postFileAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a ArticleFile from the submitted data.
putFileAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing ArticleFile from the submitted data or create a new ArticleFile at a specific location.

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

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

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

deleteFileAction() публичный метод

public deleteFileAction ( $id ) : Response
$id
Результат Symfony\Component\HttpFoundation\Response

getFileAction() публичный метод

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

getFilesAction() публичный метод

List all ArticleFiles.
public getFilesAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface param fetcher service
Результат array

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

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

newFileAction() публичный метод

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

patchFileAction() публичный метод

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

postFileAction() публичный метод

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

putFileAction() публичный метод

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