PHP Класс Elcodi\Admin\AttributeBundle\Controller\AttributeController

Наследование: 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 ( Request $request, Symfony\Component\Form\FormInterface $form, Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface $attribute, boolean $isValid ) : RedirectResponse Edit and Saves attribute
enableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array Enable entity
listAction ( integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array List elements of certain entity type.

Защищенные методы

Метод Описание
evaluateAttributeValues ( Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface $attribute, array $values = [] ) Given an attribute and an array of Values, perform database and relation stuff

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

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() публичный Метод

Edit and Saves attribute
public editAction ( Request $request, Symfony\Component\Form\FormInterface $form, Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface $attribute, boolean $isValid ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request Request
$form Symfony\Component\Form\FormInterface Form
$attribute Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface Attribute
$isValid boolean Is valid
Результат Symfony\Component\HttpFoundation\RedirectResponse Redirect response

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

evaluateAttributeValues() защищенный Метод

Given an attribute and an array of Values, perform database and relation stuff
protected evaluateAttributeValues ( Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface $attribute, array $values = [] )
$attribute Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface Attribute
$values array Values

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

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