@@ -185,6 +185,9 @@ discard block |
||
185 | 185 | ); |
186 | 186 | } |
187 | 187 | |
188 | + /** |
|
189 | + * @param TControl $control |
|
190 | + */ |
|
188 | 191 | private function getSelectionControlType($control) |
189 | 192 | { |
190 | 193 | if (is_string($control)) { |
@@ -199,6 +202,9 @@ discard block |
||
199 | 202 | return 'select'; |
200 | 203 | } |
201 | 204 | |
205 | + /** |
|
206 | + * @param TControl $control |
|
207 | + */ |
|
202 | 208 | private function getSelectionControlIsListType($control) |
203 | 209 | { |
204 | 210 | return $control instanceof TListControl; |
@@ -73,7 +73,7 @@ |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * @param mixed $value callback response data. |
|
76 | + * @param boolean $value callback response data. |
|
77 | 77 | */ |
78 | 78 | public function setResponseData($value) |
79 | 79 | { |
@@ -97,7 +97,7 @@ |
||
97 | 97 | /** |
98 | 98 | * Calls the client-side static method for this control class. |
99 | 99 | * @param string $func static method name |
100 | - * @param mixed $value method parmaeter |
|
100 | + * @param boolean $value method parmaeter |
|
101 | 101 | */ |
102 | 102 | protected function callClientFunction($func, $value) |
103 | 103 | { |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * The method raises 'OnSuggest' event. If you override this |
255 | 255 | * method, be sure to call the parent implementation so that the event |
256 | 256 | * handler can be invoked. |
257 | - * @param TCallbackEventParameter $param event parameter to be passed to the event handlers |
|
257 | + * @param TJuiAutoCompleteEventParameter $param event parameter to be passed to the event handlers |
|
258 | 258 | */ |
259 | 259 | public function onSuggest($param) |
260 | 260 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * The method raises 'OnSuggestionSelected' event. If you override this |
267 | 267 | * method, be sure to call the parent implementation so that the event |
268 | 268 | * handler can be invoked. |
269 | - * @param TCallbackEventParameter $param event parameter to be passed to the event handlers |
|
269 | + * @param TJuiAutoCompleteEventParameter $param event parameter to be passed to the event handlers |
|
270 | 270 | */ |
271 | 271 | public function onSuggestionSelected($param) |
272 | 272 | { |
@@ -80,7 +80,7 @@ |
||
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Publish the jQuery-ui style Css asset file. |
83 | - * @param file $file name |
|
83 | + * @param string $file name |
|
84 | 84 | * @return string Css file url. |
85 | 85 | */ |
86 | 86 | public function publishJuiStyle($file) |
@@ -126,7 +126,7 @@ |
||
126 | 126 | |
127 | 127 | /** |
128 | 128 | * Only serialize the options itself, not the corresponding parent control. |
129 | - * @return mixed array with the names of all variables of that object that should be serialized. |
|
129 | + * @return string[] array with the names of all variables of that object that should be serialized. |
|
130 | 130 | */ |
131 | 131 | public function __sleep() |
132 | 132 | { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * the control ID will take the precedence. |
215 | 215 | * |
216 | 216 | * @param string $name the property name or control ID |
217 | - * @return bool wether the control or property exists |
|
217 | + * @return boolean|null wether the control or property exists |
|
218 | 218 | * @see __get |
219 | 219 | */ |
220 | 220 | public function __isset($name) |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | } |
472 | 472 | |
473 | 473 | /** |
474 | - * @return bool if a skin is applied. |
|
474 | + * @return integer if a skin is applied. |
|
475 | 475 | */ |
476 | 476 | public function getIsSkinApplied() |
477 | 477 | { |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | } |
649 | 649 | |
650 | 650 | /** |
651 | - * @param mixed $name |
|
651 | + * @param string $name |
|
652 | 652 | * @return bool whether the named attribute exists |
653 | 653 | */ |
654 | 654 | public function hasAttribute($name) |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | } |
662 | 662 | |
663 | 663 | /** |
664 | - * @param mixed $name |
|
664 | + * @param string $name |
|
665 | 665 | * @return string attribute value, null if attribute does not exist |
666 | 666 | */ |
667 | 667 | public function getAttribute($name) |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | } |
699 | 699 | |
700 | 700 | /** |
701 | - * @param mixed $checkParents |
|
701 | + * @param boolean $checkParents |
|
702 | 702 | * @return bool whether viewstate is enabled |
703 | 703 | */ |
704 | 704 | public function getEnableViewState($checkParents = false) |
@@ -733,7 +733,7 @@ discard block |
||
733 | 733 | * This function is mainly used in defining getter functions for control properties |
734 | 734 | * that must be kept in controlstate. |
735 | 735 | * @param string $key the name of the controlstate value to be returned |
736 | - * @param mixed $defaultValue the default value. If $key is not found in controlstate, $defaultValue will be returned |
|
736 | + * @param integer|null $defaultValue the default value. If $key is not found in controlstate, $defaultValue will be returned |
|
737 | 737 | * @return mixed the controlstate value corresponding to $key |
738 | 738 | */ |
739 | 739 | protected function getControlState($key, $defaultValue = null) |
@@ -749,7 +749,7 @@ discard block |
||
749 | 749 | * Make sure that the controlstate value must be serializable and unserializable. |
750 | 750 | * @param string $key the name of the controlstate value |
751 | 751 | * @param mixed $value the controlstate value to be set |
752 | - * @param null|mixed $defaultValue default value. If $value===$defaultValue, the item will be cleared from controlstate |
|
752 | + * @param integer $defaultValue default value. If $value===$defaultValue, the item will be cleared from controlstate |
|
753 | 753 | */ |
754 | 754 | protected function setControlState($key, $value, $defaultValue = null) |
755 | 755 | { |
@@ -1084,7 +1084,7 @@ discard block |
||
1084 | 1084 | * A registered object can be accessed like a public member variable. |
1085 | 1085 | * This method should only be used by framework and control developers. |
1086 | 1086 | * @param string $name name of the object |
1087 | - * @param object $object object to be declared |
|
1087 | + * @param \Prado\TComponent $object object to be declared |
|
1088 | 1088 | * @see __get |
1089 | 1089 | */ |
1090 | 1090 | public function registerObject($name, $object) |
@@ -1160,7 +1160,7 @@ discard block |
||
1160 | 1160 | * A component with explicit ID on a template will be registered to |
1161 | 1161 | * the template owner. This method allows you to obtain this component |
1162 | 1162 | * with the ID. |
1163 | - * @param mixed $name |
|
1163 | + * @param string $name |
|
1164 | 1164 | * @return mixed the named registered object. Null if object is not found. |
1165 | 1165 | */ |
1166 | 1166 | public function getRegisteredObject($name) |
@@ -114,17 +114,17 @@ discard block |
||
114 | 114 | * Indexes for the rare fields. |
115 | 115 | * In order to save memory, rare fields will only be created if they are needed. |
116 | 116 | */ |
117 | - const RF_CONTROLS = 0; // child controls |
|
118 | - const RF_CHILD_STATE = 1; // child state field |
|
119 | - const RF_NAMED_CONTROLS = 2; // list of controls whose namingcontainer is this control |
|
120 | - const RF_NAMED_CONTROLS_ID = 3; // counter for automatic id |
|
121 | - const RF_SKIN_ID = 4; // skin ID |
|
122 | - const RF_DATA_BINDINGS = 5; // data bindings |
|
123 | - const RF_EVENTS = 6; // event handlers |
|
124 | - const RF_CONTROLSTATE = 7; // controlstate |
|
125 | - const RF_NAMED_OBJECTS = 8; // controls declared with ID on template |
|
126 | - const RF_ADAPTER = 9; // adapter |
|
127 | - const RF_AUTO_BINDINGS = 10; // auto data bindings |
|
117 | + const RF_CONTROLS = 0; // child controls |
|
118 | + const RF_CHILD_STATE = 1; // child state field |
|
119 | + const RF_NAMED_CONTROLS = 2; // list of controls whose namingcontainer is this control |
|
120 | + const RF_NAMED_CONTROLS_ID = 3; // counter for automatic id |
|
121 | + const RF_SKIN_ID = 4; // skin ID |
|
122 | + const RF_DATA_BINDINGS = 5; // data bindings |
|
123 | + const RF_EVENTS = 6; // event handlers |
|
124 | + const RF_CONTROLSTATE = 7; // controlstate |
|
125 | + const RF_NAMED_OBJECTS = 8; // controls declared with ID on template |
|
126 | + const RF_ADAPTER = 9; // adapter |
|
127 | + const RF_AUTO_BINDINGS = 10; // auto data bindings |
|
128 | 128 | |
129 | 129 | /** |
130 | 130 | * @var string control ID |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | public function getUniqueID() |
403 | 403 | { |
404 | 404 | if ($this->_uid === '' || $this->_uid === null) { // need to build the UniqueID |
405 | - $this->_uid = ''; // set to not-null, so that clearCachedUniqueID() may take action |
|
405 | + $this->_uid = ''; // set to not-null, so that clearCachedUniqueID() may take action |
|
406 | 406 | if ($namingContainer = $this->getNamingContainer()) { |
407 | 407 | if ($this->getPage() === $namingContainer) { |
408 | 408 | return ($this->_uid = $this->_id); |
@@ -290,6 +290,9 @@ discard block |
||
290 | 290 | $this->unloadRecursive(); |
291 | 291 | } |
292 | 292 | |
293 | + /** |
|
294 | + * @param string $enc |
|
295 | + */ |
|
293 | 296 | protected static function decodeUTF8($data, $enc) |
294 | 297 | { |
295 | 298 | if (is_array($data)) { |
@@ -970,7 +973,7 @@ discard block |
||
970 | 973 | |
971 | 974 | /** |
972 | 975 | * @internal This method is invoked by TForm at the beginning of its rendering |
973 | - * @param mixed $writer |
|
976 | + * @param THtmlWriter $writer |
|
974 | 977 | */ |
975 | 978 | public function beginFormRender($writer) |
976 | 979 | { |
@@ -984,7 +987,7 @@ discard block |
||
984 | 987 | |
985 | 988 | /** |
986 | 989 | * @internal This method is invoked by TForm at the end of its rendering |
987 | - * @param mixed $writer |
|
990 | + * @param THtmlWriter $writer |
|
988 | 991 | */ |
989 | 992 | public function endFormRender($writer) |
990 | 993 | { |
@@ -1003,7 +1006,7 @@ discard block |
||
1003 | 1006 | |
1004 | 1007 | /** |
1005 | 1008 | * Sets input focus on a control after the page is rendered to users. |
1006 | - * @param string|TControl $value control to receive focus, or the ID of the element on the page to receive focus |
|
1009 | + * @param TControl $value control to receive focus, or the ID of the element on the page to receive focus |
|
1007 | 1010 | */ |
1008 | 1011 | public function setFocus($value) |
1009 | 1012 | { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | /** |
56 | 56 | * @param TPage $page |
57 | 57 | * @param string $data serialized data |
58 | - * @return mixed unserialized state data, null if data is corrupted |
|
58 | + * @return string unserialized state data, null if data is corrupted |
|
59 | 59 | */ |
60 | 60 | public static function unserialize($page, $data) |
61 | 61 | { |