PHP Class Ojs\ApiBundle\Handler\PostHandler

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 )
all ( integer $limit = 5, integer $offset ) : array Get a list of Posts.
delete ( AdminPost $entity ) : AdminPost Delete a Post.
get ( mixed $id ) : AdminPost Get a Post.
patch ( AdminPost $entity, array $parameters ) : AdminPost Partially update a Post.
post ( array $parameters ) : AdminPost Create a new Post.
put ( AdminPost $entity, array $parameters ) : AdminPost Edit a Post.

Private Methods

Méthode Description
createPost ( )
processForm ( AdminPost $entity, array $parameters, String $method = "PUT" ) : AdminPost Processes the form.

Method Details

__construct() public méthode

public __construct ( Doctrine\Common\Persistence\ObjectManager $om, $entityClass, Symfony\Component\Form\FormFactoryInterface $formFactory )
$om Doctrine\Common\Persistence\ObjectManager
$formFactory Symfony\Component\Form\FormFactoryInterface

all() public méthode

Get a list of Posts.
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 Post.
public delete ( AdminPost $entity ) : AdminPost
$entity Ojs\AdminBundle\Entity\AdminPost
Résultat Ojs\AdminBundle\Entity\AdminPost

get() public méthode

Get a Post.
public get ( mixed $id ) : AdminPost
$id mixed
Résultat Ojs\AdminBundle\Entity\AdminPost

patch() public méthode

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

post() public méthode

Create a new Post.
public post ( array $parameters ) : AdminPost
$parameters array
Résultat Ojs\AdminBundle\Entity\AdminPost

put() public méthode

Edit a Post.
public put ( AdminPost $entity, array $parameters ) : AdminPost
$entity Ojs\AdminBundle\Entity\AdminPost
$parameters array
Résultat Ojs\AdminBundle\Entity\AdminPost