Mercurial > packages > magicforger
comparison src/Generator/View/ViewGenerator.php @ 26:555bfaa500ac codex
Big update for view creation based on the column type.
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Thu, 15 May 2025 21:50:38 -0400 |
| parents | 1a717c7b211f |
| children |
comparison
equal
deleted
inserted
replaced
| 25:1a717c7b211f | 26:555bfaa500ac |
|---|---|
| 88 */ | 88 */ |
| 89 protected function getStub() {} | 89 protected function getStub() {} |
| 90 | 90 |
| 91 protected function createIndexView() | 91 protected function createIndexView() |
| 92 { | 92 { |
| 93 $this->call('mf:index_view', ['table' => $this->getTableInput()]); | 93 $this->call('mf:index_view', ['table' => $this->getTableInput(), '--fresh' => $this->option('fresh')]); |
| 94 } | 94 } |
| 95 | 95 |
| 96 protected function createCreateEditView() | 96 protected function createCreateEditView() |
| 97 { | 97 { |
| 98 $this->call('mf:create_edit_view', ['table' => $this->getTableInput()]); | 98 $this->call('mf:create_edit_view', ['table' => $this->getTableInput(), '--fresh' => $this->option('fresh')]); |
| 99 } | 99 } |
| 100 | 100 |
| 101 protected function createShowView() | 101 protected function createShowView() |
| 102 { | 102 { |
| 103 $this->call('mf:show_view', ['table' => $this->getTableInput()]); | 103 $this->call('mf:show_view', ['table' => $this->getTableInput(), '--fresh' => $this->option('fresh')]); |
| 104 } | 104 } |
| 105 } | 105 } |
