Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
fileresize.php
1
<?php
2
namespace
Bitrix\Clouds
;
3
4
use
Bitrix\Main
,
5
Bitrix\Main\Localization\Loc
;
6
Loc::loadMessages
(__FILE__);
7
39
class
FileResizeTable
extends
Main\Entity\DataManager
40
{
46
public
static
function
getTableName
()
47
{
48
return
'b_clouds_file_resize'
;
49
}
50
56
public
static
function
getMap
()
57
{
58
return
array(
59
'ID'
=> array(
60
'data_type'
=>
'integer'
,
61
'primary'
=>
true
,
62
'autocomplete'
=>
true
,
63
'title'
=>
Loc::getMessage
(
'FILE_RESIZE_ENTITY_ID_FIELD'
),
64
),
65
'TIMESTAMP_X'
=> array(
66
'data_type'
=>
'datetime'
,
67
'required'
=>
true
,
68
'title'
=>
Loc::getMessage
(
'FILE_RESIZE_ENTITY_TIMESTAMP_X_FIELD'
),
69
),
70
'ERROR_CODE'
=> array(
71
'data_type'
=>
'string'
,
72
'required'
=>
true
,
73
'validation'
=> array(__CLASS__,
'validateErrorCode'
),
74
'title'
=>
Loc::getMessage
(
'FILE_RESIZE_ENTITY_ERROR_CODE_FIELD'
),
75
),
76
'FILE_ID'
=> array(
77
'data_type'
=>
'integer'
,
78
'title'
=>
Loc::getMessage
(
'FILE_RESIZE_ENTITY_FILE_ID_FIELD'
),
79
),
80
'PARAMS'
=> array(
81
'data_type'
=>
'text'
,
82
'title'
=>
Loc::getMessage
(
'FILE_RESIZE_ENTITY_PARAMS_FIELD'
),
83
),
84
'FROM_PATH'
=> array(
85
'data_type'
=>
'string'
,
86
'validation'
=> array(__CLASS__,
'validateFromPath'
),
87
'title'
=>
Loc::getMessage
(
'FILE_RESIZE_ENTITY_FROM_PATH_FIELD'
),
88
),
89
'TO_PATH'
=> array(
90
'data_type'
=>
'string'
,
91
'validation'
=> array(__CLASS__,
'validateToPath'
),
92
'title'
=>
Loc::getMessage
(
'FILE_RESIZE_ENTITY_TO_PATH_FIELD'
),
93
),
94
'FILE'
=> array(
95
'data_type'
=>
'Bitrix\Main\File'
,
96
'reference'
=> array(
'=this.FILE_ID'
=>
'ref.ID'
),
97
),
98
);
99
}
105
public
static
function
validateErrorCode
()
106
{
107
return
array(
108
new
Main\
Entity
\Validator\Length(0, 1),
109
);
110
}
116
public
static
function
validateFromPath
()
117
{
118
return
array(
119
new
Main\
Entity
\Validator\Length(0, 500),
120
);
121
}
127
public
static
function
validateToPath
()
128
{
129
return
array(
130
new
Main\
Entity
\Validator\Length(0, 500),
131
);
132
}
133
}
Bitrix\Clouds\FileResizeTable
Definition
fileresize.php:40
Bitrix\Clouds\FileResizeTable\validateFromPath
static validateFromPath()
Definition
fileresize.php:116
Bitrix\Clouds\FileResizeTable\getMap
static getMap()
Definition
fileresize.php:56
Bitrix\Clouds\FileResizeTable\validateToPath
static validateToPath()
Definition
fileresize.php:127
Bitrix\Clouds\FileResizeTable\validateErrorCode
static validateErrorCode()
Definition
fileresize.php:105
Bitrix\Clouds\FileResizeTable\getTableName
static getTableName()
Definition
fileresize.php:46
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Clouds
Definition
copyqueue.php:2
Bitrix\Main
modules
clouds
lib
fileresize.php
Создано системой
1.10.0