• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/model/userrelation.php
  • Класс: BitrixImopenlinesModelUserRelationTable
  • Вызов: UserRelationTable::getMap
static function getMap()
{
	return array(
		'USER_CODE' => array(
			'data_type' => 'string',
			'primary' => true,
			'validation' => array(__CLASS__, 'validateUserCode'),
		),
		'USER_ID' => array(
			'data_type' => 'integer',
			'default_value' => '0',
		),
		'CHAT_ID' => array(
			'data_type' => 'integer',
			'default_value' => '0',
		),
		'AGREES' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
			'default_value' => 'N',
		),
	);
}