PHP Class Ojs\ApiBundle\Handler\JournalIssueHandler

Mostrar archivo 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 Issues.
delete ( Issue $entity ) : Issue Delete a Issue.
get ( mixed $id, boolean $normalize = false ) : Issue Get a Issue.
patch ( Issue $entity, array $parameters ) : Issue Partially update a Issue.
post ( array $parameters ) : Issue Create a new Issue.
put ( Issue $entity, array $parameters ) : Issue Edit a Issue.

Private Methods

Method Description
createIssue ( )
processForm ( Issue $entity, array $parameters, String $method = "PUT" ) : Issue Processes the form.
storeFile ( $file, boolean $isImage = false ) : string

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 Issues.
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 Issue.
public delete ( Issue $entity ) : Issue
$entity Ojs\JournalBundle\Entity\Issue
return Ojs\JournalBundle\Entity\Issue

get() public method

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

patch() public method

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

post() public method

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

put() public method

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