1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
tabletgridcomponent.php
См. документацию.
1<?php
2
3namespace Bitrix\Main\Grid\Component;
4
5use Bitrix\Main\Grid\Grid;
6use Bitrix\Main\ORM\Data\DataManager;
7
8abstract class TabletGridComponent extends GridComponent
9{
13 abstract protected function getTablet(): string;
14
15 protected function fillPagination(Grid $grid): void
16 {
17 if (!$grid->getPagination())
18 {
19 return;
20 }
21
22 $grid->getPagination()->setRecordCount(
23 $this->getTablet()::getCount(
24 $grid->getOrmFilter()
25 )
26 );
27 }
28
29 protected function fillRows(Grid $grid): void
30 {
31 $grid->setRawRows(
32 $this->getTablet()::getList(
33 $grid->getOrmParams()
34 )
35 );
36 }
37}
getOrmParams()
Определения grid.php:314
setRawRows(iterable $rawValue)
Определения grid.php:206
getOrmFilter()
Определения grid.php:358
getPagination()
Определения grid.php:192