- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/lib/mail/internal/event.php
- Класс: BitrixMainMailInternalEventTable
- Вызов: EventTable::getMap
static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
),
'EVENT_NAME' => array(
'data_type' => 'string',
'required' => true,
),
'MESSAGE_ID' => array(
'data_type' => 'integer',
),
'LID' => array(
'data_type' => 'string',
'required' => true,
),
(new ArrayField('C_FIELDS'))
->configureSerializeCallback(function ($value){
return EventTable::serialize($value);
})
->configureUnserializeCallback(function ($str) {
return unserialize(
EventTable::getFetchModificationForFieldsField($str),
['allowed_classes' => false]
);
}),
'DATE_INSERT' => array(
'data_type' => 'datetime',
'default_value' => function(){return new TypeDateTime();},
),
'DATE_EXEC' => array(
'data_type' => 'datetime',
),
'SUCCESS_EXEC' => array(
'data_type' => 'string',
),
'DUPLICATE' => array(
'data_type' => 'string',
),
'LANGUAGE_ID' => array(
'data_type' => 'string',
),
);
}