@@ -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 | { |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | public static function serialize($page, $data) |
| 39 | 39 | { |
| 40 | 40 | $sm = $page->getApplication()->getSecurityManager(); |
| 41 | - if($page->getEnableStateIGBinary() && extension_loaded('igbinary')) |
|
| 41 | + if ($page->getEnableStateIGBinary() && extension_loaded('igbinary')) |
|
| 42 | 42 | { |
| 43 | 43 | if ($page->getEnableStateValidation()) { |
| 44 | 44 | $str = $sm->hashData(igbinary_serialize($data)); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $str = @gzuncompress($str); |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - if($page->getEnableStateIGBinary() && extension_loaded('igbinary')) |
|
| 84 | + if ($page->getEnableStateIGBinary() && extension_loaded('igbinary')) |
|
| 85 | 85 | { |
| 86 | 86 | if ($page->getEnableStateValidation()) { |
| 87 | 87 | if (($str = $sm->validateData($str)) !== false) { |
@@ -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. |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | 127 | * Returns the value of the property that needs validation. |
| 128 | - * @return mixed the property value to be validated |
|
| 128 | + * @return boolean the property value to be validated |
|
| 129 | 129 | */ |
| 130 | 130 | public function getValidationPropertyValue() |
| 131 | 131 | { |