Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
button.php
1
<?
2
3
namespace
Bitrix\Main\Grid\Panel\Snippet
;
4
5
6
use
Bitrix\Main\Grid\Panel\Snippet
;
7
use
Bitrix\Main\Grid\Panel\Types
;
8
9
14
class
Button
15
{
16
protected
$id
=
""
;
17
protected
$name
=
""
;
18
protected
$type
=
""
;
19
protected
$class
=
""
;
20
protected
$text
=
""
;
24
protected
$onchange
;
25
protected
$title
=
""
;
26
27
public
function
__construct
()
28
{
29
$this->type =
Types::BUTTON
;
30
$this->
id
=
'panel_control_'
.uniqid();
31
}
32
33
39
public
function
setTitle
(
$title
=
""
)
40
{
41
$this->title =
$title
;
42
return
$this;
43
}
44
45
51
public
function
setId
(
$id
=
""
)
52
{
53
$this->
id
=
$id
;
54
return
$this;
55
}
56
57
63
public
function
setName
(
$name
=
""
)
64
{
65
$this->name =
$name
;
66
return
$this;
67
}
68
69
75
public
function
setClass
(
$class
=
""
)
76
{
77
$this->
class
=
$class
;
78
return
$this;
79
}
80
81
87
public
function
setText
(
$text
=
""
)
88
{
89
$this->text =
$text
;
90
return
$this;
91
}
92
93
99
public
function
setOnchange
(
Snippet
\
Onchange
$onchange
)
100
{
101
$this->onchange =
$onchange
;
102
return
$this;
103
}
104
105
109
public
function
toArray
()
110
{
111
$result = array(
112
"TYPE"
=> $this->type,
113
"ID"
=> $this->
id
,
114
"NAME"
=> $this->name,
115
"CLASS"
=> $this->
class
,
116
"TEXT"
=> $this->text,
117
"TITLE"
=> $this->title,
118
"ONCHANGE"
=> $this->onchange->toArray()
119
);
120
121
return
$result;
122
}
123
}
Bitrix\Main\Grid\Panel\Snippet\Button
Definition
button.php:15
Bitrix\Main\Grid\Panel\Snippet\Button\__construct
__construct()
Definition
button.php:27
Bitrix\Main\Grid\Panel\Snippet\Button\$class
$class
Definition
button.php:19
Bitrix\Main\Grid\Panel\Snippet\Button\setOnchange
setOnchange(Snippet\Onchange $onchange)
Definition
button.php:99
Bitrix\Main\Grid\Panel\Snippet\Button\toArray
toArray()
Definition
button.php:109
Bitrix\Main\Grid\Panel\Snippet\Button\setName
setName($name="")
Definition
button.php:63
Bitrix\Main\Grid\Panel\Snippet\Button\$type
$type
Definition
button.php:18
Bitrix\Main\Grid\Panel\Snippet\Button\$onchange
$onchange
Definition
button.php:24
Bitrix\Main\Grid\Panel\Snippet\Button\setId
setId($id="")
Definition
button.php:51
Bitrix\Main\Grid\Panel\Snippet\Button\$name
$name
Definition
button.php:17
Bitrix\Main\Grid\Panel\Snippet\Button\setClass
setClass($class="")
Definition
button.php:75
Bitrix\Main\Grid\Panel\Snippet\Button\setTitle
setTitle($title="")
Definition
button.php:39
Bitrix\Main\Grid\Panel\Snippet\Button\$title
$title
Definition
button.php:25
Bitrix\Main\Grid\Panel\Snippet\Button\$text
$text
Definition
button.php:20
Bitrix\Main\Grid\Panel\Snippet\Button\setText
setText($text="")
Definition
button.php:87
Bitrix\Main\Grid\Panel\Snippet\Button\$id
$id
Definition
button.php:16
Bitrix\Main\Grid\Panel\Snippet\Onchange
Definition
onchange.php:15
Bitrix\Main\Grid\Panel\Snippet
Definition
snippet.php:19
Bitrix\Main\Grid\Panel\Types
Definition
types.php:12
Bitrix\Main\Grid\Panel\Types\BUTTON
const BUTTON
Definition
types.php:16
Bitrix\Main\Grid\Panel\Snippet
Definition
button.php:3
modules
main
lib
grid
panel
snippet
button.php
Создано системой
1.10.0