PHP Class Ojs\ApiBundle\Handler\JournalArticleAuthorHandler

ファイルを表示 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 ArticleAuthors.
delete ( ArticleAuthor $entity ) : ArticleAuthor Delete a ArticleAuthor.
get ( mixed $id ) : ArticleAuthor Get a ArticleAuthor.
getArticle ( ) : Article Get Article.
patch ( ArticleAuthor $entity, array $parameters ) : ArticleAuthor Partially update a ArticleAuthor.
post ( array $parameters ) : ArticleAuthor Create a new ArticleAuthor.
put ( ArticleAuthor $entity, array $parameters ) : ArticleAuthor Edit a ArticleAuthor.

Private Methods

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

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

get() public method

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

getArticle() public method

Get Article.
public getArticle ( ) : Article
return Ojs\JournalBundle\Entity\Article

patch() public method

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

post() public method

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

put() public method

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