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