1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
calculatetotalcountaction.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Main\Grid\Action;
4
5
use Bitrix\Main\HttpRequest;
6
use Bitrix\Main\Result;
7
use Bitrix\Main\UI\PageNavigation;
8
use Closure;
9
10
final
class
CalculateTotalCountAction
implements
Action
11
{
12
public
function
__construct
(
13
private
readonly Closure $calculator,
14
private
readonly
PageNavigation
$pagination,
15
)
16
{}
17
21
public
static
function
getId
(): string
22
{
23
return
'get_total_rows_count'
;
24
}
25
29
public
function
processRequest
(
HttpRequest
$request
): ?
Result
30
{
31
$totalCount
= $this->calculator->__invoke();
32
33
$this->pagination->setRecordCount(
$totalCount
);
34
35
$result
=
new
Result
();
36
$result
->setData([
37
'totalCount'
=>
$totalCount
,
38
]);
39
40
return
$result
;
41
}
42
}
$request
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения
catalog_reindex.php:36
Bitrix\Main\Grid\Action\CalculateTotalCountAction
Определения
calculatetotalcountaction.php:11
Bitrix\Main\Grid\Action\CalculateTotalCountAction\__construct
__construct(private readonly Closure $calculator, private readonly PageNavigation $pagination,)
Определения
calculatetotalcountaction.php:12
Bitrix\Main\Grid\Action\CalculateTotalCountAction\getId
static getId()
Определения
calculatetotalcountaction.php:21
Bitrix\Main\Grid\Action\CalculateTotalCountAction\processRequest
processRequest(HttpRequest $request)
Определения
calculatetotalcountaction.php:29
Bitrix\Main\HttpRequest
Определения
httprequest.php:20
Bitrix\Main\ORM\Data\Result
Определения
result.php:16
Bitrix\Main\UI\PageNavigation
Определения
pagenavigation.php:27
$result
$result
Определения
get_property_values.php:14
Bitrix\Main\Grid\Action\Action
Определения
action.php:12
$totalCount
$totalCount
Определения
subscription_card_product.php:51
bitrix
modules
main
lib
grid
action
calculatetotalcountaction.php
Создано системой
1.14.0