23 if ($iblockId ===
null)
36 $columnType = Grid\Column\Type::TEXT;
37 $multiple = $row[
'MULTIPLE'] ===
'Y';
38 $preventDefault =
true;
41 'type' => $columnType,
42 'name' => $row[
'NAME'],
44 'editable' => $multiple ? false :
true,
45 'multiple' => $multiple,
51 $extendedMorePhoto = $isNewCardEnabled && $row[
'ID'] === $morePhotoId;
52 if ($extendedMorePhoto)
55 $columnType = Grid\Column\Type::CUSTOM;
62 && !$extendedMorePhoto
65 $description[
'editable'] =
false;
66 $preventDefault =
false;
71 $description[
'sort'] = $columnId;
74 if (isset($row[
'USER_TYPE']))
76 $description[
'type'] = Grid\Column\Type::CUSTOM;
81 $description[
'type'] = Grid\Column\Type::NUMBER;
82 $description[
'align'] =
'right';
86 $listItems = $this->getPropertyEnumValues($row[
'ID']);
87 if (!empty($listItems))
89 $description[
'type'] =
91 ? Grid\Column\Type::MULTISELECT
92 : Grid\Column\Type::DROPDOWN
102 $description[
'editable'] =
false;
108 $description[
'type'] = Grid\Column\Type::CUSTOM;
113 $description[
'type'] = Grid\Column\Type::CUSTOM;
118 $description[
'type'] = Grid\Column\Type::FILE;
121 $description[
'prevent_default'] = $preventDefault;
123 $result[$columnId] = $description;
259 $propertyPrefixRe =
'/^' . preg_quote(self::PREFIX_ID) .
'(\d+)$/';
261 foreach ($columnIds as $columnId)
263 if (preg_match($propertyPrefixRe, $columnId, $m))
265 $result[$columnId] = (int)$m[1];