1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
filetemporary.php
См. документацию.
1<?php
2namespace Bitrix\Im\Model;
3
4use Bitrix\Main\ORM\Data\DataManager;
5use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
6use Bitrix\Main\ORM\Fields\DatetimeField;
7use Bitrix\Main\ORM\Fields\IntegerField;
8use Bitrix\Main\ORM\Fields\StringField;
9use Bitrix\Main\ORM\Fields\Validators\LengthValidator;
10use Bitrix\Main\Type\DateTime;
11
38
40{
41 use DeleteByFilterTrait;
42
48 public static function getTableName()
49 {
50 return 'b_im_file_temporary';
51 }
52
58 public static function getMap()
59 {
60 return [
61 'ID' => new IntegerField(
62 'ID',
63 [
64 'primary' => true,
65 'autocomplete' => true,
66 ]
67 ),
68 'DISK_FILE_ID' => new IntegerField(
69 'DISK_FILE_ID',
70 [
71 'required' => true,
72 ]
73 ),
74 'DATE_CREATE' => new DatetimeField(
75 'DATE_CREATE',
76 [
77 'required' => true,
78 'default_value' => static function() {
79 return new DateTime();
80 }
81 ]
82 ),
83 'SOURCE' => new StringField(
84 'SOURCE',
85 [
86 'required' => true,
87 'validation' => [__CLASS__, 'validateSource'],
88 ]
89 ),
90 ];
91 }
92
98 public static function validateSource(): array
99 {
100 return [
101 new LengthValidator(null, 50),
102 ];
103 }
104}
static validateSource()
Определения filetemporary.php:98
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804