Открытые члены | |
__construct (DataProvider ... $providers) | |
getIterator () | |
count () | |
getColumn (string $id) | |
getSelect (?array $columnIds=null, ?array $providers=null) | |
prepareEditableColumnsValues (array $values) | |
Защищенные члены | |
getProvidersColumns () | |
Columns collections.
The main task is to work with columns: reading, filtering and generating a select
statement.
createColumns
См. определение в файле columns.php строка 13
__construct | ( | DataProvider ... | $providers | ) |
DataProvider | $providers |
См. определение в файле columns.php строка 25
|
final |
|
final |
Column by id.
string | $id |
См. определение в файле columns.php строка 61
|
final |
|
finalprotected |
Map of providers columns.
[$providerClass => [$column, $column, ...]]
См. определение в файле columns.php строка 106
getSelect | ( | ?array | $columnIds = null, |
?array | $providers = null ) |
Gets a list of select names for the specified columns.
Single column can use multiple fields in a query. Necessary columns will also be returned, even if they are not specified in the arguments (taking into account filtering by providers).
All columns of all providers:
Filter by columns (typical usage: show only visible columns):
Filter by providers (for example: grid contains columns from different tablets):
And both filters:
string[] | null | $columnIds | if is null , returns all columns. |
string[] | null | $providers | array with provider's class full names. If filled in, the columns will be taken only from the specified providers. ATTENTION: necessary columns from other providers will NOT BE INCLUDED in the result! |
См. определение в файле columns.php строка 177
prepareEditableColumnsValues | ( | array | $values | ) |
Returns only those values that are present in the column collection and are editable.
array | $values |
Переопределяется в ProductColumns.
См. определение в файле columns.php строка 237