Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
deletequeue.php
1<?php
2namespace Bitrix\Clouds;
3
6Loc::loadMessages(__FILE__);
7
36class DeleteQueueTable extends Main\Entity\DataManager
37{
43 public static function getTableName()
44 {
45 return 'b_clouds_delete_queue';
46 }
47
53 public static function getMap()
54 {
55 return array(
56 'ID' => array(
57 'data_type' => 'integer',
58 'primary' => true,
59 'autocomplete' => true,
60 'title' => Loc::getMessage('DELETE_QUEUE_ENTITY_ID_FIELD'),
61 ),
62 'TIMESTAMP_X' => array(
63 'data_type' => 'datetime',
64 'required' => true,
65 'title' => Loc::getMessage('DELETE_QUEUE_ENTITY_TIMESTAMP_X_FIELD'),
66 ),
67 'BUCKET_ID' => array(
68 'data_type' => 'integer',
69 'required' => true,
70 'title' => Loc::getMessage('DELETE_QUEUE_ENTITY_BUCKET_ID_FIELD'),
71 ),
72 'FILE_PATH' => array(
73 'data_type' => 'string',
74 'required' => true,
75 'validation' => array(__CLASS__, 'validateFilePath'),
76 'title' => Loc::getMessage('DELETE_QUEUE_ENTITY_FILE_PATH_FIELD'),
77 ),
78 'BUCKET' => array(
79 'data_type' => 'Bitrix\Clouds\FileBucket',
80 'reference' => array('=this.BUCKET_ID' => 'ref.ID'),
81 ),
82 );
83 }
89 public static function validateFilePath()
90 {
91 return array(
92 new Main\Entity\Validator\Length(0, 500),
93 );
94 }
95}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29