1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
WorkflowStateFilter.php
См. документацию.
1<?php
2
4
6
8{
9 public const PRESET_IN_WORK = 'in_work';
10 public const PRESET_STARTED = 'started';
11 public const PRESET_HAS_TASK = 'has_task';
12 public const PRESET_ALL_COMPLETED = 'all_completed';
13 public const PRESET_ACTIVE_TASK = 'active_task';
14 public const PRESET_COMMENT = 'comment';
15 public const PRESET_DEFAULT = self::PRESET_IN_WORK;
16
17 public static function getPresetList(): array
18 {
19 return [
20 [
21 'id' => static::PRESET_IN_WORK,
22 'name' => Loc::getMessage('BIZPROC_API_DATA_WORKFLOW_STATE_FILTER_PRESET_IN_WORK'),
23 'default' => true,
24 ],
25 [
26 'id' => static::PRESET_STARTED,
27 'name' => Loc::getMessage('BIZPROC_API_DATA_WORKFLOW_STATE_FILTER_PRESET_STARTED'),
28 ],
29 [
30 'id' => static::PRESET_HAS_TASK,
31 'name' => Loc::getMessage('BIZPROC_API_DATA_WORKFLOW_STATE_FILTER_PRESET_HAS_TASK_MSGVER_1'),
32 ],
33 [
34 'id' => static::PRESET_ALL_COMPLETED,
35 'name' => Loc::getMessage('BIZPROC_API_DATA_WORKFLOW_STATE_FILTER_PRESET_ALL_COMPLETED'),
36 ],
37 [
38 'id' => static::PRESET_ACTIVE_TASK,
39 'name' => Loc::getMessage('BIZPROC_API_DATA_WORKFLOW_STATE_FILTER_PRESET_ACTIVE_TASK'),
40 ],
41 [
42 'id' => static::PRESET_COMMENT,
43 'name' => Loc::getMessage('BIZPROC_API_DATA_WORKFLOW_STATE_FILTER_PRESET_COMMENT'),
44 ],
45 ];
46 }
47
48 public static function isDefined(string $presetId): bool
49 {
50 return in_array($presetId, array_column(static::getPresetList(), 'id'), true);
51 }
52}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804