Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Скрипт удаляет все старые элементы инфоблока
$arSelect = Array("ID", "NAME", "TIMESTAMP_X");
$arFilter = Array("IBLOCK_ID"=>"21", "<TIMESTAMP_X"=>"31.12.2013 23:59:59");
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>1000), $arSelect);
echo $res->SelectedRowsCount();
while($ob = $res->GetNextElement())
echo "<pre>";
$arFields = $ob->GetFields();
echo "</pre>";
$navString = $res->GetPageNavStringEx($navComponentObject, "подпись пагинатора", "шаблон пагинатора", "флаг показывать всегда");
echo $navString;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.