1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
GenerationsTable.php
См. документацию.
1<?php
2declare(strict_types=1);
3
5
10
27class GenerationsTable extends Entity\DataManager
28{
32 public static function getTableName(): string
33 {
34 return 'b_landing_copilot_generations';
35 }
36
40 public static function getMap(): array
41 {
42 return [
43 (new Fields\IntegerField('ID'))
44 ->configurePrimary()
45 ->configureAutocomplete()
46 ,
47 (new Fields\StringField('SCENARIO'))
48 ->configureRequired()
49 ,
50 (new Fields\IntegerField('STEP')),
51 (new Fields\IntegerField('CHAT_ID'))
52 ->configureNullable()
53 ,
54 (new Fields\IntegerField('SITE_ID'))
55 ->configureNullable()
56 ,
57 (new Fields\IntegerField('BLOCK_ID'))
58 ->configureNullable()
59 ,
60 (new Fields\ArrayField('SITE_DATA'))
61 ->configureSerializationPhp()
62 ->addSaveDataModifier([EmojiDataProcessor::class, 'encode'])
63 ->addFetchDataModifier([EmojiDataProcessor::class, 'decode'])
64 ,
65 (new Fields\ArrayField('DATA'))
66 ->configureSerializationPhp()
67 ->configureNullable()
68 ->configureDefaultValue(null)
69 ,
70 (new Fields\IntegerField('CREATED_BY_ID'))
71 ->configureRequired()
72 ,
73 (new Fields\DatetimeField('DATE_CREATE'))
74 ->configureRequired()
75 ->configureDefaultValue(function ()
76 {
77 return new DateTime();
78 })
79 ,
80 (new Fields\DatetimeField('DATE_FINISHED'))
81 ->configureNullable()
82 ,
83 ];
84 }
85}
</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