1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
copyqueue.php
См. документацию.
1<?php
2namespace Bitrix\Clouds;
3
7
31
33{
34 const OP_COPY = 'C';
35 const OP_RENAME = 'R';
36 const OP_SYNC = 'S';
37
43 public static function getTableName()
44 {
45 return 'b_clouds_copy_queue';
46 }
47
53 public static function getMap()
54 {
55 return [
57 'ID',
58 [
59 'primary' => true,
60 'autocomplete' => true,
61 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_ID_FIELD'),
62 ]
63 ),
65 'TIMESTAMP_X',
66 [
67 'required' => true,
68 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_TIMESTAMP_X_FIELD'),
69 ]
70 ),
72 'OP',
73 [
74 'required' => true,
75 'validation' => [__CLASS__, 'validateOp'],
76 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_OP_FIELD'),
77 ]
78 ),
80 'SOURCE_BUCKET_ID',
81 [
82 'required' => true,
83 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_SOURCE_BUCKET_ID_FIELD'),
84 ]
85 ),
87 'SOURCE_FILE_PATH',
88 [
89 'required' => true,
90 'validation' => [__CLASS__, 'validateSourceFilePath'],
91 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_SOURCE_FILE_PATH_FIELD'),
92 ]
93 ),
95 'TARGET_BUCKET_ID',
96 [
97 'required' => true,
98 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_TARGET_BUCKET_ID_FIELD'),
99 ]
100 ),
102 'TARGET_FILE_PATH',
103 [
104 'required' => true,
105 'validation' => [__CLASS__, 'validateTargetFilePath'],
106 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_TARGET_FILE_PATH_FIELD'),
107 ]
108 ),
110 'FILE_SIZE',
111 [
112 'default' => -1,
113 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_FILE_SIZE_FIELD'),
114 ]
115 ),
117 'FILE_POS',
118 [
119 'default' => 0,
120 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_FILE_POS_FIELD'),
121 ]
122 ),
124 'FAIL_COUNTER',
125 [
126 'default' => 0,
127 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_FAIL_COUNTER_FIELD'),
128 ]
129 ),
131 'STATUS',
132 [
133 'values' => ['N', 'Y'],
134 'default' => 'Y',
135 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_STATUS_FIELD'),
136 ]
137 ),
139 'ERROR_MESSAGE',
140 [
141 'validation' => [__CLASS__, 'validateErrorMessage'],
142 'title' => Loc::getMessage('COPY_QUEUE_ENTITY_ERROR_MESSAGE_FIELD'),
143 ]
144 ),
146 'SOURCE_BUCKET',
147 '\Bitrix\Clouds\FileBucket',
148 ['=this.SOURCE_BUCKET_ID' => 'ref.ID'],
149 ['join_type' => 'LEFT']
150 ),
152 'TARGET_BUCKET',
153 '\Bitrix\Clouds\FileBucket',
154 ['=this.TARGET_BUCKET_ID' => 'ref.ID'],
155 ['join_type' => 'LEFT']
156 ),
157 ];
158 }
159
165 public static function validateOp(): array
166 {
167 return [
169 ];
170 }
171
177 public static function validateSourceFilePath(): array
178 {
179 return [
181 ];
182 }
183
189 public static function validateTargetFilePath(): array
190 {
191 return [
193 ];
194 }
195
201 public static function validateErrorMessage(): array
202 {
203 return [
205 ];
206 }
207}
const OP_SYNC
Определения copyqueue.php:36
static getMap()
Определения copyqueue.php:53
static validateSourceFilePath()
Определения copyqueue.php:177
const OP_COPY
Определения copyqueue.php:34
static validateTargetFilePath()
Определения copyqueue.php:189
static validateOp()
Определения copyqueue.php:165
const OP_RENAME
Определения copyqueue.php:35
static validateErrorMessage()
Определения copyqueue.php:201
static getTableName()
Определения copyqueue.php:43
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения copyqueue.php:2