PHP 클래스 Ojs\ApiBundle\Controller\Journal\JournalArticleFileRestController

상속: extends Ojs\ApiBundle\Controller\ApiController
파일 보기 프로젝트 열기: ojs/ojs

공개 메소드들

메소드 설명
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