Answer the question
In order to leave comments, you need to log in
How does sampling work in Bitrix?
Good afternoon comrades!
I could not figure out the sampling documentation in Bitrix. Give an example.
They write about the BookTable entity and provide the following code
BookTable::getList(array(
'select' => ... // имена полей, которые необходимо получить в результате
'filter' => ... // описание фильтра для WHERE и HAVING
'group' => ... // явное указание полей, по которым нужно группировать результат
'order' => ... // параметры сортировки
'limit' => ... // количество записей
'offset' => ... // смещение для limit
'runtime' => ... // динамически определенные поля
));
Answer the question
In order to leave comments, you need to log in
You are looking at the new D7 API, not all entities support it.
How to get blog posts, see the code of the components that are responsible for this. For example bitrix:blog.post
I returned to this question, answered you and, as usual, you start to think quickly because a long-term problem is annoying and that's it.
I found such a code, in the examples for the documentation, I cut it to the desired one,
<?
$SORT = Array("ID" => "DESC");
$arFilter = Array(
"NUM_COMMENTS" => '1',
);
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question