PHP Class Elcodi\Admin\AttributeBundle\Controller\Component\AttributeComponentController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
显示文件 Open project: elcodi/bamboo

Public Methods

Method Description
editComponentAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface $attribute ) : array New element component action
listComponentAction ( Doctrine\ORM\Tools\Pagination\Paginator $paginator, Mmoreram\ControllerExtraBundle\ValueObject\PaginatorAttributes $paginatorAttributes, integer $page, integer $limit ) : array Component for entity list.

Protected Methods

Method Description
getValuesSplittedByComma ( array $values = null ) : string Get values splitted by comma

Method Details

editComponentAction() public method

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

getValuesSplittedByComma() protected method

Get values splitted by comma
protected getValuesSplittedByComma ( array $values = null ) : string
$values array Values
return string Values splitted by comma

listComponentAction() public method

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 ) : 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
return array Result