1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
gridcomponent.php
См. документацию.
1<?php
2
3namespace Bitrix\Main\Grid\Component;
4
5use Bitrix\Main\Grid\Grid;
6
7abstract class GridComponent extends \CBitrixComponent
8{
9 abstract protected function createGrid(): Grid;
10
11 abstract protected function fillRows(Grid $grid): void;
12
13 protected function fillPagination(Grid $grid): void
14 {
15 // override if using
16 }
17
18 public function executeComponent(): void
19 {
20 $grid = $this->createGrid();
21 $grid->processRequest();
22
23 $this->fillPagination($grid);
24 $this->fillRows($grid);
25
26 $this->arResult['~GRID'] = $grid;
27 $this->arResult['~FILTER'] = $grid->getFilter();
28
30 }
31}
getFilter()
Определения grid.php:180
processRequest(?HttpRequest $request=null)
Определения grid.php:262
includeComponentTemplate($templatePage="", $customTemplatePath="")
Определения component.php:724