PHP Class Ojs\ApiBundle\Handler\JournalHandler

Inheritance: implements Ojs\ApiBundle\Handler\JournalHandlerInterface
Mostra file Open project: ojs/ojs

Public Methods

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

Private Methods

Method Description
createJournal ( )
processForm ( Journal $entity, array $parameters, String $method = "PUT" ) : Journal 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, ApiHandlerHelper $apiHelper, Symfony\Component\HttpKernel\KernelInterface $kernel )
$om Doctrine\Common\Persistence\ObjectManager
$formFactory Symfony\Component\Form\FormFactoryInterface
$apiHelper Ojs\CoreBundle\Service\ApiHandlerHelper
$kernel Symfony\Component\HttpKernel\KernelInterface

all() public method

Get a list of Journals.
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 Journal.
public delete ( Journal $entity ) : Journal
$entity Ojs\JournalBundle\Entity\Journal
return Ojs\JournalBundle\Entity\Journal

get() public method

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

patch() public method

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

post() public method

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

put() public method

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