Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
customconfig.php
1
<?php
2
3
namespace
Bitrix\Main\Grid\Column\Editable
;
4
5
use
Bitrix\Main\Grid\Editor\Types
;
6
10
class
CustomConfig
extends
Config
11
{
12
private
?
string
$html;
13
18
public
function
__construct
(
string
$name, ?
string
$html =
null
)
19
{
20
parent::__construct($name, Types::CUSTOM);
21
22
$this->html = $html;
23
}
24
32
public
function
setHtml
(
string
$value)
33
{
34
$this->html = $value;
35
}
36
40
public
function
toArray
(): array
41
{
42
$result = parent::toArray();
43
44
if
(isset($this->html))
45
{
46
$result[
'HTML'
] = $this->html;
47
}
48
49
return
$result;
50
}
51
}
Bitrix\Main\Grid\Column\Editable\CustomConfig
Definition
customconfig.php:11
Bitrix\Main\Grid\Column\Editable\CustomConfig\__construct
__construct(string $name, ?string $html=null)
Definition
customconfig.php:18
Bitrix\Main\Grid\Column\Editable\CustomConfig\toArray
toArray()
Definition
customconfig.php:40
Bitrix\Main\Grid\Column\Editable\CustomConfig\setHtml
setHtml(string $value)
Definition
customconfig.php:32
Bitrix\Main\Grid\Editor\Types
Definition
types.php:11
Bitrix\Main\Config
Definition
configuration.php:2
Bitrix\Main\Grid\Column\Editable
Definition
config.php:3
modules
main
lib
grid
column
editable
customconfig.php
Создано системой
1.10.0