1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
calculatetotalcountaction.php
См. документацию.
1<?php
2
3namespace Bitrix\Main\Grid\Action;
4
5use Bitrix\Main\HttpRequest;
6use Bitrix\Main\Result;
7use Bitrix\Main\UI\PageNavigation;
8use Closure;
9
10final 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
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}
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36
__construct(private readonly Closure $calculator, private readonly PageNavigation $pagination,)
Определения calculatetotalcountaction.php:12
$result
Определения get_property_values.php:14
$totalCount
Определения subscription_card_product.php:51