1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
fileresize.php
См. документацию.
1
<?php
2
namespace
Bitrix\Clouds;
3
4
use Bitrix\Main\Localization\Loc;
5
use Bitrix\Main\ORM\Data\DataManager;
6
use Bitrix\Main\ORM\Fields;
7
25
26
class
FileResizeTable
extends
DataManager
27
{
33
public
static
function
getTableName
()
34
{
35
return
'b_clouds_file_resize'
;
36
}
37
43
public
static
function
getMap
()
44
{
45
return
[
46
new
Fields\IntegerField
(
47
'ID'
,
48
[
49
'primary'
=>
true
,
50
'autocomplete'
=>
true
,
51
'title'
=> Loc::getMessage(
'FILE_RESIZE_ENTITY_ID_FIELD'
),
52
]
53
),
54
new
Fields\DatetimeField
(
55
'TIMESTAMP_X'
,
56
[
57
'required'
=>
true
,
58
'title'
=> Loc::getMessage(
'FILE_RESIZE_ENTITY_TIMESTAMP_X_FIELD'
),
59
]
60
),
61
new
Fields\IntegerField
(
62
'ERROR_CODE'
,
63
[
64
'default'
=> 0,
65
'title'
=> Loc::getMessage(
'FILE_RESIZE_ENTITY_ERROR_CODE_FIELD'
),
66
]
67
),
68
new
Fields\IntegerField
(
69
'FILE_ID'
,
70
[
71
'title'
=> Loc::getMessage(
'FILE_RESIZE_ENTITY_FILE_ID_FIELD'
),
72
]
73
),
74
new
Fields\TextField
(
75
'PARAMS'
,
76
[
77
'title'
=> Loc::getMessage(
'FILE_RESIZE_ENTITY_PARAMS_FIELD'
),
78
]
79
),
80
new
Fields\StringField
(
81
'FROM_PATH'
,
82
[
83
'validation'
=> [__CLASS__,
'validateFromPath'
],
84
'title'
=> Loc::getMessage(
'FILE_RESIZE_ENTITY_FROM_PATH_FIELD'
),
85
]
86
),
87
new
Fields\StringField
(
88
'TO_PATH'
,
89
[
90
'validation'
=> [__CLASS__,
'validateToPath'
],
91
'title'
=> Loc::getMessage(
'FILE_RESIZE_ENTITY_TO_PATH_FIELD'
),
92
]
93
),
94
new
Fields\Relations\Reference
(
95
'FILE'
,
96
'\Bitrix\Main\File'
,
97
[
'=this.FILE_ID'
=>
'ref.ID'
],
98
[
'join_type'
=>
'LEFT'
]
99
),
100
];
101
}
102
108
public
static
function
validateFromPath
():
array
109
{
110
return
[
111
new
Fields\Validators\LengthValidator
(
null
, 500),
112
];
113
}
114
120
public
static
function
validateToPath
():
array
121
{
122
return
[
123
new
Fields\Validators\LengthValidator
(
null
, 500),
124
];
125
}
126
}
Bitrix\Clouds\FileResizeTable
Определения
fileresize.php:27
Bitrix\Clouds\FileResizeTable\validateFromPath
static validateFromPath()
Определения
fileresize.php:108
Bitrix\Clouds\FileResizeTable\getMap
static getMap()
Определения
fileresize.php:43
Bitrix\Clouds\FileResizeTable\validateToPath
static validateToPath()
Определения
fileresize.php:120
Bitrix\Clouds\FileResizeTable\getTableName
static getTableName()
Определения
fileresize.php:33
Bitrix\Main\ORM\Data\DataManager
Определения
datamanager.php:35
Bitrix\Main\ORM\Fields\DatetimeField
Определения
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Определения
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\Reference
Определения
reference.php:26
Bitrix\Main\ORM\Fields\StringField
Определения
stringfield.php:20
Bitrix\Main\ORM\Fields\TextField
Определения
textfield.php:20
Bitrix\Main\ORM\Fields\Validators\LengthValidator
Определения
lengthvalidator.php:19
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
bitrix
modules
clouds
lib
fileresize.php
Создано системой
1.14.0