PHP Class WellCommerce\Bundle\CoreBundle\DataGrid\AbstractDataGrid

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\DependencyInjection\AbstractContainerAware, implements WellCommerce\Bundle\DataGridBundle\DataGridInterface
Afficher le fichier Open project: wellcommerce/wellcommerce Class Usage Examples

Protected Properties

Свойство Type Description
$booted boolean
$columns WellCommerce\Component\DataGrid\Column\ColumnCollection
$dataset WellCommerce\Component\DataSet\DataSetInterface
$eventDispatcher
$identifier string
$options WellCommerce\Component\DataGrid\Options\OptionsInterface

Méthodes publiques

Méthode Description
__construct ( WellCommerce\Component\DataSet\DataSetInterface $dataset, string $identifier, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) AbstractDataGrid constructor.
getColumns ( ) : WellCommerce\Component\DataGrid\Column\ColumnCollection
getIdentifier ( ) : string
getInstance ( ) : WellCommerce\Component\DataGrid\DataGridInterface Returns current DataGrid
getOptions ( ) : WellCommerce\Component\DataGrid\Options\OptionsInterface
loadResults ( Request $request ) : array
setColumns ( WellCommerce\Component\DataGrid\Column\ColumnCollection $columns )
setOptions ( WellCommerce\Component\DataGrid\Options\OptionsInterface $options )

Méthodes protégées

Méthode Description
configure ( ) Boots current datagrid
configureColumns ( WellCommerce\Component\DataGrid\Column\ColumnCollection $columns ) Configures DataGrid columns
configureOptions ( WellCommerce\Component\DataGrid\Options\OptionsInterface $options ) Configures DataGrid options
getActionUrl ( string $actionName ) : string Returns the absolute URL pointing to the controller action
getJavascriptFunctionName ( string $name ) : string Returns javascript function name

Method Details

__construct() public méthode

AbstractDataGrid constructor.
public __construct ( WellCommerce\Component\DataSet\DataSetInterface $dataset, string $identifier, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$dataset WellCommerce\Component\DataSet\DataSetInterface
$identifier string
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

configure() protected méthode

Boots current datagrid
protected configure ( )

configureColumns() abstract protected méthode

Configures DataGrid columns
abstract protected configureColumns ( WellCommerce\Component\DataGrid\Column\ColumnCollection $columns )
$columns WellCommerce\Component\DataGrid\Column\ColumnCollection

configureOptions() protected méthode

Configures DataGrid options
protected configureOptions ( WellCommerce\Component\DataGrid\Options\OptionsInterface $options )
$options WellCommerce\Component\DataGrid\Options\OptionsInterface

getActionUrl() protected méthode

Returns the absolute URL pointing to the controller action
protected getActionUrl ( string $actionName ) : string
$actionName string
Résultat string

getColumns() public méthode

public getColumns ( ) : WellCommerce\Component\DataGrid\Column\ColumnCollection
Résultat WellCommerce\Component\DataGrid\Column\ColumnCollection

getIdentifier() public méthode

public getIdentifier ( ) : string
Résultat string

getInstance() public méthode

Returns current DataGrid
public getInstance ( ) : WellCommerce\Component\DataGrid\DataGridInterface
Résultat WellCommerce\Component\DataGrid\DataGridInterface

getJavascriptFunctionName() protected méthode

Returns javascript function name
protected getJavascriptFunctionName ( string $name ) : string
$name string
Résultat string

getOptions() public méthode

public getOptions ( ) : WellCommerce\Component\DataGrid\Options\OptionsInterface
Résultat WellCommerce\Component\DataGrid\Options\OptionsInterface

loadResults() public méthode

public loadResults ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
Résultat array

setColumns() public méthode

public setColumns ( WellCommerce\Component\DataGrid\Column\ColumnCollection $columns )
$columns WellCommerce\Component\DataGrid\Column\ColumnCollection

setOptions() public méthode

public setOptions ( WellCommerce\Component\DataGrid\Options\OptionsInterface $options )
$options WellCommerce\Component\DataGrid\Options\OptionsInterface

Property Details

$booted protected_oe property

protected bool $booted
Résultat boolean

$columns protected_oe property

protected ColumnCollection,WellCommerce\Component\DataGrid\Column $columns
Résultat WellCommerce\Component\DataGrid\Column\ColumnCollection

$dataset protected_oe property

protected DataSetInterface,WellCommerce\Component\DataSet $dataset
Résultat WellCommerce\Component\DataSet\DataSetInterface

$eventDispatcher protected_oe property

protected $eventDispatcher

$identifier protected_oe property

protected string $identifier
Résultat string

$options protected_oe property

protected OptionsInterface,WellCommerce\Component\DataGrid\Options $options
Résultat WellCommerce\Component\DataGrid\Options\OptionsInterface