|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* @company MTE Telecom, Ltd. |
|
4
|
|
|
* @author Ushkov Nikolai <[email protected]> |
|
5
|
|
|
* Date: 18.04.16 |
|
6
|
|
|
* Time: 17:23 |
|
7
|
|
|
*/ |
|
8
|
|
|
|
|
9
|
|
|
namespace Nnx\DataGrid\Button; |
|
10
|
|
|
|
|
11
|
|
|
/** |
|
12
|
|
|
* Interface ButtonInterface |
|
13
|
|
|
* @package Nnx\DataGrid\Button |
|
14
|
|
|
*/ |
|
15
|
|
|
interface ButtonInterface |
|
16
|
|
|
{ |
|
17
|
|
|
/** |
|
18
|
|
|
* Получить Наименование кнопки |
|
19
|
|
|
* @return string |
|
20
|
|
|
*/ |
|
21
|
|
|
public function getName(); |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* Установить Наименование кнопки |
|
25
|
|
|
* @param string $name |
|
26
|
|
|
* @return $this |
|
27
|
|
|
*/ |
|
28
|
|
|
public function setName($name); |
|
29
|
|
|
|
|
30
|
|
|
/** |
|
31
|
|
|
* Получить url кнопки |
|
32
|
|
|
* @return string |
|
33
|
|
|
*/ |
|
34
|
|
|
public function getUrl(); |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* Установить url кнопки |
|
38
|
|
|
* @param string $url |
|
39
|
|
|
* @return $this |
|
40
|
|
|
*/ |
|
41
|
|
|
public function setUrl($url); |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* Получить Заголовок кнопки |
|
45
|
|
|
* @return string |
|
46
|
|
|
*/ |
|
47
|
|
|
public function getTitle(); |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* Установить Заголовок кнопки |
|
51
|
|
|
* @param string $title |
|
52
|
|
|
* @return $this |
|
53
|
|
|
*/ |
|
54
|
|
|
public function setTitle($title); |
|
55
|
|
|
|
|
56
|
|
|
/** |
|
57
|
|
|
* Получить JS код кнопки |
|
58
|
|
|
* @return string |
|
59
|
|
|
*/ |
|
60
|
|
|
public function getJs(); |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* Установить JS код кнопки |
|
64
|
|
|
* @param string $js |
|
65
|
|
|
* @return $this |
|
66
|
|
|
*/ |
|
67
|
|
|
public function setJs($js); |
|
|
|
|
|
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* Получить JS библитеки кнопки |
|
71
|
|
|
* @return array |
|
72
|
|
|
*/ |
|
73
|
|
|
public function getLibJs(); |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
|
|
* Установить JS библитеки кнопки |
|
77
|
|
|
* @param array $libJs |
|
78
|
|
|
* @return $this |
|
79
|
|
|
*/ |
|
80
|
|
|
public function setLibJs($libJs); |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* Получить Опции кнопки |
|
84
|
|
|
* @return array|\Traversable |
|
85
|
|
|
*/ |
|
86
|
|
|
public function getOptions(); |
|
87
|
|
|
|
|
88
|
|
|
/** |
|
89
|
|
|
* Установить Опции кнопки |
|
90
|
|
|
* @param array|\Traversable $options |
|
91
|
|
|
* @return $this |
|
92
|
|
|
*/ |
|
93
|
|
|
public function setOptions($options); |
|
94
|
|
|
|
|
95
|
|
|
/** |
|
96
|
|
|
* Возвращает атрибут кнопки |
|
97
|
|
|
* @param $name |
|
98
|
|
|
* @return mixed|null |
|
99
|
|
|
*/ |
|
100
|
|
|
public function getAttribute($name); |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* Получить Атрибуты кнопки |
|
104
|
|
|
* @return array|\Traversable |
|
105
|
|
|
*/ |
|
106
|
|
|
public function getAttributes(); |
|
107
|
|
|
|
|
108
|
|
|
/** |
|
109
|
|
|
* Установить Аттрибут кнопки |
|
110
|
|
|
* @param string $name |
|
111
|
|
|
* @param mixed $value |
|
112
|
|
|
* @return $this |
|
113
|
|
|
*/ |
|
114
|
|
|
public function setAttribute($name, $value); |
|
115
|
|
|
/** |
|
116
|
|
|
* Установить Атрибуты кнопки |
|
117
|
|
|
* @param array|\Traversable $attributes |
|
118
|
|
|
* @return $this |
|
119
|
|
|
*/ |
|
120
|
|
|
public function setAttributes($attributes); |
|
121
|
|
|
|
|
122
|
|
|
/** |
|
123
|
|
|
* Получить Значение сортировки |
|
124
|
|
|
* @return int |
|
125
|
|
|
*/ |
|
126
|
|
|
public function getOrder(); |
|
127
|
|
|
|
|
128
|
|
|
/** |
|
129
|
|
|
* Установить Значение сортировки |
|
130
|
|
|
* @param int $order |
|
131
|
|
|
* @return $this |
|
132
|
|
|
*/ |
|
133
|
|
|
public function setOrder($order); |
|
134
|
|
|
} |
|
|
|
|
|
|
135
|
|
|
|
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.