Definition at line 14 of file GridStructure.php.
◆ __construct()
- Parameters
-
ResourceConnection | $resource | |
FlatScopeResolver | $flatScopeResolver | |
array | $columnTypesMap | |
Definition at line 44 of file GridStructure.php.
49 $this->resource = $resource;
50 $this->flatScopeResolver = $flatScopeResolver;
51 $this->columnTypesMap = array_merge($this->columnTypesMap,
$columnTypesMap);
◆ create()
create |
( |
|
$index, |
|
|
array |
$fields, |
|
|
array |
$dimensions = [] |
|
) |
| |
◆ createFlatTable()
createFlatTable |
( |
|
$tableName, |
|
|
array |
$fields |
|
) |
| |
|
protected |
- Parameters
-
string | $tableName | |
array | $fields | |
- Exceptions
-
Definition at line 85 of file GridStructure.php.
93 [
'unsigned' =>
true,
'nullable' =>
false,
'primary' =>
true],
96 $searchableFields = [];
98 if ($field[
'type'] ===
'searchable') {
99 $searchableFields[] = $field[
'name'];
101 $columnMap = isset($field[
'dataType']) && isset($this->columnTypesMap[$field[
'dataType']])
102 ? $this->columnTypesMap[$field[
'dataType']]
103 : [
'type' => $field[
'dataType'],
'size' => isset($field[
'size']) ? $field[
'size'] :
null];
104 $name = $field[
'name'];
105 $type = $columnMap[
'type'];
106 $size = $columnMap[
'size'];
107 if ($field[
'type'] ===
'filterable') {
117 $this->resource->getIdxName(
const INDEX_TYPE_FULLTEXT
if(!isset($_GET['name'])) $name
◆ delete()
delete |
( |
|
$index, |
|
|
array |
$dimensions = [] |
|
) |
| |
◆ $columnTypesMap
The documentation for this class was generated from the following file: