@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | /** |
| 184 | 184 | * Gets the time stamp from string or integer. |
| 185 | 185 | * @param int|string $value date to parse |
| 186 | - * @return array date info array |
|
| 186 | + * @return \DateTime date info array |
|
| 187 | 187 | */ |
| 188 | 188 | private function getDate($value) |
| 189 | 189 | { |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | - * @param mixed $value |
|
| 200 | + * @param string $value |
|
| 201 | 201 | * @return bool true if the given value matches with the date pattern. |
| 202 | 202 | */ |
| 203 | 203 | public function isValidDate($value) |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | |
| 352 | 352 | /** |
| 353 | 353 | * Calculate the length of a string, may be consider iconv_strlen? |
| 354 | - * @param mixed $string |
|
| 354 | + * @param string $string |
|
| 355 | 355 | */ |
| 356 | 356 | private function length($string) |
| 357 | 357 | { |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | * Gets a portion of a string, uses iconv_substr. |
| 374 | 374 | * @param mixed $string |
| 375 | 375 | * @param mixed $start |
| 376 | - * @param mixed $length |
|
| 376 | + * @param integer $length |
|
| 377 | 377 | */ |
| 378 | 378 | private function substring($string, $start, $length) |
| 379 | 379 | { |
@@ -382,9 +382,9 @@ discard block |
||
| 382 | 382 | |
| 383 | 383 | /** |
| 384 | 384 | * Returns true if char at position equals a particular char. |
| 385 | - * @param mixed $string |
|
| 386 | - * @param mixed $pos |
|
| 387 | - * @param mixed $char |
|
| 385 | + * @param string $string |
|
| 386 | + * @param integer $pos |
|
| 387 | + * @param string $char |
|
| 388 | 388 | */ |
| 389 | 389 | private function charEqual($string, $pos, $char) |
| 390 | 390 | { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | 104 | * @param mixed $js |
| 105 | - * @return Marks a string as a javascript function. Once marke, the string is considered as a |
|
| 105 | + * @return TJavaScriptLiteral a string as a javascript function. Once marke, the string is considered as a |
|
| 106 | 106 | * raw javascript function that is not supposed to be encoded by {@link encode} |
| 107 | 107 | */ |
| 108 | 108 | public static function quoteJsLiteral($js) |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * Encodes a PHP variable into javascript string. |
| 210 | 210 | * This method invokes json_encode to perform the encoding. |
| 211 | 211 | * @param mixed $value variable to be encoded |
| 212 | - * @param mixed $options |
|
| 212 | + * @param integer $options |
|
| 213 | 213 | * @return string encoded string |
| 214 | 214 | */ |
| 215 | 215 | public static function jsonEncode($value, $options = 0) |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | * Minimize the size of a javascript script. |
| 288 | 288 | * This method is based on Douglas Crockford's JSMin. |
| 289 | 289 | * @param string $code code that you want to minimzie |
| 290 | - * @return minimized version of the code |
|
| 290 | + * @return string version of the code |
|
| 291 | 291 | */ |
| 292 | 292 | public static function JSMin($code) |
| 293 | 293 | { |
@@ -152,6 +152,10 @@ |
||
| 152 | 152 | } |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | + /** |
|
| 156 | + * @param string $configPath |
|
| 157 | + * @param string $configPagePath |
|
| 158 | + */ |
|
| 155 | 159 | public function loadFromPhp($config, $configPath, $configPagePath) |
| 156 | 160 | { |
| 157 | 161 | $this->loadApplicationConfigurationFromPhp($config, $configPath); |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | /** |
| 100 | 100 | * Generate a SOAP fault message. |
| 101 | 101 | * @param string $title message title |
| 102 | - * @param mixed $details message details |
|
| 102 | + * @param string $details message details |
|
| 103 | 103 | * @param string $code message code, defalt is 'SERVER'. |
| 104 | 104 | * @param string $actor actors |
| 105 | 105 | * @param string $name message name |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | |
| 270 | 270 | /** |
| 271 | 271 | * Saves the current UrlManager instance to cache. |
| 272 | - * @param mixed $manager |
|
| 272 | + * @param TUrlManager $manager |
|
| 273 | 273 | * @return bool true if UrlManager instance was cached, false otherwise. |
| 274 | 274 | */ |
| 275 | 275 | protected function cacheUrlManager($manager) |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | /** |
| 358 | - * @return THttpRequestUrlFormat the format of URLs. Defaults to THttpRequestUrlFormat::Get. |
|
| 358 | + * @return string the format of URLs. Defaults to THttpRequestUrlFormat::Get. |
|
| 359 | 359 | */ |
| 360 | 360 | public function getUrlFormat() |
| 361 | 361 | { |
@@ -832,7 +832,7 @@ discard block |
||
| 832 | 832 | /** |
| 833 | 833 | * Returns an iterator for traversing the items in the list. |
| 834 | 834 | * This method is required by the interface \IteratorAggregate. |
| 835 | - * @return Iterator an iterator for traversing the items in the list. |
|
| 835 | + * @return \ArrayIterator an iterator for traversing the items in the list. |
|
| 836 | 836 | */ |
| 837 | 837 | public function getIterator() |
| 838 | 838 | { |
@@ -879,7 +879,7 @@ discard block |
||
| 879 | 879 | /** |
| 880 | 880 | * Adds an item into the request. |
| 881 | 881 | * Note, if the specified key already exists, the old value will be overwritten. |
| 882 | - * @param mixed $key |
|
| 882 | + * @param integer $key |
|
| 883 | 883 | * @param mixed $value |
| 884 | 884 | */ |
| 885 | 885 | public function add($key, $value) |
@@ -479,7 +479,7 @@ |
||
| 479 | 479 | |
| 480 | 480 | /** |
| 481 | 481 | * Flush the response contents and headers. |
| 482 | - * @param mixed $continueBuffering |
|
| 482 | + * @param boolean $continueBuffering |
|
| 483 | 483 | */ |
| 484 | 484 | public function flush($continueBuffering = true) |
| 485 | 485 | { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * Initializes the module. |
| 122 | 122 | * This method is required by IModule. |
| 123 | 123 | * If AutoStart is true, the session will be started. |
| 124 | - * @param TXmlElement $config module configuration |
|
| 124 | + * @param null|TXmlElement $config module configuration |
|
| 125 | 125 | */ |
| 126 | 126 | public function init($config) |
| 127 | 127 | { |
@@ -539,7 +539,7 @@ discard block |
||
| 539 | 539 | /** |
| 540 | 540 | * Returns the session variable value with the session variable name. |
| 541 | 541 | * This method is exactly the same as {@link offsetGet}. |
| 542 | - * @param mixed $key the session variable name |
|
| 542 | + * @param string $key the session variable name |
|
| 543 | 543 | * @return mixed the session variable value, null if no such variable exists |
| 544 | 544 | */ |
| 545 | 545 | public function itemAt($key) |
@@ -550,7 +550,7 @@ discard block |
||
| 550 | 550 | /** |
| 551 | 551 | * Adds a session variable. |
| 552 | 552 | * Note, if the specified name already exists, the old value will be removed first. |
| 553 | - * @param mixed $key session variable name |
|
| 553 | + * @param string $key session variable name |
|
| 554 | 554 | * @param mixed $value session variable value |
| 555 | 555 | */ |
| 556 | 556 | public function add($key, $value) |
@@ -414,7 +414,7 @@ |
||
| 414 | 414 | } |
| 415 | 415 | |
| 416 | 416 | /** |
| 417 | - * @return THttpRequestUrlFormat the format of URLs. Defaults to THttpRequestUrlFormat::Get. |
|
| 417 | + * @return string the format of URLs. Defaults to THttpRequestUrlFormat::Get. |
|
| 418 | 418 | */ |
| 419 | 419 | public function getUrlFormat() |
| 420 | 420 | { |
@@ -235,8 +235,8 @@ |
||
| 235 | 235 | |
| 236 | 236 | /** |
| 237 | 237 | * Appends data or javascript code to the body content surrounded with delimiters |
| 238 | - * @param mixed $response |
|
| 239 | - * @param mixed $delimiter |
|
| 238 | + * @param \Prado\Web\THttpResponse $response |
|
| 239 | + * @param string $delimiter |
|
| 240 | 240 | * @param mixed $data |
| 241 | 241 | */ |
| 242 | 242 | private function appendContentPart($response, $delimiter, $data) |