Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
dataprovider.php
1
<?php
2
3
namespace
Bitrix\Main\Grid\Column
;
4
5
use
Bitrix\Main\Grid\Settings
;
6
14
abstract
class
DataProvider
15
{
16
private
?
Settings
$settings;
17
21
public
function
__construct
(?
Settings
$settings =
null
)
22
{
23
$this->settings = $settings;
24
}
25
31
final
protected
function
getSettings
():
Settings
32
{
33
return
$this->settings;
34
}
35
44
protected
function
createColumn
(
string
$columnId, array $params = []):
Column
45
{
46
if
(!isset($params[
'id'
]))
47
{
48
$params[
'id'
] = $columnId;
49
}
50
51
return
new
Column
($columnId, $params);
52
}
53
61
protected
function
createColumns
(array $columns): array
62
{
63
$result = [];
64
65
foreach
($columns as $id => $description)
66
{
67
$result[$id] = $this->
createColumn
($id, $description);
68
}
69
70
return
$result;
71
}
72
78
abstract
public
function
prepareColumns
(): array;
79
}
Bitrix\Main\Grid\Column\Column
Definition
column.php:13
Bitrix\Main\Grid\Column\DataProvider
Definition
dataprovider.php:15
Bitrix\Main\Grid\Column\DataProvider\createColumns
createColumns(array $columns)
Definition
dataprovider.php:61
Bitrix\Main\Grid\Column\DataProvider\createColumn
createColumn(string $columnId, array $params=[])
Definition
dataprovider.php:44
Bitrix\Main\Grid\Column\DataProvider\prepareColumns
prepareColumns()
Bitrix\Main\Grid\Column\DataProvider\__construct
__construct(?Settings $settings=null)
Definition
dataprovider.php:21
Bitrix\Main\Grid\Column\DataProvider\getSettings
getSettings()
Definition
dataprovider.php:31
Bitrix\Main\Grid\Settings
Definition
settings.php:8
Bitrix\Main\Grid\Column
Definition
color.php:3
modules
main
lib
grid
column
dataprovider.php
Создано системой
1.10.0