×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Curtis Jackson
Added: Oct 28, 2014 9:15 AM
Views: 14
Bitrix CIBlockElement::GetList
  1. <?
  2. $arSelect = Array("ID", "IBLOCK_ID", "NAME", "DATE_ACTIVE_FROM","PROPERTY_*");//IBLOCK_ID и ID обязательно должны быть указаны, см. описание arSelectFields выше
  3. $arFilter = Array("IBLOCK_ID"=>IntVal($yvalue), "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y");
  4. $res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>50), $arSelect);
  5. while($ob = $res->GetNextElement()){
  6.  $arFields = $ob->GetFields();  
  7. print_r($arFields);
  8.  $arProps = $ob->GetProperties();
  9. print_r($arProps);
  10. }
  11. ?>