class DataGrid

Class DataGrid

Properties

protected ACL $acl
protected Translator $translator
protected DataGridRepository $repository
protected array $results
protected string $resourcePathEdit
protected string $resourcePathDelete
protected string $identifier
protected int $recordsPerPage
protected bool $enableMassAction
protected bool $enableOptions
protected ColumnPriorityQueue $columns
protected AbstractColumnRenderer[] $columnRenderer
protected string $primaryKey

Methods

__construct(ACL $acl, Translator $translator)

No description

$this
registerColumnRenderer(ColumnRendererInterface $columnRenderer)

No description

$this
setRepository(DataGridRepository $repository)

No description

$this
setResults(array $results)

No description

$this
setResourcePathEdit(string $resourcePathEdit)

No description

$this
setResourcePathDelete(string $resourcePathDelete)

No description

$this
setRecordsPerPage(int $recordsPerPage)

No description

$this
setEnableMassAction(boolean $enableMassAction)

No description

$this
setEnableOptions(boolean $enableOptions)

No description

$this
setIdentifier(string $identifier)

No description

$this
addColumn(array $columnData, int $priority)

No description

array
render()

No description

string
renderTableHeader()

No description

string
mapTableColumnsToDbFields()

No description

array
generateDataTableConfig()

No description

addDefaultColumns(bool $canDelete, bool $canEdit)

No description

findPrimaryKey()

Finds the primary key column

array
fetchDbResults()

No description

int
countDbResults()

No description

Details

at line 76
__construct(ACL $acl, Translator $translator)

Parameters

ACL $acl
Translator $translator

at line 90
$this registerColumnRenderer(ColumnRendererInterface $columnRenderer)

Parameters

ColumnRendererInterface $columnRenderer

Return Value

$this

at line 102
$this setRepository(DataGridRepository $repository)

Parameters

DataGridRepository $repository

Return Value

$this

at line 114
$this setResults(array $results)

Parameters

array $results

Return Value

$this

at line 126
$this setResourcePathEdit(string $resourcePathEdit)

Parameters

string $resourcePathEdit

Return Value

$this

at line 138
$this setResourcePathDelete(string $resourcePathDelete)

Parameters

string $resourcePathDelete

Return Value

$this

at line 150
$this setRecordsPerPage(int $recordsPerPage)

Parameters

int $recordsPerPage

Return Value

$this

at line 162
$this setEnableMassAction(boolean $enableMassAction)

Parameters

boolean $enableMassAction

Return Value

$this

at line 174
$this setEnableOptions(boolean $enableOptions)

Parameters

boolean $enableOptions

Return Value

$this

at line 185
$this setIdentifier(string $identifier)

Parameters

string $identifier

Return Value

$this

at line 198
$this addColumn(array $columnData, int $priority)

Parameters

array $columnData
int $priority

Return Value

$this

at line 225
array render()

Return Value

array

at line 246
protected string renderTableHeader()

Return Value

string

at line 265
protected string mapTableColumnsToDbFields()

Return Value

string

at line 288
protected array generateDataTableConfig()

Return Value

array

at line 324
protected addDefaultColumns(bool $canDelete, bool $canEdit)

Parameters

bool $canDelete
bool $canEdit

at line 357
protected findPrimaryKey()

Finds the primary key column

at line 370
protected array fetchDbResults()

Return Value

array

at line 382
int countDbResults()

Return Value

int