PHP 클래스 Elcodi\Admin\BannerBundle\Controller\BannerController

상속: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
파일 보기 프로젝트 열기: elcodi/bamboo

공개 메소드들

메소드 설명
deleteAction ( Request $request, mixed $entity, string $redirectPath = null ) : RedirectResponse Delete entity
disableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array Disable entity
editAction ( integer $id ) : array New element action
editComponentAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerInterface $entity, Symfony\Component\Form\FormView $formView ) : array New element component action
enableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array Enable entity
listAction ( Request $request, integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array List elements of certain entity type.
listComponentAction ( Doctrine\ORM\Tools\Pagination\Paginator $paginator, Mmoreram\ControllerExtraBundle\ValueObject\PaginatorAttributes $paginatorAttributes, integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array Component for entity list.
navAction ( ) : array Nav for banner group
newAction ( ) : array New element action
newComponentAction ( Symfony\Component\Form\FormView $formView ) : array New element action
saveAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse Save new element action
updateAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse Updated edited element action
viewAction ( integer $id ) : array View element action.
viewComponentAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerInterface $entity ) : array Component for entity view

메소드 상세

deleteAction() 공개 메소드

Delete entity
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
리턴 Symfony\Component\HttpFoundation\RedirectResponse Redirect response

disableAction() 공개 메소드

Disable entity
public disableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array
$request Symfony\Component\HttpFoundation\Request Request
$entity Elcodi\Component\Core\Entity\Interfaces\EnabledInterface Entity to disable
리턴 array Result

editAction() 공개 메소드

This action is just a wrapper, so should never get any data, as this is component responsibility
public editAction ( integer $id ) : array
$id integer Entity id
리턴 array Result

editComponentAction() 공개 메소드

As a component, this action should not return all the html macro, but only the specific component
public editComponentAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerInterface $entity, Symfony\Component\Form\FormView $formView ) : array
$entity Elcodi\Component\Banner\Entity\Interfaces\BannerInterface Entity
$formView Symfony\Component\Form\FormView Form view
리턴 array Result

enableAction() 공개 메소드

Enable entity
public enableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array
$request Symfony\Component\HttpFoundation\Request Request
$entity Elcodi\Component\Core\Entity\Interfaces\EnabledInterface Entity to enable
리턴 array Result

listAction() 공개 메소드

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

listComponentAction() 공개 메소드

As a component, this action should not return all the html macro, but only the specific component
public listComponentAction ( Doctrine\ORM\Tools\Pagination\Paginator $paginator, Mmoreram\ControllerExtraBundle\ValueObject\PaginatorAttributes $paginatorAttributes, integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array
$paginator Doctrine\ORM\Tools\Pagination\Paginator Paginator instance
$paginatorAttributes Mmoreram\ControllerExtraBundle\ValueObject\PaginatorAttributes Paginator attributes
$page integer Page
$limit integer Limit of items per page
$orderByField string Field to order by
$orderByDirection string Direction to order by
리턴 array Result

navAction() 공개 메소드

Nav for banner group
public navAction ( ) : array
리턴 array Result

newAction() 공개 메소드

This action is just a wrapper, so should never get any data, as this is component responsibility
public newAction ( ) : array
리턴 array Result

newComponentAction() 공개 메소드

As a component, this action should not return all the html macro, but only the specific component
public newComponentAction ( Symfony\Component\Form\FormView $formView ) : array
$formView Symfony\Component\Form\FormView Form view
리턴 array Result

saveAction() 공개 메소드

Should be POST
public saveAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse
$entity Elcodi\Component\Banner\Entity\Interfaces\BannerInterface Entity to save
$form Symfony\Component\Form\FormInterface Form view
$isValid boolean Request handle is valid
리턴 Symfony\Component\HttpFoundation\RedirectResponse Redirect response

updateAction() 공개 메소드

Should be POST
public updateAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse
$entity Elcodi\Component\Banner\Entity\Interfaces\BannerInterface Entity to update
$form Symfony\Component\Form\FormInterface Form view
$isValid boolean Request handle is valid
리턴 Symfony\Component\HttpFoundation\RedirectResponse Redirect response

viewAction() 공개 메소드

This action is just a wrapper, so should never get any data, as this is component responsibility
public viewAction ( integer $id ) : array
$id integer Entity id
리턴 array Result

viewComponentAction() 공개 메소드

As a component, this action should not return all the html macro, but only the specific component
public viewComponentAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerInterface $entity ) : array
$entity Elcodi\Component\Banner\Entity\Interfaces\BannerInterface Entity to view
리턴 array Result