- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/dealrecur.php
- Класс: Bitrix\Crm\DealRecurTable
- Вызов: DealRecurTable::getMap
static function getMap()
{
return array(
new Main\Entity\IntegerField(
'ID',
array(
'autocomplete' => true,
'primary' => true,
)
),
new Main\Entity\IntegerField(
'DEAL_ID',
array(
'required' => true
)
),
new Main\Entity\IntegerField('BASED_ID'),
new Main\Entity\BooleanField(
'ACTIVE',
array(
'values' => array('N', 'Y'),
'default_value' => 'N'
)
),
new Main\Entity\IntegerField('CATEGORY_ID'),
/**
* value 'N' isn't limit;
* value 'D' is limit by date;
* value 'T' is limit by times;
*/
new Main\Entity\StringField(
'IS_LIMIT',
array(
'values' => array('N', 'D', 'T'),
'default_value' => 'N'
)
),
new Main\Entity\IntegerField('COUNTER_REPEAT'),
new Main\Entity\IntegerField('LIMIT_REPEAT'),
new Main\Entity\DateField('LIMIT_DATE'),
new Main\Entity\DateField('START_DATE'),
new Main\Entity\DateField('NEXT_EXECUTION'),
new Main\Entity\DateField('LAST_EXECUTION'),
new Main\Entity\StringField(
'PARAMS',
array(
'serialized' => 'Y'
)
)
);
}