PHP Class Ojs\ApiBundle\Handler\JournalThemeHandler

Show file Open project: ojs/ojs

Public Methods

Method Description
__construct ( Doctrine\Common\Persistence\ObjectManager $om, $entityClass, Symfony\Component\Form\FormFactoryInterface $formFactory, JournalService $journalService )
all ( integer $limit = 5, integer $offset ) : array Get a list of JournalThemes.
delete ( JournalTheme $entity ) : JournalTheme Delete a JournalTheme.
get ( mixed $id ) : JournalTheme Get a JournalTheme.
patch ( JournalTheme $entity, array $parameters ) : JournalTheme Partially update a JournalTheme.
post ( array $parameters ) : JournalTheme Create a new JournalTheme.
put ( JournalTheme $entity, array $parameters ) : JournalTheme Edit a JournalTheme.

Private Methods

Method Description
createJournalTheme ( )
processForm ( JournalTheme $entity, array $parameters, String $method = "PUT" ) : JournalTheme Processes the form.

Method Details

__construct() public method

public __construct ( Doctrine\Common\Persistence\ObjectManager $om, $entityClass, Symfony\Component\Form\FormFactoryInterface $formFactory, JournalService $journalService )
$om Doctrine\Common\Persistence\ObjectManager
$formFactory Symfony\Component\Form\FormFactoryInterface
$journalService Ojs\JournalBundle\Service\JournalService

all() public method

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

get() public method

Get a JournalTheme.
public get ( mixed $id ) : JournalTheme
$id mixed
return Ojs\JournalBundle\Entity\JournalTheme

patch() public method

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

post() public method

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

put() public method

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