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/rospirotorg.ru/bitrix/modules/yandex.market/lib/catalog/card/ |
Upload File : |
<?php namespace Yandex\Market\Catalog\Card; use Yandex\Market\Export\Param; use Yandex\Market\Export\Xml; use Yandex\Market\Reference\Concerns\HasMessage; class SegmentFormat implements Param\Format { use HasMessage; public function getDocumentationUrl() { return 'https://yandex.ru/dev/market/partner-api/doc/ru/reference/content/updateOfferContent'; } public function getTag() { self::includeSelfMessages(); return new Xml\Tag\Base([ 'name' => 'card', 'children' => [ new Tag\ParameterValues([ 'preselect' => true, 'multiple' => true ]), new Tag\Param([ 'multiple' => true, 'preselect' => true, 'attributes' => [ new Tag\NameAttribute([ 'required' => true, 'preselect' => true, 'lang_key' => 'PARAM_NAME' ]), new Xml\Attribute\Base([ 'name' => 'unit', 'lang_key' => 'PARAM_UNIT' ]), ], ]), ], ]); } }