1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
DeleteJobsCommand.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Socialnetwork\Collab\Onboarding\Command\Type;
6
7use Bitrix\Main\Result;
8use Bitrix\Main\Validation\Rule\AtLeastOnePropertyNotEmpty;
9use Bitrix\Socialnetwork\Collab\Onboarding\Command\AbstractCommand;
10use Bitrix\Socialnetwork\Collab\Onboarding\Command\Handler\DeleteJobCollectionHandler;
11use Bitrix\Socialnetwork\Collab\Onboarding\Internals\Validation\Rule\ArrayOfJobTypes;
12use Bitrix\Socialnetwork\Collab\Onboarding\Internals\Validation\Rule\ArrayOfPositiveNumbers;
13
14#[AtLeastOnePropertyNotEmpty(['jobIds', 'userIds', 'collabIds'])]
16{
17 #[ArrayOfPositiveNumbers]
18 public readonly array $jobIds;
19
20 #[ArrayOfJobTypes]
21 public readonly array $jobTypes;
22
23 #[ArrayOfPositiveNumbers]
24 public readonly array $userIds;
25
26 #[ArrayOfPositiveNumbers]
27 public readonly array $collabIds;
28
38 public function __construct(array $filter = [])
39 {
40 $this->jobIds = $filter['JOB_IDS'] ?? [];
41 $this->jobTypes = $filter['JOB_TYPES'] ?? [];
42 $this->userIds = $filter['USER_IDS'] ?? [];
43 $this->collabIds = $filter['COLLAB_IDS'] ?? [];
44
45 parent::__construct();
46 }
47
48 protected function execute(): Result
49 {
50 $handler = new DeleteJobCollectionHandler();
51
52 return $handler($this);
53 }
54}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$filter
Определения iblock_catalog_list.php:54