• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/lib/user.php
  • Класс: BitrixSocialservicesUserTable
  • Вызов: UserTable::getMap
static function getMap()
{
	$fieldsMap = array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'LOGIN' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'NAME' => array(
			'data_type' => 'string',
		),
		'LAST_NAME' => array(
			'data_type' => 'string',
		),
		'EMAIL' => array(
			'data_type' => 'string',
		),
		'PERSONAL_PHOTO' => array(
			'data_type' => 'string',
		),
		'EXTERNAL_AUTH_ID' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'USER_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'XML_ID' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'CAN_DELETE' => array(
			'data_type' => 'boolean',
			'values' => array(self::DISALLOW, self::ALLOW)
		),
		'PERSONAL_WWW' => array(
			'data_type' => 'string',
		),
		'PERMISSIONS' => array(
			'data_type' => 'string',
			'serizalized' => true,
		),
		'OATOKEN' => array(
			'data_type' => '\Bitrix\Socialservices\EncryptedToken\CryptoField',
			'encryption_complete' => static::cryptoEnabled('OATOKEN')
		),
		'OATOKEN_EXPIRES' => array(
			'data_type' => 'integer',
		),
		'OASECRET' => array(
			'data_type' => '\Bitrix\Socialservices\EncryptedToken\CryptoField',
			'encryption_complete' => static::cryptoEnabled('OASECRET')
		),
		'REFRESH_TOKEN' => array(
			'data_type' => '\Bitrix\Socialservices\EncryptedToken\CryptoField',
			'encryption_complete' => static::cryptoEnabled('REFRESH_TOKEN')
		),
		'SEND_ACTIVITY' => array(
			'data_type' => 'boolean',
			'values' => array(self::DISALLOW, self::ALLOW)
		),
		'SITE_ID' => array(
			'data_type' => 'string',
		),
		'INITIALIZED' => array(
			'data_type' => 'boolean',
			'values' => array(self::NOT_INITIALIZED, self::INITIALIZED)
		),
		'USER' => array(
			'data_type' => 'BitrixMainUserTable',
			'reference' => array('=this.USER_ID' => 'ref.ID'),
		),
	);

	return $fieldsMap;
}