| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- namespace ThurData\Servers\KerioEmail\App\UI\Client\DistributionList\Providers;
- use ThurData\Servers\KerioEmail\App\Helpers\KerioManager;
- use ThurData\Servers\KerioEmail\App\Libs\Product\ProductManager;
- use ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Services\Create\CreateDistributionList;
- use ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Services\Delete\DeleteDistributionList;
- use ThurData\Servers\KerioEmail\Core\UI\ResponseTemplates\HtmlDataJsonResponse;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\DataProviders\BaseDataProvider;
- /**
- *
- * Created by PhpStorm.
- * User: ThurData
- * Date: 02.10.19
- * Time: 08:21
- * Class DeleteListDataProvider
- */
- class DeleteListDataProvider extends BaseDataProvider
- {
- public function read()
- {
- $this->data['id'] = $this->actionElementId;
- }
- public function update()
- {
- // TODO: Implement update() method.
- }
- public function delete()
- {
- /**
- * hosting id
- */
- $hid = $this->request->get('id');
-
- logModuleCall(
- 'kerioEmail',
- __FUNCTION__,
- $this->data,
- 'Debug add ML',
- $this
- );
- return (new HtmlDataJsonResponse())->setMessageAndTranslate('distributionListHasBeenDeleted')->setStatusSuccess();
- }
- public function massDelete()
- {
- /**
- * hosting id
- */
- $hid = $this->request->get('id');
- /**
- *
- */
- foreach($this->request->get('massActions') as $id)
- {
-
- logModuleCall(
- 'kerioEmail',
- __FUNCTION__,
- $id,
- 'Debug add ML',
- $hid
- );
- }
- return (new HtmlDataJsonResponse())->setMessageAndTranslate('massDistributionListHasBeenDeleted')->setStatusSuccess();
- }
- }
|