| 1 | <?php |
||
| 9 | class RowMarkup extends AbstractField |
||
| 10 | { |
||
| 11 | protected $fields = []; |
||
| 12 | |||
| 13 | 3 | public function fields(array $fields) |
|
| 19 | |||
| 20 | 4 | public function getFields(): array |
|
| 24 | |||
| 25 | protected $hidden = [ |
||
| 26 | 'list' => true, |
||
| 27 | 'edit' => false, |
||
| 28 | 'create' => false, |
||
| 29 | ]; |
||
| 30 | |||
| 31 | 1 | public function shouldSkip(Request $request) |
|
| 35 | |||
| 36 | 2 | public function isMarkupRow() |
|
| 40 | |||
| 41 | 1 | public function getListValue($model) |
|
| 45 | |||
| 46 | // TODO: interface type-hinting |
||
| 47 | 1 | public function prepare(CRUD $crud) |
|
| 48 | { |
||
| 49 | 1 | foreach ($this->fields as $field) { |
|
| 50 | 1 | $field->prepare($crud); |
|
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | 1 | public function getEditFormValue($model) |
|
| 62 | |||
| 63 | 1 | public function getCreateFormValue() |
|
| 70 | } |
||
| 71 |