| @@ 68-79 (lines=12) @@ | ||
| 65 | ], $gridConfig); |
|
| 66 | ||
| 67 | $columns = []; |
|
| 68 | foreach ($gridConfig['columns'] as $columnName => $columnConfig) { |
|
| 69 | $columnConfig = $this->resolveConfig([ |
|
| 70 | 'type' => null, |
|
| 71 | 'options' => [], |
|
| 72 | ], $columnConfig); |
|
| 73 | ||
| 74 | $columns[$columnName] = new ColumnMetadata( |
|
| 75 | $columnName, |
|
| 76 | $columnConfig['type'], |
|
| 77 | $columnConfig['options'] |
|
| 78 | ); |
|
| 79 | } |
|
| 80 | ||
| 81 | $filters = []; |
|
| 82 | foreach ($gridConfig['filters'] as $filterName => $filterConfig) { |
|
| @@ 98-109 (lines=12) @@ | ||
| 95 | } |
|
| 96 | ||
| 97 | $actions = []; |
|
| 98 | foreach ($gridConfig['actions'] as $actionName => $actionConfig) { |
|
| 99 | $actionConfig = $this->resolveConfig([ |
|
| 100 | 'type' => null, |
|
| 101 | 'options' => [], |
|
| 102 | ], $actionConfig); |
|
| 103 | ||
| 104 | $actions[$actionName] = new ActionMetadata( |
|
| 105 | $actionName, |
|
| 106 | $actionConfig['type'], |
|
| 107 | $actionConfig['options'] |
|
| 108 | ); |
|
| 109 | } |
|
| 110 | ||
| 111 | $grids[$gridName] = new GridMetadata( |
|
| 112 | $gridName, |
|