CModule IncludeModule iblock arSelect Array ID NAME USER_VOTED arFilte

1
2
3
4
5
6
7
8
9
CModule::IncludeModule('iblock');
$arSelect = Array("ID", "NAME", "USER_VOTED");
$arFilter = Array("IBLOCK_ID"=> 12, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y", "USER_VOTED" => "1234");
$res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect);
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
ShowArray($arFields);
}