@@ -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) |
@@ -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 | { |
@@ -869,7 +869,7 @@ discard block |
||
| 869 | 869 | * Handles template parsing exception. |
| 870 | 870 | * This method rethrows the exception caught during template parsing. |
| 871 | 871 | * It adjusts the error location by giving out correct error line number and source file. |
| 872 | - * @param Exception $e template exception |
|
| 872 | + * @param \Exception $e template exception |
|
| 873 | 873 | * @param int $line line number |
| 874 | 874 | * @param null|string $input template string if no source file is used |
| 875 | 875 | */ |
@@ -934,7 +934,7 @@ discard block |
||
| 934 | 934 | |
| 935 | 935 | /** |
| 936 | 936 | * Checks if the given method belongs to a previously attached class behavior. |
| 937 | - * @param ReflectionClass $class |
|
| 937 | + * @param \ReflectionClass $class |
|
| 938 | 938 | * @param string $method |
| 939 | 939 | * @return bool |
| 940 | 940 | */ |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * Loads the template from the specified file. |
| 73 | - * @param mixed $fileName |
|
| 73 | + * @param string $fileName |
|
| 74 | 74 | * @return ITemplate template parsed from the specified file, null if the file doesn't exist. |
| 75 | 75 | */ |
| 76 | 76 | public function getTemplateByFileName($fileName) |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | * as the field name, the property value will be returned. |
| 168 | 168 | * Otherwise, an exception will be raised. |
| 169 | 169 | * @param mixed $data data item |
| 170 | - * @param mixed $field field name |
|
| 170 | + * @param string $field field name |
|
| 171 | 171 | * @throws TInvalidDataValueException if the data is invalid |
| 172 | 172 | * @return mixed data value at the specified field |
| 173 | 173 | */ |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * Gets the Control type for client-side validation. If new cases exists in |
| 189 | 189 | * TBaseValidator::$_clientClass, be sure to update the corresponding |
| 190 | 190 | * "Javascript/validation3.js" file as well. |
| 191 | - * @param TControl $control control to validate. |
|
| 191 | + * @param \Prado\Web\UI\TControl $control control to validate. |
|
| 192 | 192 | * @return string control type for client-side validation. |
| 193 | 193 | */ |
| 194 | 194 | private function getClientControlClass($control) |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | /** |
| 273 | 273 | * Update the ControlToValidate component's css class depending |
| 274 | 274 | * if the ControlCssClass property is set, and whether this is valid. |
| 275 | - * @return bool true if change, false otherwise. |
|
| 275 | + * @return boolean|null true if change, false otherwise. |
|
| 276 | 276 | */ |
| 277 | 277 | protected function updateControlCssClass() |
| 278 | 278 | { |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | /** |
| 484 | 484 | * @throws TConfigurationException if {@link getControlToValidate |
| 485 | 485 | * ControlToValidate} is empty or does not point to a valid control |
| 486 | - * @return TControl control to be validated. Null if no control is found. |
|
| 486 | + * @return \Prado\Web\UI\TControl control to be validated. Null if no control is found. |
|
| 487 | 487 | */ |
| 488 | 488 | public function getValidationTarget() |
| 489 | 489 | { |
@@ -296,6 +296,10 @@ discard block |
||
| 296 | 296 | } |
| 297 | 297 | } |
| 298 | 298 | |
| 299 | + /** |
|
| 300 | + * @param TListItem $item |
|
| 301 | + * @param integer $index |
|
| 302 | + */ |
|
| 299 | 303 | protected function renderTextItem($writer, $item, $index) |
| 300 | 304 | { |
| 301 | 305 | if ($item->getEnabled()) { |
@@ -308,6 +312,10 @@ discard block |
||
| 308 | 312 | } |
| 309 | 313 | } |
| 310 | 314 | |
| 315 | + /** |
|
| 316 | + * @param TListItem $item |
|
| 317 | + * @param integer $index |
|
| 318 | + */ |
|
| 311 | 319 | protected function renderHyperLinkItem($writer, $item, $index) |
| 312 | 320 | { |
| 313 | 321 | if (!$this->_isEnabled || !$item->getEnabled()) { |
@@ -326,6 +334,10 @@ discard block |
||
| 326 | 334 | $writer->renderEndTag(); |
| 327 | 335 | } |
| 328 | 336 | |
| 337 | + /** |
|
| 338 | + * @param TListItem $item |
|
| 339 | + * @param integer $index |
|
| 340 | + */ |
|
| 329 | 341 | protected function renderLinkButtonItem($writer, $item, $index) |
| 330 | 342 | { |
| 331 | 343 | if (!$this->_isEnabled || !$item->getEnabled()) { |
@@ -243,7 +243,7 @@ |
||
| 243 | 243 | * invoke the page's {@link TPage::validate validate} method first. |
| 244 | 244 | * It will raise {@link onClick OnClick} and {@link onCommand OnCommand} events. |
| 245 | 245 | * This method is mainly used by framework and control developers. |
| 246 | - * @param TEventParameter $param the event parameter |
|
| 246 | + * @param \Prado\Web\UI\ActiveControls\TCallbackEventParameter $param the event parameter |
|
| 247 | 247 | */ |
| 248 | 248 | public function raisePostBackEvent($param) |
| 249 | 249 | { |