1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
workflowtemplatesettingstable.php
См. документацию.
1<?php
2
3namespace Bitrix\Bizproc\Workflow\Template;
4
5use Bitrix\Main\ORM;
6use Bitrix\Main\ORM\Data\DataManager;
7use Bitrix\Main\ORM\Fields\StringField;
8use Bitrix\Main\ORM\Fields\Validators\LengthValidator;
9
27{
28 const SHOW_CATEGORY_PREFIX = 'SHOW_CATEGORY_ID_';
29
30 public static function getTableName(): string
31 {
32 return 'b_bp_workflow_template_settings';
33 }
34
35 public static function getMap(): array
36 {
37 return [
38 (new ORM\Fields\IntegerField('ID'))
39 ->configurePrimary()
40 ->configureAutocomplete()
41 ,
42 (new ORM\Fields\IntegerField('TEMPLATE_ID'))
43 ->configureRequired()
44 ,
45 (new ORM\Fields\StringField('NAME'))
46 ->configureRequired()
47 ->addValidator(new LengthValidator(null, 255))
48 ,
49 (new ORM\Fields\StringField('VALUE')),
51 'TEMPLATE',
52 Entity\WorkflowTemplateTable::class,
53 ORM\Query\Join::on('this.TEMPLATE_ID', 'ref.ID')
54 ),
55 ];
56 }
57
58 public static function deleteSettingsByFilter(array $filter): void
59 {
60 $result = static::getList([
61 'filter' => $filter,
62 'select' => ['ID']
63 ]);
64 while ($row = $result->fetch())
65 {
66 static::delete($row['ID']);
67 }
68 }
69
70 public static function addMultiSettings(array $rows): void
71 {
72 if (!empty($rows))
73 {
74 static::addMulti($rows, true);
75 }
76 }
77}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
$filter
Определения iblock_catalog_list.php:54
Определения ufield.php:9
Определения chain.php:3
$rows
Определения options.php:264