PHP Class Ojs\ApiBundle\Handler\JournalHandler

Inheritance: implements Ojs\ApiBundle\Handler\JournalHandlerInterface
Afficher le fichier Open project: ojs/ojs

Méthodes publiques

Méthode 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

Méthode Description
createJournal ( )
processForm ( Journal $entity, array $parameters, String $method = "PUT" ) : Journal Processes the form.
storeFile ( $file, boolean $isImage = false ) : string

Method Details

__construct() public méthode

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 méthode

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
Résultat array

delete() public méthode

Delete a Journal.
public delete ( Journal $entity ) : Journal
$entity Ojs\JournalBundle\Entity\Journal
Résultat Ojs\JournalBundle\Entity\Journal

get() public méthode

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

patch() public méthode

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

post() public méthode

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

put() public méthode

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