Answer the question
In order to leave comments, you need to log in
Does the static CIBlock->GetFields() method make queries to the database?
In short:
In a component with
$res = CIBlockElement::GetList(array(), $arFilter, false, array("nPageSize" => $arParams["ITEMS_PER_PAGE"]), $arSelect);
$res->NavStart();
while ($ob = $res->GetNextElement()) {
$item = $ob->GetFields();
echo $item["ID"];
echo $item["NAME"];
echo $item["ACTIVE"];
}
echo $res->NavPrint("Товары");
$ob->GetFields();
Answer the question
In order to leave comments, you need to log in
This method is not static, the call itself tells us about it. Requests are not executed in it:
function GetFields()
{
return $this->fields;
}
while ($item = $res->Fetch()) {
echo $item["ID"];
echo $item["NAME"];
echo $item["ACTIVE"];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question