Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
fileresize.php
1<?php
2namespace Bitrix\Clouds;
3
6Loc::loadMessages(__FILE__);
7
39class 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}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29