Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
filebucket.php
1
<?php
2
namespace
Bitrix\Clouds
;
3
4
use
Bitrix\Main
,
5
Bitrix\Main\Localization\Loc
;
6
Loc::loadMessages
(__FILE__);
7
51
class
FileBucketTable
extends
Main\Entity\DataManager
52
{
58
public
static
function
getTableName
()
59
{
60
return
'b_clouds_file_bucket'
;
61
}
62
68
public
static
function
getMap
()
69
{
70
return
array(
71
'ID'
=> array(
72
'data_type'
=>
'integer'
,
73
'primary'
=>
true
,
74
'autocomplete'
=>
true
,
75
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_ID_FIELD'
),
76
),
77
'ACTIVE'
=> array(
78
'data_type'
=>
'boolean'
,
79
'values'
=> array(
'N'
,
'Y'
),
80
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_ACTIVE_FIELD'
),
81
),
82
'SORT'
=> array(
83
'data_type'
=>
'integer'
,
84
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_SORT_FIELD'
),
85
),
86
'READ_ONLY'
=> array(
87
'data_type'
=>
'boolean'
,
88
'values'
=> array(
'N'
,
'Y'
),
89
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_READ_ONLY_FIELD'
),
90
),
91
'SERVICE_ID'
=> array(
92
'data_type'
=>
'string'
,
93
'validation'
=> array(__CLASS__,
'validateServiceId'
),
94
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_SERVICE_ID_FIELD'
),
95
),
96
'BUCKET'
=> array(
97
'data_type'
=>
'string'
,
98
'validation'
=> array(__CLASS__,
'validateBucket'
),
99
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_BUCKET_FIELD'
),
100
),
101
'LOCATION'
=> array(
102
'data_type'
=>
'string'
,
103
'validation'
=> array(__CLASS__,
'validateLocation'
),
104
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_LOCATION_FIELD'
),
105
),
106
'CNAME'
=> array(
107
'data_type'
=>
'string'
,
108
'validation'
=> array(__CLASS__,
'validateCname'
),
109
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_CNAME_FIELD'
),
110
),
111
'FILE_COUNT'
=> array(
112
'data_type'
=>
'integer'
,
113
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_FILE_COUNT_FIELD'
),
114
),
115
'FILE_SIZE'
=> array(
116
'data_type'
=>
'float'
,
117
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_FILE_SIZE_FIELD'
),
118
),
119
'LAST_FILE_ID'
=> array(
120
'data_type'
=>
'integer'
,
121
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_LAST_FILE_ID_FIELD'
),
122
),
123
'PREFIX'
=> array(
124
'data_type'
=>
'string'
,
125
'validation'
=> array(__CLASS__,
'validatePrefix'
),
126
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_PREFIX_FIELD'
),
127
),
128
'SETTINGS'
=> array(
129
'data_type'
=>
'text'
,
130
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_SETTINGS_FIELD'
),
131
),
132
'FILE_RULES'
=> array(
133
'data_type'
=>
'text'
,
134
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_FILE_RULES_FIELD'
),
135
),
136
'FAILOVER_ACTIVE'
=> array(
137
'data_type'
=>
'boolean'
,
138
'values'
=> array(
'N'
,
'Y'
),
139
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_FAILOVER_ACTIVE_FIELD'
),
140
),
141
'FAILOVER_BUCKET_ID'
=> array(
142
'data_type'
=>
'integer'
,
143
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_FAILOVER_BUCKET_ID_FIELD'
),
144
),
145
'FAILOVER_COPY'
=> array(
146
'data_type'
=>
'boolean'
,
147
'values'
=> array(
'N'
,
'Y'
),
148
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_FAILOVER_COPY_FIELD'
),
149
),
150
'FAILOVER_DELETE'
=> array(
151
'data_type'
=>
'boolean'
,
152
'values'
=> array(
'N'
,
'Y'
),
153
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_FAILOVER_DELETE_FIELD'
),
154
),
155
'FAILOVER_DELETE_DELAY'
=> array(
156
'data_type'
=>
'integer'
,
157
'title'
=>
Loc::getMessage
(
'FILE_BUCKET_ENTITY_FAILOVER_DELETE_DELAY_FIELD'
),
158
),
159
'FAILOVER_BUCKET'
=> array(
160
'data_type'
=>
'Bitrix\Clouds\FileBucket'
,
161
'reference'
=> array(
'=this.FAILOVER_BUCKET_ID'
=>
'ref.ID'
),
162
),
163
);
164
}
170
public
static
function
validateServiceId
()
171
{
172
return
array(
173
new
Main\
Entity
\Validator\Length(0, 50),
174
);
175
}
181
public
static
function
validateBucket
()
182
{
183
return
array(
184
new
Main\
Entity
\Validator\Length(0, 63),
185
);
186
}
192
public
static
function
validateLocation
()
193
{
194
return
array(
195
new
Main\
Entity
\Validator\Length(0, 50),
196
);
197
}
203
public
static
function
validateCname
()
204
{
205
return
array(
206
new
Main\
Entity
\Validator\Length(0, 100),
207
);
208
}
214
public
static
function
validatePrefix
()
215
{
216
return
array(
217
new
Main\
Entity
\Validator\Length(0, 100),
218
);
219
}
220
}
Bitrix\Clouds\FileBucketTable
Definition
filebucket.php:52
Bitrix\Clouds\FileBucketTable\getMap
static getMap()
Definition
filebucket.php:68
Bitrix\Clouds\FileBucketTable\validateServiceId
static validateServiceId()
Definition
filebucket.php:170
Bitrix\Clouds\FileBucketTable\validatePrefix
static validatePrefix()
Definition
filebucket.php:214
Bitrix\Clouds\FileBucketTable\validateLocation
static validateLocation()
Definition
filebucket.php:192
Bitrix\Clouds\FileBucketTable\validateBucket
static validateBucket()
Definition
filebucket.php:181
Bitrix\Clouds\FileBucketTable\validateCname
static validateCname()
Definition
filebucket.php:203
Bitrix\Clouds\FileBucketTable\getTableName
static getTableName()
Definition
filebucket.php:58
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
filebucket.php
Создано системой
1.10.0