1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
entityfieldtype.php
См. документацию.
1<?php
2
3namespace Bitrix\Catalog\RestView;
4
5use Bitrix\Rest\Integration\View\Attributes;
6
8{
9 public const PRODUCT_PROPERTY = 'productproperty';
10 public const PRODUCT_PROPERTY_SETTINGS = 'productpropertysettings';
11
12 public static function prepareProductField(array $field, array $description, array $attributes): array
13 {
14 $field['NAME'] = $description['NAME'] ?? '';
15 if (($description['TYPE'] ?? null) === self::PRODUCT_PROPERTY)
16 {
17 $field = static::prepareProductPropertyField($field, $description, $attributes);
18 }
19
20 return $field;
21 }
22
23 protected static function prepareProductPropertyField(array $field, array $description, array $attributes): array
24 {
25 $field['IS_DYNAMIC'] = true;
26 $field['IS_MULTIPLE'] = in_array(Attributes::MULTIPLE, $attributes, true);
27 $field['PROPERTY_TYPE'] = $description['PROPERTY_TYPE'];
28 $field['USER_TYPE'] = $description['USER_TYPE'];
29 if (isset($description['VALUES']))
30 {
31 $field['VALUES'] = $description['VALUES'];
32 }
33
34 return $field;
35 }
36}
static prepareProductPropertyField(array $field, array $description, array $attributes)
Определения entityfieldtype.php:23
static prepareProductField(array $field, array $description, array $attributes)
Определения entityfieldtype.php:12
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if(Loader::includeModule( 'bitrix24')) elseif(Loader::includeModule('intranet') &&CIntranetUtils::getPortalZone() !=='ru') $description
Определения .description.php:24