TypeFieldAssembler extends FieldAssembler
Assembles row values for specific columns.
Depending on the required functionality, need to override one (or several) of the methods:
- prepareColumn
- prepareRow
- prepareRows
For more information, see the description of each of the methods.
Table of Contents
Methods
- __construct() : mixed
- clone() : FieldAssembler
- Clone instance.
- getColumnIds() : array<string|int, string>
- prepareRows() : array<string|int, mixed>
- Preparation of all rows at once.
Methods
__construct()
public
__construct(array<string|int, string> $columnIds[, Settings|null $settings = null ]) : mixed
Parameters
- $columnIds : array<string|int, string>
-
columns to be processed
- $settings : Settings|null = null
-
if not used may be
null
clone()
Clone instance.
public
clone(array<string|int, mixed> $columnIds) : FieldAssembler
Column ids is read-only, so to change them, you need to create a new object.
Parameters
- $columnIds : array<string|int, mixed>
Return values
FieldAssemblergetColumnIds()
public
final getColumnIds() : array<string|int, string>
Return values
array<string|int, string>prepareRows()
Preparation of all rows at once.
public
prepareRows(array<string|int, mixed> $rowList) : array<string|int, mixed>
If you need to process all rows at once, override this method.
See also prepareRow
method.
Parameters
- $rowList : array<string|int, mixed>