Server IP : 85.193.89.191 / Your IP : 3.15.188.93 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/modules/ui/lib/Avatar/Mask/ |
Upload File : |
<?php namespace Bitrix\UI\Avatar\Mask; use Bitrix\Main; use Bitrix\Main\FileTable; use Bitrix\Main\ORM; use Bitrix\Main\ORM\Fields\DatetimeField; use Bitrix\Main\ORM\Fields\IntegerField; use Bitrix\Main\ORM\Fields\Relations\Reference; use Bitrix\Main\ORM\Query\Join; use Bitrix\Main\Type\DateTime; use Bitrix\UI\Avatar; class ItemToFileTable extends OrmDataManager { public static function getTableName(): string { return 'b_ui_avatar_mask_item_applied_to'; } public static function getMap(): array { return array( (new IntegerField('ID')) ->configurePrimary() ->configureAutocomplete() , (new IntegerField('ORIGINAL_FILE_ID'))->configureRequired(), (new IntegerField('FILE_ID'))->configureRequired(), (new IntegerField('ITEM_ID'))->configureRequired(), (new IntegerField('USER_ID')), (new DatetimeField('TIMESTAMP_X')) ->configureRequired() ->configureDefaultValue(function() { return new DateTime(); } ), (new Reference( 'FILE', FileTable::class, Join::on('this.FILE_ID', 'ref.ID') ))->configureJoinType(Join::TYPE_INNER), (new Reference( 'ITEM', ItemTable::class, Join::on('this.ITEM_ID', 'ref.ID') ))->configureJoinType(Join::TYPE_INNER), (new Reference( 'USER', Main\UserTable::class, Join::on('this.USER_ID', 'ref.ID') ))->configureJoinType(Join::TYPE_LEFT), ); } }