Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Access.php
1<?php
3
4use Bitrix\UI\Avatar;
6
8{
9 public static function getTableName()
10 {
11 return 'b_ui_avatar_mask_access';
12 }
13
14 public static function getMap()
15 {
16 return array(
17 (new Main\ORM\Fields\IntegerField('ID'))
18 ->configurePrimary()
19 ->configureAutocomplete(),
20
21 (new Main\ORM\Fields\IntegerField('ITEM_ID'))->configureRequired(),
22 (new Main\ORM\Fields\StringField('ACCESS_CODE', []))->configureRequired()->configureSize(50),
23
24 (new Main\ORM\Fields\Relations\Reference(
25 'USER_ACCESS',
26 Main\UserAccessTable::class,
27 (Main\ORM\Query\Join::on('this.ACCESS_CODE', 'ref.ACCESS_CODE')
28 ->where('this.ACCESS_CODE', '=', 'UA')
29 ->logic('or')
30 )
31 ))->configureJoinType(Main\ORM\Query\Join::TYPE_INNER),
32 );
33 }
34}