- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/subscribe.php
- Класс: BitrixCatalogSubscribeTable
- Вызов: SubscribeTable::getMap
static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
),
'DATE_FROM' => array(
'data_type' => 'datetime',
'required' => true,
'default_value' => new DateTime(),
),
'DATE_TO' => array(
'data_type' => 'datetime',
),
'USER_CONTACT' => array(
'data_type' => 'string',
'required' => true,
),
'CONTACT_TYPE' => array(
'data_type' => 'integer',
'required' => true,
),
'USER_ID' => array(
'data_type' => 'integer',
),
'USER' => array(
'data_type' => 'BitrixMainUserTable',
'reference' => array('=this.USER_ID' => 'ref.ID'),
),
'ITEM_ID' => array(
'data_type' => 'integer',
),
'PRODUCT' => array(
'data_type' => 'BitrixCatalogProductTable',
'reference' => array('=this.ITEM_ID' => 'ref.ID'),
),
'IBLOCK_ELEMENT' => array(
'data_type' => 'BitrixIblockElementTable',
'reference' => array('=this.ITEM_ID' => 'ref.ID'),
),
'NEED_SENDING' => array(
'data_type' => 'boolean',
'values' => array('N', 'Y'),
'default_value' => 'N',
'validation' => array(__CLASS__, 'validateNeedSending'),
),
'SITE_ID' => array(
'data_type' => 'string',
'required' => true,
'validation' => array(__CLASS__, 'validateSiteId'),
),
'LANDING_SITE_ID' => array(
'data_type' => 'integer',
),
);
}