MassDeleteListForm.php 1012 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Class MassDeleteListForm
  4. * User: ThurData
  5. * Date: 2019-10-11
  6. * Time: 11:23
  7. * @package ThurData\Servers\KerioEmail\App\UI\Client\DistributionList\Forms
  8. */
  9. namespace ThurData\Servers\KerioEmail\App\UI\Client\DistributionList\Forms;
  10. use ThurData\Servers\KerioEmail\App\UI\Client\DistributionList\Providers\DeleteListDataProvider;
  11. use ThurData\Servers\KerioEmail\Core\UI\Interfaces\ClientArea;
  12. use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\BaseForm;
  13. class MassDeleteListForm extends BaseForm implements ClientArea
  14. {
  15. protected $id = 'massDeleteListForm';
  16. protected $name = 'massDeleteListForm';
  17. protected $title = 'massDeleteListForm';
  18. protected function getDefaultActions()
  19. {
  20. return ['massDelete'];
  21. }
  22. public function initContent()
  23. {
  24. $this->setFormType('massDelete');
  25. $this->dataProvider = new DeleteListDataProvider();
  26. $this->setConfirmMessage('MassDeleteListFormConfirm');
  27. $this->loadDataToForm();
  28. }
  29. }