• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/Avatar/Mask/Access.php
  • Класс: BitrixUIAvatarMaskAccessTable
  • Вызов: AccessTable::getMap
static function getMap()
{
	return array(
		(new MainORMFieldsIntegerField('ID'))
			->configurePrimary()
			->configureAutocomplete(),

		(new MainORMFieldsIntegerField('ITEM_ID'))->configureRequired(),
		(new MainORMFieldsStringField('ACCESS_CODE', []))->configureRequired()->configureSize(50),

		(new MainORMFieldsRelationsReference(
			'USER_ACCESS',
			MainUserAccessTable::class,
			(MainORMQueryJoin::on('this.ACCESS_CODE', 'ref.ACCESS_CODE')
				->where('this.ACCESS_CODE', '=', 'UA')
				->logic('or')
			)
		))->configureJoinType(MainORMQueryJoin::TYPE_INNER),
	);
}