SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // $arSelect = array("ID", "NAME", "DATE_ACTIVE_FROM");
  2.       // $arFilter = array("IBLOCK_ID" => 2, "ACTIVE_DATE" => "Y", "ACTIVE" => "Y");
  3.       // $res = CIBlockElement::GetList(array(), $arFilter, false, array("nPageSize" => 50), $arSelect);
  4.       // while ($ob = $res->GetNextElement()) {
  5.       //             $arFields = $ob->GetFields();
  6.       //             print_r($arFields);
  7.       //       }
  8.  
  9.       $arSelect = array("ID", "IBLOCK_ID", "NAME", "DATE_ACTIVE_FROM", "PROPERTY_*"); //IBLOCK_ID и ID обязательно должны быть указаны, см. описание arSelectFields выше
  10.       $arFilter = array("IBLOCK_ID" => 2, "ACTIVE_DATE" => "Y", "ACTIVE" => "Y");
  11.       $res = CIBlockElement::GetList(array(), $arFilter, false, array("nPageSize" => 50), $arSelect);
  12.       while ($ob = $res->GetNextElement()) {
  13.             $arFields = $ob->GetFields();
  14.             print_r($arFields);
  15.             $arProps = $ob->GetProperties();
  16.             print_r($arProps);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top