A
A
Alexander Ivanov2017-02-17 11:09:25
PHP
Alexander Ivanov, 2017-02-17 11:09:25

How to get the value of a list of property values ​​list?

this is how I got the name of the property and its ID :

$property_enums = CIBlockProperty::GetList(Array("DEF"=>"DESC", "SORT"=>"ASC"), Array("IBLOCK_ID"=>11, "ID"=>111));
    while($enum_fields = $property_enums->GetNext())
    {
      echo $enum_fields["ID"]." - ".$enum_fields["VALUE"]."<br>";
    }

so I wanted to get a list of values ​​of type list, but did not get:
$property_enums = CIBlockPropertyEnum::GetList(Array("DEF"=>"DESC", "SORT"=>"ASC"), Array("IBLOCK_ID"=>11, "ID"=>111));
    while($enum_fields = $property_enums->GetNext())
    {
      echo $enum_fields["ID"]." - ".$enum_fields["VALUE"]."<br>";
    }

So I didn't get anything either:
$rsPropEnums = CIBlockPropertyEnum::GetList(array('DEF' => 'DESC', 'SORT' => 'ASC'), array('PROPERTY_ID' => 111));
while ($arPropEnum = $rsPropEnums->Fetch())
{
$prop_fields['VALUES'][] = $arPropEnum;
echo $arPropEnum;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2017-02-17
@cimonlebedev

All the same, I received it, the fault of everything was my carelessness.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question