| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace ThurData\Servers\KerioEmail\App\UI\Client\Setting\Modals;
- use ThurData\Servers\KerioEmail\App\UI\Client\Setting\Forms\InfoForm;
- use ThurData\Servers\KerioEmail\Core\UI\Interfaces\ClientArea;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ModalActionButtons\BaseCancelButton;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ModalActionButtons\BaseRedirectButton;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Modals\BaseEditModal;
- class InfoModal extends BaseEditModal implements ClientArea
- {
- protected $id = 'infoModal';
- protected $name = 'infoModal';
- protected $title = 'infoModal';
- public function initContent()
- {
- $this->initIds('infoModal');
- $this->addForm(new InfoForm());
- }
- protected function initActionButtons()
- {
- if (!empty($this->actionButtons))
- {
- return $this;
- }
- $this->addActionButton(new BaseCancelButton());
- $transferButton = new BaseRedirectButton('transferDomain');
- $transferButton->setRawUrl('card.php?');
- $transferButton->addRedirectParam('a','add');
- $transferButton->addRedirectParam('domain','transfer');
- $transferButton->addRedirectParam('sld','MAILDOMAIN');
- $this->addActionButton($transferButton);
- return $this;
- }
- }
|