PHP Class Ojs\ApiBundle\Handler\JournalIssueFileHandler

显示文件 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 IssueFiles.
delete ( IssueFile $entity ) : IssueFile Delete a IssueFile.
get ( mixed $id, boolean $normalize = false ) : IssueFile Get a IssueFile.
getIssue ( ) : Issue Get Issue.
patch ( IssueFile $entity, array $parameters ) : IssueFile Partially update a IssueFile.
post ( array $parameters ) : IssueFile Create a new IssueFile.
put ( IssueFile $entity, array $parameters ) : IssueFile Edit a IssueFile.

Private Methods

Method Description
createIssueFile ( )
processForm ( IssueFile $entity, array $parameters, String $method = "PUT" ) : IssueFile 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 IssueFiles.
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 IssueFile.
public delete ( IssueFile $entity ) : IssueFile
$entity Ojs\JournalBundle\Entity\IssueFile
return Ojs\JournalBundle\Entity\IssueFile

get() public method

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

getIssue() public method

Get Issue.
public getIssue ( ) : Issue
return Ojs\JournalBundle\Entity\Issue

patch() public method

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

post() public method

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

put() public method

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