Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
listfieldassembler.php
1
<?php
2
3
namespace
Bitrix\Main\Grid\Row\Assembler\Field
;
4
5
use
Bitrix\Main\Grid\Row\FieldAssembler
;
6
10
abstract
class
ListFieldAssembler
extends
FieldAssembler
11
{
12
private
array $names;
13
20
abstract
protected
function
getNames
(): array;
21
27
protected
function
getEmptyName
(): ?string
28
{
29
return
null
;
30
}
31
35
final
protected
function
prepareColumn
($value)
36
{
37
if
(empty($value))
38
{
39
return
$this->
getEmptyName
();
40
}
41
42
$this->names ??= $this->
getNames
();
43
44
return
$this->names[$value] ??
null
;
45
}
46
}
Bitrix\Main\Grid\Row\Assembler\Field\ListFieldAssembler
Definition
listfieldassembler.php:11
Bitrix\Main\Grid\Row\Assembler\Field\ListFieldAssembler\prepareColumn
prepareColumn($value)
Definition
listfieldassembler.php:35
Bitrix\Main\Grid\Row\Assembler\Field\ListFieldAssembler\getEmptyName
getEmptyName()
Definition
listfieldassembler.php:27
Bitrix\Main\Grid\Row\Assembler\Field\ListFieldAssembler\getNames
getNames()
Bitrix\Main\Grid\Row\FieldAssembler
Definition
fieldassembler.php:22
Bitrix\Main\Grid\Row\Assembler\Field
Definition
listfieldassembler.php:3
modules
main
lib
grid
row
assembler
field
listfieldassembler.php
Создано системой
1.10.0