PHP Class Elcodi\Admin\PageBundle\Controller\BlogPostController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Mostra file Open project: elcodi/bamboo

Public Methods

Method Description
deleteAction ( Request $request, mixed $entity, string $redirectPath = null ) : RedirectResponse Delete a blog post
editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Page\Entity\Interfaces\PageInterface $blogPost, boolean $isValid ) : RedirectResponse Edit and Saves page
listAction ( integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array List elements of certain entity type.

Method Details

deleteAction() public method

Delete a blog post
public deleteAction ( Request $request, mixed $entity, string $redirectPath = null ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request Request
$entity mixed Entity to delete
$redirectPath string Redirect path
return Symfony\Component\HttpFoundation\RedirectResponse Redirect response

editAction() public method

Edit and Saves page
public editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Page\Entity\Interfaces\PageInterface $blogPost, boolean $isValid ) : RedirectResponse
$form Symfony\Component\Form\FormInterface Form
$blogPost Elcodi\Component\Page\Entity\Interfaces\PageInterface Page
$isValid boolean Is valid
return Symfony\Component\HttpFoundation\RedirectResponse Redirect response

listAction() public method

This action is just a wrapper, so should never get any data, as this is component responsibility
public listAction ( integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array
$page integer Page
$limit integer Limit of items per page
$orderByField string Field to order by
$orderByDirection string Direction to order by
return array Result