• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/lib/contactconnect.php
  • Класс: BitrixSocialservicesContactConnectTable
  • Вызов: ContactConnectTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'TIMESTAMP_X' => array(
			'data_type' => 'datetime',
		),
		'CONTACT_ID' => array(
			'data_type' => 'integer',
		),
		'LINK_ID' => array(
			'data_type' => 'integer',
		),
		'CONTACT_PROFILE_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'CONTACT_PORTAL' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'LAST_AUTHORIZE' => array(
			'data_type' => 'datetime',
		),
		'CONNECT_TYPE' => array(
			'data_type' => 'enum',
			'values' => array(static::TYPE_PORTAL, static::TYPE_EXTERNAL),
		),
		'CONTACT' => array(
				'data_type' => 'BitrixSocialservicesContactTable',
				'reference' => array('=this.CONTACT_ID' => 'ref.ID'),
		),
		'LINK' => array(
				'data_type' => 'BitrixSocialservicesUserLinkTable',
				'reference' => array('=this.LINK_ID' => 'ref.ID'),
		),
	);
}