• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/posting.php
  • Класс: Bitrix\Sender\PostingTable
  • Вызов: PostingTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'MAILING_ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'required' => true,
		),
		'MAILING_CHAIN_ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'required' => true,
		),
		'DATE_CREATE' => array(
			'data_type' => 'datetime',
			'required' => true,
			'default_value' => new MainType\DateTime(),
		),
		'DATE_UPDATE' => array(
			'data_type' => 'datetime',
			'required' => true,
			'default_value' => new MainType\DateTime(),
		),
		'STATUS' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => static::STATUS_NEW,
		),
		'DATE_SEND' => array(
			'data_type' => 'datetime',
		),
		'DATE_PAUSE' => array(
			'data_type' => 'datetime',
		),
		'DATE_SENT' => array(
			'data_type' => 'datetime',
		),
		'COUNT_READ' => array(
			'data_type' => 'integer',
			'default_value' => 0
		),
		'COUNT_CLICK' => array(
			'data_type' => 'integer',
			'default_value' => 0
		),
		'COUNT_UNSUB' => array(
			'data_type' => 'integer',
			'default_value' => 0
		),
		'COUNT_SEND_ALL' => array(
			'data_type' => 'integer',
			'default_value' => 0
		),
		'COUNT_SEND_NONE' => array(
			'data_type' => 'integer',
			'default_value' => 0
		),
		'COUNT_SEND_ERROR' => array(
			'data_type' => 'integer',
			'default_value' => 0
		),
		'COUNT_SEND_SUCCESS' => array(
			'data_type' => 'integer',
			'default_value' => 0
		),
		'COUNT_SEND_DENY' => array(
			'data_type' => 'integer',
			'default_value' => 0
		),
		'CONSENT_SUPPORT' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
			'default_value' => 'N',
			'required' => true,
		),
		'LETTER' => array(
			'data_type' => 'Bitrix\Sender\Internals\Model\LetterTable',
			'reference' => array('=this.MAILING_CHAIN_ID' => 'ref.ID'),
		),
		'MAILING' => array(
			'data_type' => 'Bitrix\Sender\MailingTable',
			'reference' => array('=this.MAILING_ID' => 'ref.ID'),
		),
		'MAILING_CHAIN' => array(
			'data_type' => 'Bitrix\Sender\MailingChainTable',
			'reference' => array('=this.MAILING_CHAIN_ID' => 'ref.ID'),
		),
		'POSTING_RECIPIENT' => array(
			'data_type' => 'Bitrix\Sender\PostingRecipientTable',
			'reference' => array('=this.ID' => 'ref.POSTING_ID'),
		),
		'POSTING_READ' => array(
			'data_type' => 'Bitrix\Sender\PostingReadTable',
			'reference' => array('=this.ID' => 'ref.POSTING_ID'),
		),
		'POSTING_CLICK' => array(
			'data_type' => 'Bitrix\Sender\PostingClickTable',
			'reference' => array('=this.ID' => 'ref.POSTING_ID'),
		),
		'POSTING_UNSUB' => array(
			'data_type' => 'Bitrix\Sender\PostingUnsubTable',
			'reference' => array('=this.ID' => 'ref.POSTING_ID'),
		),
	);
}