PHP Class Ojs\ApiBundle\Handler\JournalArticleFileHandler

Show file Open project: ojs/ojs

Public Methods

Method Description
__construct ( Doctrine\Common\Persistence\ObjectManager $om, $entityClass, Symfony\Component\Form\FormFactoryInterface $formFactory, JournalService $journalService, Symfony\Component\HttpKernel\KernelInterface $kernel, ApiHandlerHelper $apiHelper )
all ( integer $limit = 5, integer $offset ) : array Get a list of ArticleFiles.
delete ( Ojs\JournalBundle\Entity\ArticleFile $entity ) : Ojs\JournalBundle\Entity\ArticleFile Delete a ArticleFile.
get ( mixed $id, boolean $normalize = false ) : Ojs\JournalBundle\Entity\ArticleFile Get a ArticleFile.
getArticle ( ) : Article Get Article.
patch ( Ojs\JournalBundle\Entity\ArticleFile $entity, array $parameters ) : Ojs\JournalBundle\Entity\ArticleFile Partially update a ArticleFile.
post ( array $parameters ) : Ojs\JournalBundle\Entity\ArticleFile Create a new ArticleFile.
put ( Ojs\JournalBundle\Entity\ArticleFile $entity, array $parameters ) : Ojs\JournalBundle\Entity\ArticleFile Edit a ArticleFile.

Private Methods

Method Description
createArticleFile ( )
processForm ( Ojs\JournalBundle\Entity\ArticleFile $entity, array $parameters, String $method = "PUT" ) : Ojs\JournalBundle\Entity\ArticleFile Processes the form.
storeFile ( $file )

Method Details

__construct() public method

public __construct ( Doctrine\Common\Persistence\ObjectManager $om, $entityClass, Symfony\Component\Form\FormFactoryInterface $formFactory, JournalService $journalService, Symfony\Component\HttpKernel\KernelInterface $kernel, ApiHandlerHelper $apiHelper )
$om Doctrine\Common\Persistence\ObjectManager
$formFactory Symfony\Component\Form\FormFactoryInterface
$journalService Ojs\JournalBundle\Service\JournalService
$kernel Symfony\Component\HttpKernel\KernelInterface
$apiHelper Ojs\CoreBundle\Service\ApiHandlerHelper

all() public method

Get a list of ArticleFiles.
public all ( integer $limit = 5, integer $offset ) : array
$limit integer the limit of the result
$offset integer starting from the offset
return array

delete() public method

Delete a ArticleFile.
public delete ( Ojs\JournalBundle\Entity\ArticleFile $entity ) : Ojs\JournalBundle\Entity\ArticleFile
$entity Ojs\JournalBundle\Entity\ArticleFile
return Ojs\JournalBundle\Entity\ArticleFile

get() public method

Get a ArticleFile.
public get ( mixed $id, boolean $normalize = false ) : Ojs\JournalBundle\Entity\ArticleFile
$id mixed
$normalize boolean
return Ojs\JournalBundle\Entity\ArticleFile

getArticle() public method

Get Article.
public getArticle ( ) : Article
return Ojs\JournalBundle\Entity\Article

patch() public method

Partially update a ArticleFile.
public patch ( Ojs\JournalBundle\Entity\ArticleFile $entity, array $parameters ) : Ojs\JournalBundle\Entity\ArticleFile
$entity Ojs\JournalBundle\Entity\ArticleFile
$parameters array
return Ojs\JournalBundle\Entity\ArticleFile

post() public method

Create a new ArticleFile.
public post ( array $parameters ) : Ojs\JournalBundle\Entity\ArticleFile
$parameters array
return Ojs\JournalBundle\Entity\ArticleFile

put() public method

Edit a ArticleFile.
public put ( Ojs\JournalBundle\Entity\ArticleFile $entity, array $parameters ) : Ojs\JournalBundle\Entity\ArticleFile
$entity Ojs\JournalBundle\Entity\ArticleFile
$parameters array
return Ojs\JournalBundle\Entity\ArticleFile