1 | <?php |
||
21 | trait SemanticHtmlModulesTrait { |
||
22 | |||
23 | public abstract function addHtmlComponent($htmlComponent); |
||
24 | |||
25 | /** |
||
26 | * Module checkbox |
||
27 | * @param string $identifier |
||
28 | * @param string $label |
||
29 | * @param mixed $value |
||
30 | * @param CheckboxType $type |
||
31 | * @return HtmlCheckbox |
||
32 | */ |
||
33 | public function htmlCheckbox($identifier, $label=NULL, $value=NULL, $type=NULL) { |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | * @param string $identifier |
||
40 | * @param int $rowCount |
||
|
|||
41 | * @param int $colCount |
||
42 | * @return HtmlRating |
||
43 | */ |
||
44 | public function htmlRating($identifier, $value, $max, $icon="") { |
||
47 | |||
48 | /** |
||
49 | * |
||
50 | * @param string $identifier |
||
51 | * @param int $value |
||
52 | * @param string $label |
||
53 | * @return HtmlProgress |
||
54 | */ |
||
55 | public function htmlProgress($identifier, $value=0, $label=NULL) { |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * @param string $identifier |
||
62 | * @param string $placeholder |
||
63 | * @return HtmlSearch |
||
64 | */ |
||
65 | public function htmlSearch($identifier, $placeholder=NULL, $icon=NULL) { |
||
68 | |||
69 | /** |
||
70 | * |
||
71 | * @param string $identifier |
||
72 | * @param mixed $content |
||
73 | * @return HtmlDimmer |
||
74 | */ |
||
75 | public function htmlDimmer($identifier, $content=NULL) { |
||
78 | |||
79 | |||
80 | /** |
||
81 | * Returns a new semantic modal dialog |
||
82 | * @param string $identifier |
||
83 | * @param string $header |
||
84 | * @param string $content |
||
85 | * @param array $actions |
||
86 | * @return HtmlModal |
||
87 | */ |
||
88 | public function htmlModal($identifier, $header="", $content="", $actions=array()) { |
||
91 | |||
92 | /** |
||
93 | * Returns a new Semantic Tab |
||
94 | * @see http://semantic-ui.com/modules/tab.html |
||
95 | * @param array $tabs |
||
96 | * @return HtmlTab |
||
97 | */ |
||
98 | public function htmlTab($identifier, $tabs=array()) { |
||
101 | |||
102 | /** |
||
103 | * Returns a new Semantic Shape |
||
104 | * @see http://semantic-ui.com/modules/shape.html |
||
105 | * @param array $slides |
||
106 | * @return HtmlShape |
||
107 | */ |
||
108 | public function htmlShape($identifier, $slides=array()) { |
||
111 | |||
112 | /** |
||
113 | * |
||
114 | * @param string $identifier |
||
115 | * @param string $value |
||
116 | * @param array $items |
||
117 | * @param boolean $associative |
||
118 | * @return HtmlDropdown |
||
119 | */ |
||
120 | public function htmlDropdown($identifier, $value="", $items=array(),$associative=true) { |
||
123 | |||
124 | /** |
||
125 | * |
||
126 | * @param string $identifier |
||
127 | * @param mixed $content |
||
128 | * @return HtmlPopup |
||
129 | */ |
||
130 | public function htmlPopup(BaseHtml $container, $identifier, $content) { |
||
133 | |||
134 | /** |
||
135 | * Returns a new Semantic Accordion |
||
136 | * @param string $identifier |
||
137 | * @return HtmlAccordion |
||
138 | */ |
||
139 | public function htmlAccordion($identifier) { |
||
142 | |||
143 | /** |
||
144 | * Return a new Semantic Menu Accordion |
||
145 | * @param string $identifier |
||
146 | * @return HtmlAccordionMenu |
||
147 | */ |
||
148 | public function htmlAccordionMenu($identifier, $items=array()) { |
||
151 | |||
152 | |||
153 | /** |
||
154 | * Returns a new Semantic Sticky |
||
155 | * @param string $identifier |
||
156 | * @param array $content |
||
157 | * @return HtmlSticky |
||
158 | */ |
||
159 | public function htmlSticky($identifier, $content=array()) { |
||
162 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.