PHP Class Ojs\ApiBundle\Handler\PageHandler

Mostra file Open project: ojs/ojs

Public Methods

Method Description
__construct ( Doctrine\Common\Persistence\ObjectManager $om, $entityClass, Symfony\Component\Form\FormFactoryInterface $formFactory )
all ( integer $limit = 5, integer $offset ) : array Get a list of Pages.
delete ( AdminPage $entity ) : AdminPage Delete a Page.
get ( mixed $id ) : AdminPage Get a Page.
patch ( AdminPage $entity, array $parameters ) : AdminPage Partially update a Page.
post ( array $parameters ) : AdminPage Create a new Page.
put ( AdminPage $entity, array $parameters ) : AdminPage Edit a Page.

Private Methods

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

Method Details

__construct() public method

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 method

Get a list of Pages.
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 Page.
public delete ( AdminPage $entity ) : AdminPage
$entity Ojs\AdminBundle\Entity\AdminPage
return Ojs\AdminBundle\Entity\AdminPage

get() public method

Get a Page.
public get ( mixed $id ) : AdminPage
$id mixed
return Ojs\AdminBundle\Entity\AdminPage

patch() public method

Partially update a Page.
public patch ( AdminPage $entity, array $parameters ) : AdminPage
$entity Ojs\AdminBundle\Entity\AdminPage
$parameters array
return Ojs\AdminBundle\Entity\AdminPage

post() public method

Create a new Page.
public post ( array $parameters ) : AdminPage
$parameters array
return Ojs\AdminBundle\Entity\AdminPage

put() public method

Edit a Page.
public put ( AdminPage $entity, array $parameters ) : AdminPage
$entity Ojs\AdminBundle\Entity\AdminPage
$parameters array
return Ojs\AdminBundle\Entity\AdminPage