1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
workflowtemplatedrafttable.php
См. документацию.
1<?php
2
3namespace Bitrix\Bizproc\Workflow\Template;
4
5use Bitrix\Main\ORM;
6use Bitrix\Main\ORM\Data\DataManager;
7
25{
26 public const STATUS_DRAFT = 0;
27 public const STATUS_AUTOSAVE = 1;
28
29 public static function getTableName(): string
30 {
31 return 'b_bp_workflow_template_draft';
32 }
33
34 public static function getMap(): array
35 {
36 return [
37 (new ORM\Fields\IntegerField('ID'))
38 ->configurePrimary()
39 ->configureAutocomplete()
40 ,
41 (new ORM\Fields\StringField('MODULE_ID'))
42 ->configureRequired()
43 ,
44 (new ORM\Fields\StringField('ENTITY'))
45 ->configureRequired()
46 ,
47 (new ORM\Fields\StringField('DOCUMENT_TYPE'))
48 ->configureRequired()
49 ,
50 (new ORM\Fields\IntegerField('TEMPLATE_ID')),
51 (new ORM\Fields\ArrayField('TEMPLATE_DATA'))
52 ->configureRequired()
53 ->configureSerializeCallback([Entity\WorkflowTemplateTable::class, 'toSerializedForm'])
54 ->configureUnserializeCallback([Entity\WorkflowTemplateTable::class, 'getFromSerializedForm'])
55 ,
56 (new ORM\Fields\IntegerField('STATUS'))
57 ->configureRequired()
58 ->configureDefaultValue(0)
59 ,
60 (new ORM\Fields\IntegerField('USER_ID'))
61 ->configureNullable(false)
62 ,
63 (new ORM\Fields\DatetimeField('CREATED'))
64 ->configureNullable(false)
65 ,
67 'TEMPLATE',
68 Entity\WorkflowTemplateTable::class,
69 ORM\Query\Join::on('this.TEMPLATE_ID', 'ref.ID')
70 ),
71 ];
72 }
73
74 public static function getDraftsByTemplateId(int $templateId): array
75 {
76 return static::getList([
77 'filter' => ['=TEMPLATE_ID' => $templateId],
78 ])->fetchAll();
79 }
80}
$templateId
Определения component_props2.php:51
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения ufield.php:9
Определения chain.php:3