Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
boardbutton.php
1
<?php
2
3
namespace
Bitrix\Report\VisualConstructor
;
4
5
use Bitrix\Main\Page\Asset;
6
7
class
BoardButton
8
{
9
private
$html =
''
;
10
private
$jsList = [];
11
private
$cssList = [];
12
private
$stringList = [];
13
14
15
public
function
__construct
($html)
16
{
17
$this->
setHtml
($html);
18
}
19
20
public
function
getHtml
()
21
{
22
return
$this->html;
23
}
24
25
public
function
setHtml
($html)
26
{
27
$this->html = $html;
28
}
29
30
public
function
getJsList
()
31
{
32
return
$this->jsList;
33
}
34
35
public
function
setJsList
(array $jsList)
36
{
37
$this->jsList = $jsList;
38
}
39
40
41
public
function
addJs
($jsPath)
42
{
43
$this->jsList[] = $jsPath;
44
}
45
46
47
public
function
getStringList
()
48
{
49
return
$this->stringList;
50
}
51
52
public
function
setStringList
(array $stringList)
53
{
54
$this->stringList = $stringList;
55
}
56
57
58
public
function
addString
($string)
59
{
60
$this->stringList[] = $string;
61
}
62
63
64
public
function
getCssList
()
65
{
66
return
$this->cssList;
67
}
68
69
70
public
function
setCssList
(array $cssList)
71
{
72
$this->cssList = $cssList;
73
}
74
75
public
function
addCss
($jsPath)
76
{
77
$this->jsList[] = $jsPath;
78
}
79
80
public
function
process
()
81
{
82
return
$this;
83
}
84
85
public
function
flush
()
86
{
87
foreach
($this->
getJsList
() as $jsPath)
88
{
89
Asset::getInstance()->addJs($jsPath);
90
}
91
92
foreach
($this->
getCssList
() as $cssPath)
93
{
94
Asset::getInstance()->addCss($cssPath);
95
}
96
97
echo implode(
''
, $this->
getStringList
());
98
echo $this->
getHtml
();
99
100
}
101
}
Bitrix\Report\VisualConstructor\BoardButton
Definition
boardbutton.php:8
Bitrix\Report\VisualConstructor\BoardButton\setHtml
setHtml($html)
Definition
boardbutton.php:25
Bitrix\Report\VisualConstructor\BoardButton\__construct
__construct($html)
Definition
boardbutton.php:15
Bitrix\Report\VisualConstructor\BoardButton\getStringList
getStringList()
Definition
boardbutton.php:47
Bitrix\Report\VisualConstructor\BoardButton\getJsList
getJsList()
Definition
boardbutton.php:30
Bitrix\Report\VisualConstructor\BoardButton\flush
flush()
Definition
boardbutton.php:85
Bitrix\Report\VisualConstructor\BoardButton\process
process()
Definition
boardbutton.php:80
Bitrix\Report\VisualConstructor\BoardButton\getCssList
getCssList()
Definition
boardbutton.php:64
Bitrix\Report\VisualConstructor\BoardButton\addString
addString($string)
Definition
boardbutton.php:58
Bitrix\Report\VisualConstructor\BoardButton\getHtml
getHtml()
Definition
boardbutton.php:20
Bitrix\Report\VisualConstructor\BoardButton\setCssList
setCssList(array $cssList)
Definition
boardbutton.php:70
Bitrix\Report\VisualConstructor\BoardButton\setJsList
setJsList(array $jsList)
Definition
boardbutton.php:35
Bitrix\Report\VisualConstructor\BoardButton\addCss
addCss($jsPath)
Definition
boardbutton.php:75
Bitrix\Report\VisualConstructor\BoardButton\addJs
addJs($jsPath)
Definition
boardbutton.php:41
Bitrix\Report\VisualConstructor\BoardButton\setStringList
setStringList(array $stringList)
Definition
boardbutton.php:52
Bitrix\Report\VisualConstructor
Definition
analyticboard.php:2
modules
report
lib
visualconstructor
boardbutton.php
Создано системой
1.10.0