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

Показать файл Открыть проект

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

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

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

Метод Описание
createPost ( )
processForm ( AdminPost $entity, array $parameters, String $method = "PUT" ) : AdminPost Processes the form.

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

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

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

all() публичный Метод

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

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

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

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

Get a Post.
public get ( mixed $id ) : AdminPost
$id mixed
Результат Ojs\AdminBundle\Entity\AdminPost

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

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

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

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

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

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