PHP 클래스 Ojs\ApiBundle\Handler\JournalArticleHandler

파일 보기 프로젝트 열기: ojs/ojs

공개 메소드들

메소드 설명
__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 Articles.
delete ( Article $entity ) : Article Delete a Article.
get ( mixed $id, boolean $normalize = false ) : Article Get a Article.
patch ( Article $entity, array $parameters ) : Article Partially update a Article.
post ( array $parameters ) : Article Create a new Article.
put ( Article $entity, array $parameters ) : Article Edit a Article.

비공개 메소드들

메소드 설명
createArticle ( )
processForm ( Article $entity, array $parameters, String $method = "PUT" ) : Article Processes the form.
storeFile ( $file, $isImage = false )

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

Get a list of Articles.
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 Article.
public delete ( Article $entity ) : Article
$entity Ojs\JournalBundle\Entity\Article
리턴 Ojs\JournalBundle\Entity\Article

get() 공개 메소드

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

patch() 공개 메소드

Partially update a Article.
public patch ( Article $entity, array $parameters ) : Article
$entity Ojs\JournalBundle\Entity\Article
$parameters array
리턴 Ojs\JournalBundle\Entity\Article

post() 공개 메소드

Create a new Article.
public post ( array $parameters ) : Article
$parameters array
리턴 Ojs\JournalBundle\Entity\Article

put() 공개 메소드

Edit a Article.
public put ( Article $entity, array $parameters ) : Article
$entity Ojs\JournalBundle\Entity\Article
$parameters array
리턴 Ojs\JournalBundle\Entity\Article