PHP Класс Ojs\ApiBundle\Handler\JournalHandler

Наследование: implements Ojs\ApiBundle\Handler\JournalHandlerInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
createJournal ( )
processForm ( Journal $entity, array $parameters, String $method = "PUT" ) : Journal Processes the form.
storeFile ( $file, boolean $isImage = false ) : string

Описание методов

__construct() публичный метод

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() публичный метод

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
Результат array

delete() публичный метод

Delete a Journal.
public delete ( Journal $entity ) : Journal
$entity Ojs\JournalBundle\Entity\Journal
Результат Ojs\JournalBundle\Entity\Journal

get() публичный метод

Get a Journal.
public get ( mixed $id, boolean $normalize = false ) : Journal
$id mixed
$normalize boolean
Результат Ojs\JournalBundle\Entity\Journal

patch() публичный метод

Partially update a Journal.
public patch ( Journal $entity, array $parameters ) : Journal
$entity Ojs\JournalBundle\Entity\Journal
$parameters array
Результат Ojs\JournalBundle\Entity\Journal

post() публичный метод

Create a new Journal.
public post ( array $parameters ) : Journal
$parameters array
Результат Ojs\JournalBundle\Entity\Journal

put() публичный метод

Edit a Journal.
public put ( Journal $entity, array $parameters ) : Journal
$entity Ojs\JournalBundle\Entity\Journal
$parameters array
Результат Ojs\JournalBundle\Entity\Journal