44 if (!isset($this->fields) && $this->iblockId > 0 && is_array($this->ids))
46 $this->fields = array();
47 foreach($this->ids as $id)
51 $propertyList = \CIBlockElement::getProperty(
54 array(
"sort" =>
"asc"),
57 while ($property = $propertyList->fetch())
59 if ($property[
"VALUE_ENUM"] !=
"")
61 $value = $property[
"VALUE_ENUM"];
63 elseif ($property[
"PROPERTY_TYPE"] ===
"E")
67 elseif ($property[
"PROPERTY_TYPE"] ===
"G")
73 if($property[
"USER_TYPE"] <>
'')
79 $value = $property[
"VALUE"];
83 $this->fields[$property[
"ID"]][] = $value;
84 $this->fieldMap[$property[
"ID"]] = $property[
"ID"];
85 if ($property[
"CODE"] !=
"")
86 $this->fieldMap[mb_strtolower($property[
"CODE"])] = $property[
"ID"];
91 return is_array($this->fields);