Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/yandex.market/lib/export/collectionproduct/ |
Upload File : |
<?php namespace Yandex\Market\Export\CollectionProduct; use Yandex\Market; use Bitrix\Main; class Table extends Market\Reference\Storage\Table { public static function getTableName() { return 'yamarket_export_collection_product'; } public static function getMap() { return [ new Main\Entity\IntegerField('ID', [ 'autocomplete' => true, 'primary' => true ]), new Main\Entity\IntegerField('COLLECTION_ID'), new Main\Entity\ReferenceField('COLLECTION', Market\Export\Collection\Table::class, [ '=this.COLLECTION_ID' => 'ref.ID' ]), new Main\Entity\IntegerField('IBLOCK_ID'), new Main\Entity\ReferenceField('FILTER', Market\Export\Filter\Table::class, [ '=ref.ENTITY_TYPE' => [ '?', Market\Export\Filter\Table::ENTITY_TYPE_COLLECTION_PRODUCT ], '=ref.ENTITY_ID' => 'this.ID', ]), ]; } public static function getReference($primary = null) { return [ 'FILTER' => [ 'TABLE' => Market\Export\Filter\Table::class, 'LINK_FIELD' => 'ENTITY_ID', 'LINK' => [ 'ENTITY_TYPE' => Market\Export\Filter\Table::ENTITY_TYPE_COLLECTION_PRODUCT, 'ENTITY_ID' => $primary, ], 'ORDER' => [ 'SORT' => 'asc', 'ID' => 'asc' ], ], ]; } }