|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\TableChart; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* @author Christophe Meneses |
|
7
|
|
|
*/ |
|
8
|
|
|
class CssClassNames |
|
9
|
|
|
{ |
|
10
|
|
|
/** |
|
11
|
|
|
* Assigns a class name to the table header row (<tr> element). |
|
12
|
|
|
* |
|
13
|
|
|
* @var string |
|
14
|
|
|
*/ |
|
15
|
|
|
protected $headerRow; |
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* Assigns a class name to the non-header rows (<tr> elements). |
|
19
|
|
|
* |
|
20
|
|
|
* @var string |
|
21
|
|
|
*/ |
|
22
|
|
|
protected $tableRow; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* Assigns a class name to odd table rows (<tr> elements). Note: the alternatingRowStyle option must be set to true. |
|
26
|
|
|
* |
|
27
|
|
|
* @var string |
|
28
|
|
|
*/ |
|
29
|
|
|
protected $oddTableRow; |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* Assigns a class name to the selected table row (<tr> element). |
|
33
|
|
|
* |
|
34
|
|
|
* @var string |
|
35
|
|
|
*/ |
|
36
|
|
|
protected $selectedTableRow; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* Assigns a class name to the hovered table row (<tr> element). |
|
40
|
|
|
* |
|
41
|
|
|
* @var string |
|
42
|
|
|
*/ |
|
43
|
|
|
protected $hoverTableRow; |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* Assigns a class name to all cells in the header row (<td> element). |
|
47
|
|
|
* |
|
48
|
|
|
* @var string |
|
49
|
|
|
*/ |
|
50
|
|
|
protected $headerCell; |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* Assigns a class name to all non-header table cells (<td> element). |
|
54
|
|
|
* |
|
55
|
|
|
* @var string |
|
56
|
|
|
*/ |
|
57
|
|
|
protected $tableCell; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* Assigns a class name to the cells in the row number column (<td> element). Note: the showRowNumber option must |
|
61
|
|
|
* be set to true. |
|
62
|
|
|
* |
|
63
|
|
|
* @var string |
|
64
|
|
|
*/ |
|
65
|
|
|
protected $rowNumberCell; |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* @return $this |
|
69
|
|
|
*/ |
|
70
|
|
|
public function setHeaderRow(string $headerRow) |
|
71
|
|
|
{ |
|
72
|
|
|
$this->headerRow = $headerRow; |
|
73
|
|
|
|
|
74
|
|
|
return $this; |
|
75
|
|
|
} |
|
76
|
|
|
|
|
77
|
|
|
/** |
|
78
|
|
|
* @return $this |
|
79
|
|
|
*/ |
|
80
|
|
|
public function setTableRow(string $tableRow) |
|
81
|
|
|
{ |
|
82
|
|
|
$this->tableRow = $tableRow; |
|
83
|
|
|
|
|
84
|
|
|
return $this; |
|
85
|
|
|
} |
|
86
|
|
|
|
|
87
|
|
|
/** |
|
88
|
|
|
* @return $this |
|
89
|
|
|
*/ |
|
90
|
|
|
public function setOddTableRow(string $oddTableRow) |
|
91
|
|
|
{ |
|
92
|
|
|
$this->oddTableRow = $oddTableRow; |
|
93
|
|
|
|
|
94
|
|
|
return $this; |
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
|
|
/** |
|
98
|
|
|
* @return $this |
|
99
|
|
|
*/ |
|
100
|
|
|
public function setSelectedTableRow(string $selectedTableRow) |
|
101
|
|
|
{ |
|
102
|
|
|
$this->selectedTableRow = $selectedTableRow; |
|
103
|
|
|
|
|
104
|
|
|
return $this; |
|
105
|
|
|
} |
|
106
|
|
|
|
|
107
|
|
|
/** |
|
108
|
|
|
* @return $this |
|
109
|
|
|
*/ |
|
110
|
|
|
public function setHoverTableRow(string $hoverTableRow) |
|
111
|
|
|
{ |
|
112
|
|
|
$this->hoverTableRow = $hoverTableRow; |
|
113
|
|
|
|
|
114
|
|
|
return $this; |
|
115
|
|
|
} |
|
116
|
|
|
|
|
117
|
|
|
/** |
|
118
|
|
|
* @return $this |
|
119
|
|
|
*/ |
|
120
|
|
|
public function setHeaderCell(string $headerCell) |
|
121
|
|
|
{ |
|
122
|
|
|
$this->headerCell = $headerCell; |
|
123
|
|
|
|
|
124
|
|
|
return $this; |
|
125
|
|
|
} |
|
126
|
|
|
|
|
127
|
|
|
/** |
|
128
|
|
|
* @return $this |
|
129
|
|
|
*/ |
|
130
|
|
|
public function setTableCell(string $tableCell) |
|
131
|
|
|
{ |
|
132
|
|
|
$this->tableCell = $tableCell; |
|
133
|
|
|
|
|
134
|
|
|
return $this; |
|
135
|
|
|
} |
|
136
|
|
|
|
|
137
|
|
|
/** |
|
138
|
|
|
* @return $this |
|
139
|
|
|
*/ |
|
140
|
|
|
public function setRowNumberCell(string $rowNumberCell) |
|
141
|
|
|
{ |
|
142
|
|
|
$this->rowNumberCell = $rowNumberCell; |
|
143
|
|
|
|
|
144
|
|
|
return $this; |
|
145
|
|
|
} |
|
146
|
|
|
} |
|
147
|
|
|
|