| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class LevelCrudController extends CrudController |
||
| 14 | { |
||
| 15 | use ListOperation; |
||
|
|
|||
| 16 | use CreateOperation; |
||
| 17 | use UpdateOperation; |
||
| 18 | |||
| 19 | public function setup() |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function setupListOperation() |
||
| 35 | } |
||
| 36 | |||
| 37 | protected function setupCreateOperation() |
||
| 38 | { |
||
| 39 | CRUD::setValidation(StoreRequest::class); |
||
| 40 | CRUD::addField(['name' => 'name', |
||
| 41 | 'label' => 'Name', |
||
| 42 | 'type' => 'text', ]); |
||
| 43 | CRUD::addField(['name' => 'lms_id', |
||
| 44 | 'label' => 'LMS code', |
||
| 45 | 'type' => 'text', ],); |
||
| 46 | } |
||
| 47 | |||
| 48 | protected function setupUpdateOperation() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |