PHP Класс Elcodi\Admin\RuleBundle\Controller\RuleController

Наследование: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Показать файл Открыть проект

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

Метод Описание
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\Rule\Entity\Interfaces\RuleInterface $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 rule group
newAction ( ) : array New element action
newComponentAction ( Symfony\Component\Form\FormView $formView ) : array New element action
saveAction ( Elcodi\Component\Rule\Entity\Interfaces\RuleInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse Save new element action
updateAction ( Elcodi\Component\Rule\Entity\Interfaces\RuleInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse Updated edited element action
viewAction ( integer $id ) : array View element action.
viewComponentAction ( Elcodi\Component\Rule\Entity\Interfaces\RuleInterface $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\Rule\Entity\Interfaces\RuleInterface $entity, Symfony\Component\Form\FormView $formView ) : array
$entity Elcodi\Component\Rule\Entity\Interfaces\RuleInterface 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 rule 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\Rule\Entity\Interfaces\RuleInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse
$entity Elcodi\Component\Rule\Entity\Interfaces\RuleInterface 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\Rule\Entity\Interfaces\RuleInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse
$entity Elcodi\Component\Rule\Entity\Interfaces\RuleInterface 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\Rule\Entity\Interfaces\RuleInterface $entity ) : array
$entity Elcodi\Component\Rule\Entity\Interfaces\RuleInterface Entity to view
Результат array Result