Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
maillog.php
1<?php
2
3namespace Bitrix\Mail;
4
7
8Localization\Loc::loadMessages(__FILE__);
9
26class MailLogTable extends Entity\DataManager
27{
28
29 public static function getFilePath()
30 {
31 return __FILE__;
32 }
33
34 public static function getTableName()
35 {
36 return 'b_mail_log';
37 }
38
39 public static function getMap()
40 {
41 return array(
42 'ID' => array(
43 'data_type' => 'integer',
44 'primary' => true,
45 'autocomplete' => true,
46 ),
47 'MAILBOX_ID' => array(
48 'data_type' => 'integer',
49 ),
50 'FILTER_ID' => array(
51 'data_type' => 'integer',
52 ),
53 'MESSAGE_ID' => array(
54 'data_type' => 'integer',
55 ),
56 'LOG_TYPE' => array(
57 'data_type' => 'string',
58 ),
59 'DATE_INSERT' => array(
60 'data_type' => 'datetime',
61 'required' => true,
62 ),
63 'STATUS_GOOD' => array(
64 'data_type' => 'boolean',
65 'values' => array('N', 'Y'),
66 ),
67 'MESSAGE' => array(
68 'data_type' => 'string',
69 ),
70 'MAILBOX' => array(
71 'data_type' => 'Bitrix\Mail\Mailbox',
72 'reference' => array('=this.MAILBOX_ID' => 'ref.ID'),
73 ),
74 'FILTER' => array(
75 'data_type' => 'Bitrix\Mail\MailFilter',
76 'reference' => array('=this.FILTER_ID' => 'ref.ID'),
77 ),
78 'MAIL_MESSAGE' => array(
79 'data_type' => 'Bitrix\Mail\MailMessage',
80 'reference' => array('=this.MESSAGE_ID' => 'ref.ID'),
81 ),
82 );
83 }
84
85}