@@ -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 | { |
@@ -449,7 +449,7 @@ |
||
| 449 | 449 | * Generates the token. |
| 450 | 450 | * @param string $publicKey public key |
| 451 | 451 | * @param string $privateKey private key |
| 452 | - * @param mixed $alphabet |
|
| 452 | + * @param string $alphabet |
|
| 453 | 453 | * @param int $tokenLength the length of the token |
| 454 | 454 | * @param bool $caseSensitive whether the token is case sensitive |
| 455 | 455 | * @return string the token generated. |