| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class AdminEmailTemplatesController extends CBController |
||
| 8 | { |
||
| 9 | public function cbInit() |
||
| 10 | { |
||
| 11 | $this->table = 'cms_email_templates'; |
||
| 12 | $this->titleField = 'name'; |
||
| 13 | $this->limit = 20; |
||
| 14 | $this->orderby = ['id' => 'desc']; |
||
| 15 | |||
| 16 | $this->setButtons(); |
||
| 17 | |||
| 18 | $this->setColumns(); |
||
| 19 | |||
| 20 | $this->form = EmailTemplateForm::makeForm(); |
||
| 21 | } |
||
| 22 | |||
| 23 | private function setButtons() |
||
| 24 | { |
||
| 25 | $this->buttonActionStyle = 'button_icon'; |
||
| 26 | $this->buttonExport = false; |
||
| 27 | $this->buttonImport = false; |
||
| 28 | } |
||
| 29 | |||
| 30 | private function setColumns() |
||
| 35 | ]; |
||
| 36 | } |
||
| 37 | //By the way, you can still create your own method in here... :) |
||
| 40 |