1 | <?php |
||
15 | trait BootstrapComponentsTrait { |
||
16 | |||
17 | /** |
||
18 | * |
||
19 | * @param string $attachTo |
||
20 | * @param string|array $params |
||
21 | * @return $this |
||
22 | */ |
||
23 | public function generic($attachTo=NULL, $params=NULL) { |
||
26 | |||
27 | /** |
||
28 | * |
||
29 | * @param string $attachTo |
||
30 | * @param string|array $params |
||
31 | * @return $this |
||
32 | */ |
||
33 | public function modal($attachTo=NULL, $params=NULL) { |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | * @param string $attachTo |
||
40 | * @param string|array $params |
||
41 | * @return $this |
||
42 | */ |
||
43 | public function tooltip($attachTo=NULL, $params=NULL) { |
||
46 | |||
47 | /** |
||
48 | * |
||
49 | * @param string $attachTo |
||
50 | * @param string|array $params |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function popover($attachTo=NULL, $params=NULL) { |
||
56 | |||
57 | /** |
||
58 | * |
||
59 | * @param string $attachTo |
||
60 | * @param string|array $params |
||
61 | * @return $this |
||
62 | */ |
||
63 | public function dropdown($attachTo=NULL, $params=NULL) { |
||
66 | |||
67 | /** |
||
68 | * |
||
69 | * @param string $attachTo |
||
70 | * @param string|array $params |
||
71 | * @return $this |
||
72 | */ |
||
73 | public function splitbutton($attachTo=NULL, $params=NULL) { |
||
76 | |||
77 | /** |
||
78 | * |
||
79 | * @param string $attachTo |
||
80 | * @param string|array $params |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function tab($attachTo=NULL, $params=NULL) { |
||
86 | |||
87 | /** |
||
88 | * |
||
89 | * @param string $attachTo |
||
90 | * @param string|array $params |
||
91 | * @return $this |
||
92 | */ |
||
93 | public function collapse($attachTo=NULL, $params=NULL) { |
||
96 | |||
97 | /** |
||
98 | * |
||
99 | * @param string $attachTo |
||
100 | * @param string|array $params |
||
101 | * @return $this |
||
102 | */ |
||
103 | public function carousel($attachTo=NULL, $params=NULL) { |
||
106 | } |
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: