1 | <?php |
||
18 | trait FieldTrait { |
||
19 | |||
20 | abstract public function addToProperty($name, $value, $separator=" "); |
||
25 | |||
26 | public function setFocus() { |
||
29 | |||
30 | public function addLoading() { |
||
36 | |||
37 | /** |
||
38 | * @param string|BaseHtml $label |
||
39 | * @param string $direction |
||
40 | * @param string $icon |
||
41 | * @return HtmlLabel |
||
42 | */ |
||
43 | public function labeled($label, $direction=Direction::LEFT, $icon=NULL) { |
||
49 | |||
50 | /** |
||
51 | * @param string $direction |
||
52 | * @param string $caption |
||
53 | * @param string $value |
||
54 | * @param string $checkboxType |
||
55 | * @return HtmlLabel |
||
56 | */ |
||
57 | public function labeledCheckbox($direction=Direction::LEFT,$caption="",$value=NULL,$checkboxType=NULL){ |
||
60 | |||
61 | /** |
||
62 | * @param string $icon |
||
63 | * @param string $direction |
||
64 | * @return HtmlLabel |
||
65 | */ |
||
66 | public function labeledToCorner($icon, $direction=Direction::LEFT) { |
||
69 | |||
70 | /** |
||
71 | * @param string $action |
||
72 | * @param string $direction |
||
73 | * @param string $icon |
||
74 | * @param string $labeled |
||
75 | * @return unknown|HtmlButton |
||
76 | */ |
||
77 | public function addAction($action, $direction=Direction::RIGHT, $icon=NULL, $labeled=false) { |
||
89 | |||
90 | /** |
||
91 | * @param string $label |
||
92 | * @param array $items |
||
93 | * @param string $direction |
||
94 | * @return HtmlLabel |
||
95 | */ |
||
96 | public function addDropdown($label="", $items=array(),$direction=Direction::RIGHT){ |
||
101 | |||
102 | public function setTransparent() { |
||
105 | |||
106 | public function setReadonly(){ |
||
110 | |||
111 | public function setName($name){ |
||
115 | |||
116 | public function setFluid(){ |
||
120 | |||
121 | public function setDisabled($disable=true) { |
||
127 | } |
||
128 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.