Skip to content

Instantly share code, notes, and snippets.

@Pum-purum
Last active May 20, 2017 11:58
Show Gist options
  • Save Pum-purum/0b86d3d8e309e66b927f14c6bdcd2053 to your computer and use it in GitHub Desktop.
Save Pum-purum/0b86d3d8e309e66b927f14c6bdcd2053 to your computer and use it in GitHub Desktop.
CIBlockElement::GetList
$arSelect = Array("ID", "IBLOCK_ID", "NAME");
$arFilter = Array("IBLOCK_ID" => "105", "SECTION_ID" => 401);
$res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect);
//пробегаемся по всем элементам списка
while ($ob = $res->GetNext()) {
//тут делаем свои дела
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment