• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/lib/userlink.php
  • Класс: BitrixSocialservicesUserLinkTable
  • Вызов: UserLinkTable::getMap
static function getMap()
{
	$fieldsMap = array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'USER_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'SOCSERV_USER_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'LINK_USER_ID' => array(
			'data_type' => 'integer',
		),
		'LINK_UID' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'LINK_NAME' => array(
			'data_type' => 'string',
		),
		'LINK_LAST_NAME' => array(
			'data_type' => 'string',
		),
		'LINK_PICTURE' => array(
			'data_type' => 'string',
		),
		'USER' => array(
			'data_type' => 'BitrixMainUserTable',
			'reference' => array('=this.USER_ID' => 'ref.ID'),
		),
		'SOCSERV_USER' => array(
			'data_type' => 'BitrixSocialservicesUserTable',
			'reference' => array('=this.SOCSERV_USER_ID' => 'ref.ID'),
		),
		'LINK_USER' => array(
			'data_type' => 'BitrixMainUserTable',
			'reference' => array('=this.LINK_USER_ID' => 'ref.ID'),
		),
	);

	return $fieldsMap;
}