Server IP : 85.193.89.191 / Your IP : 3.12.148.187 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/modules/mail/lib/ |
Upload File : |
<?php namespace Bitrix\Mail; use Bitrix\Main\Entity; use Bitrix\Main\Localization; use Bitrix\Main\ORM\Fields\DatetimeField; use Bitrix\Main\ORM\Fields\TextField; Localization\Loc::loadMessages(__FILE__); /** * Class MailMessageTable * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_MailMessage_Query query() * @method static EO_MailMessage_Result getByPrimary($primary, array $parameters = []) * @method static EO_MailMessage_Result getById($id) * @method static EO_MailMessage_Result getList(array $parameters = []) * @method static EO_MailMessage_Entity getEntity() * @method static \Bitrix\Mail\EO_MailMessage createObject($setDefaultValues = true) * @method static \Bitrix\Mail\EO_MailMessage_Collection createCollection() * @method static \Bitrix\Mail\EO_MailMessage wakeUpObject($row) * @method static \Bitrix\Mail\EO_MailMessage_Collection wakeUpCollection($rows) */ class MailMessageTable extends Entity\DataManager { /** * Should view sanitize html body before view */ const FIELD_SANITIZE_ON_VIEW = 'SANITIZE_ON_VIEW'; public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_message'; } public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, ), 'MAILBOX_ID' => array( 'data_type' => 'integer', 'required' => true, ), 'DATE_INSERT' => array( 'data_type' => 'datetime', 'required' => true, ), 'FULL_TEXT' => array( 'data_type' => 'text', ), 'MESSAGE_SIZE' => array( 'data_type' => 'integer', 'required' => true, ), 'HEADER' => array( 'data_type' => 'text', ), 'FIELD_DATE' => array( 'data_type' => 'datetime', ), 'FIELD_FROM' => array( 'data_type' => 'string', 'fetch_data_modification' => array('\Bitrix\Main\Text\Emoji', 'getFetchModificator'), ), 'FIELD_REPLY_TO' => array( 'data_type' => 'string', ), 'FIELD_TO' => array( 'data_type' => 'string', ), 'FIELD_CC' => array( 'data_type' => 'string', ), 'FIELD_BCC' => array( 'data_type' => 'string', ), 'FIELD_PRIORITY' => array( 'data_type' => 'integer', ), 'SUBJECT' => array( 'data_type' => 'string', 'fetch_data_modification' => array('\Bitrix\Main\Text\Emoji', 'getFetchModificator'), ), 'BODY' => array( 'data_type' => 'text', ), 'BODY_HTML' => array( 'data_type' => 'text', 'fetch_data_modification' => array('\Bitrix\Main\Text\Emoji', 'getFetchModificator'), ), 'ATTACHMENTS' => array( 'data_type' => 'integer', ), 'NEW_MESSAGE' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), ), 'SPAM' => array( 'data_type' => 'enum', 'values' => array('N', 'Y', '?'), ), 'SPAM_RATING' => array( 'data_type' => 'float', ), 'SPAM_WORDS' => array( 'data_type' => 'string', ), 'SPAM_LAST_RESULT' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), ), 'EXTERNAL_ID' => array( 'data_type' => 'string', ), 'MSG_ID' => array( 'data_type' => 'string', ), 'IN_REPLY_TO' => array( 'data_type' => 'string', ), 'LEFT_MARGIN' => array( 'data_type' => 'integer', ), 'RIGHT_MARGIN' => array( 'data_type' => 'integer', ), 'SEARCH_CONTENT' => array( 'data_type' => 'string', ), 'INDEX_VERSION' => array( 'data_type' => 'integer', ), new DatetimeField('READ_CONFIRMED'), new TextField('OPTIONS',[ 'serialized' => true, ]), 'MAILBOX' => array( 'data_type' => 'Bitrix\Mail\Mailbox', 'reference' => array('=this.MAILBOX_ID' => 'ref.ID'), ), self::FIELD_SANITIZE_ON_VIEW => [ 'data_type' => 'boolean', ], ); } }