Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
mailboxdirectory.php
1<?php
2
4
7
25{
26 const ACTIVE = 1;
27 const INACTIVE = 0;
28
29 const TYPE_INCOME = 'IS_INCOME';
30 const TYPE_OUTCOME = 'IS_OUTCOME';
31 const TYPE_TRASH = 'IS_TRASH';
32 const TYPE_SPAM = 'IS_SPAM';
33
34 public static function getFilePath()
35 {
36 return __FILE__;
37 }
38
39 public static function getTableName()
40 {
41 return 'b_mail_mailbox_dir';
42 }
43
44 public static function getObjectClass()
45 {
46 return MailboxDirectory::class;
47 }
48
49 public static function getMap()
50 {
51 return [
52 'ID' => [
53 'data_type' => 'integer',
54 'primary' => true,
55 'autocomplete' => true,
56 ],
57 'MAILBOX_ID' => [
58 'data_type' => 'integer',
59 ],
60 'NAME' => [
61 'data_type' => 'string',
62 'required' => true,
63 'fetch_data_modification' => ['\Bitrix\Main\Text\Emoji', 'getFetchModificator']
64 ],
65 'PATH' => [
66 'data_type' => 'string',
67 'required' => true,
68 'fetch_data_modification' => ['\Bitrix\Main\Text\Emoji', 'getFetchModificator']
69 ],
70 'FLAGS' => [
71 'data_type' => 'string',
72 ],
73 'DELIMITER' => [
74 'data_type' => 'string',
75 ],
76 'DIR_MD5' => [
77 'data_type' => 'string',
78 ],
79 'LEVEL' => [
80 'data_type' => 'integer',
81 ],
82 'MESSAGE_COUNT' => [
83 'data_type' => 'integer',
84 ],
85 'PARENT_ID' => [
86 'data_type' => 'integer',
87 ],
88 'ROOT_ID' => [
89 'data_type' => 'integer',
90 ],
91 'IS_SYNC' => [
92 'data_type' => 'integer',
93 'values' => [self::ACTIVE, self::INACTIVE],
94 ],
95 'IS_DISABLED' => [
96 'data_type' => 'integer',
97 'values' => [self::ACTIVE, self::INACTIVE],
98 ],
99 'IS_INCOME' => [
100 'data_type' => 'integer',
101 'values' => [self::ACTIVE, self::INACTIVE],
102 ],
103 'IS_OUTCOME' => [
104 'data_type' => 'integer',
105 'values' => [self::ACTIVE, self::INACTIVE],
106 ],
107 'IS_DRAFT' => [
108 'data_type' => 'integer',
109 'values' => [self::ACTIVE, self::INACTIVE],
110 ],
111 'IS_TRASH' => [
112 'data_type' => 'integer',
113 'values' => [self::ACTIVE, self::INACTIVE],
114 ],
115 'IS_SPAM' => [
116 'data_type' => 'integer',
117 'values' => [self::ACTIVE, self::INACTIVE],
118 ],
119 'SYNC_TIME' => [
120 'data_type' => 'integer',
121 ],
122 'SYNC_LOCK' => [
123 'data_type' => 'integer',
124 ]
125 ];
126 }
127}