• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/log.php
  • Класс: BitrixSocialnetworkLogTable
  • Вызов: LogTable::getMap
static function getMap()
{
	$fieldsMap = array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'ENTITY_TYPE' => array(
			'data_type' => 'string',
		),
		'ENTITY_ID' => array(
			'data_type' => 'integer',
		),
		'EVENT_ID' => array(
			'data_type' => 'string',
		),
		'USER_ID' => array(
			'data_type' => 'integer',
		),
		'USER' => array(
			'data_type' => 'BitrixMainUserTable',
			'reference' => array('=this.USER_ID' => 'ref.ID'),
		),
		'TITLE' => array(
			'data_type' => 'string',
		),
		'MESSAGE' => array(
			'data_type' => 'text',
		),
		'TEXT_MESSAGE' => array(
			'data_type' => 'text',
		),
		'URL' => array(
			'data_type' => 'string',
		),
		'MODULE_ID' => [
			'data_type' => 'string',
		],
		'PARAMS' => array(
			'data_type' => 'text',
		),
		'SOURCE_ID' => array(
			'data_type' => 'integer',
		),
		'LOG_DATE' => array(
			'data_type' => 'datetime',
		),
		'LOG_UPDATE' => array(
			'data_type' => 'datetime',
		),
		'COMMENTS_COUNT' => array(
			'data_type' => 'integer',
		),
		'TRANSFORM' => array(
			'data_type' => 'boolean',
			'values' => array('N','Y')
		),
		'INACTIVE' => array(
			'data_type' => 'boolean',
			'values' => array('N','Y')
		),
		'RATING_TYPE_ID' => array(
			'data_type' => 'string',
		),
		'RATING_ENTITY_ID' => array(
			'data_type' => 'integer',
		),
	);

	return $fieldsMap;
}