Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
jscode.php
1
<?php
2
3
namespace
Bitrix\UI\Buttons
;
4
5
final
class
JsCode
implements
\JsonSerializable
6
{
10
private
$code;
11
16
public
function
__construct
($code)
17
{
18
$this->
setCode
($code);
19
}
20
24
public
function
getCode
()
25
{
26
return
$this->code;
27
}
28
34
public
function
setCode
($code)
35
{
36
if
(is_string($code))
37
{
38
$this->code = $code;
39
}
40
41
return
$this;
42
}
43
51
public
function
jsonSerialize
()
52
{
53
return
[
54
'code'
=> $this->
getCode
(),
55
];
56
}
57
}
Bitrix\UI\Buttons\JsCode
Definition
jscode.php:6
Bitrix\UI\Buttons\JsCode\setCode
setCode($code)
Definition
jscode.php:34
Bitrix\UI\Buttons\JsCode\__construct
__construct($code)
Definition
jscode.php:16
Bitrix\UI\Buttons\JsCode\getCode
getCode()
Definition
jscode.php:24
Bitrix\UI\Buttons\JsCode\jsonSerialize
jsonSerialize()
Definition
jscode.php:51
Bitrix\UI\Buttons
Definition
addbutton.php:3
modules
ui
lib
buttons
jscode.php
Создано системой
1.10.0