1 | <?php |
||
12 | trait KeyTable |
||
13 | { |
||
14 | /** |
||
15 | * Set keys option value. |
||
16 | * |
||
17 | * @param bool|array $value |
||
18 | * @return $this |
||
19 | * @see https://datatables.net/reference/option/keys |
||
20 | */ |
||
21 | public function keys($value = true) |
||
27 | |||
28 | /** |
||
29 | * Set keys blurable option value. |
||
30 | * |
||
31 | * @param bool $value |
||
32 | * @return $this |
||
33 | * @see https://datatables.net/reference/option/keys.blurable |
||
34 | */ |
||
35 | public function keysBlurable(bool $value = true) |
||
41 | |||
42 | /** |
||
43 | * Set keys className option value. |
||
44 | * |
||
45 | * @param string $value |
||
46 | * @return $this |
||
47 | * @see https://datatables.net/reference/option/keys.className |
||
48 | */ |
||
49 | public function keysClassName($value = 'focus') |
||
55 | |||
56 | /** |
||
57 | * Set keys clipboard option value. |
||
58 | * |
||
59 | * @param bool $value |
||
60 | * @return $this |
||
61 | * @see https://datatables.net/reference/option/keys.clipboard |
||
62 | */ |
||
63 | public function keysClipboard(bool $value = true) |
||
69 | |||
70 | /** |
||
71 | * Set keys clipboardOrthogonal option value. |
||
72 | * |
||
73 | * @param string $value |
||
74 | * @return $this |
||
75 | * @see https://datatables.net/reference/option/keys.clipboardOrthogonal |
||
76 | */ |
||
77 | public function keysClipboardOrthogonal($value = 'display') |
||
83 | |||
84 | /** |
||
85 | * Set keys columns option value. |
||
86 | * |
||
87 | * @param mixed $value |
||
88 | * @return $this |
||
89 | * @see https://datatables.net/reference/option/keys.columns |
||
90 | */ |
||
91 | public function keysColumns($value) |
||
97 | |||
98 | /** |
||
99 | * Set keys editAutoSelect option value. |
||
100 | * |
||
101 | * @param bool $value |
||
102 | * @return $this |
||
103 | * @see https://datatables.net/reference/option/keys.editAutoSelect |
||
104 | */ |
||
105 | public function keysEditAutoSelect(bool $value = true) |
||
111 | |||
112 | /** |
||
113 | * Set keys editOnFocus option value. |
||
114 | * |
||
115 | * @param bool $value |
||
116 | * @return $this |
||
117 | * @see https://datatables.net/reference/option/keys.editOnFocus |
||
118 | */ |
||
119 | public function keysEditOnFocus(bool $value = true) |
||
125 | |||
126 | /** |
||
127 | * Set keys editor option value. |
||
128 | * |
||
129 | * @param mixed $value |
||
130 | * @return $this |
||
131 | * @see https://datatables.net/reference/option/keys.editor |
||
132 | */ |
||
133 | public function keysEditor($value) |
||
139 | |||
140 | /** |
||
141 | * Set keys editorKeys option value. |
||
142 | * |
||
143 | * @param mixed $value |
||
144 | * @return $this |
||
145 | * @see https://datatables.net/reference/option/keys.editorKeys |
||
146 | */ |
||
147 | public function keysEditorKeys($value = 'navigation-only') |
||
153 | |||
154 | /** |
||
155 | * Set keys focus option value. |
||
156 | * |
||
157 | * @param string $value |
||
158 | * @return $this |
||
159 | * @see https://datatables.net/reference/option/keys.focus |
||
160 | */ |
||
161 | public function keysFocus($value) |
||
167 | |||
168 | /** |
||
169 | * Set keys keys option value. |
||
170 | * |
||
171 | * @param mixed $value |
||
172 | * @return $this |
||
173 | * @see https://datatables.net/reference/option/keys.keys |
||
174 | */ |
||
175 | public function keysKeys($value) |
||
181 | |||
182 | /** |
||
183 | * Set keys tabIndex option value. |
||
184 | * |
||
185 | * @param mixed $value |
||
186 | * @return $this |
||
187 | * @see https://datatables.net/reference/option/keys.tabIndex |
||
188 | */ |
||
189 | public function keysTabIndex($value) |
||
195 | } |
||
196 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: