@@ -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) |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * named values for the base active controls. |
| 57 | 57 | * @param string $name option name. |
| 58 | 58 | * @param mixed $value new value. |
| 59 | - * @param mixed $default default value. |
|
| 59 | + * @param string|boolean $default default value. |
|
| 60 | 60 | * @return mixed options value. |
| 61 | 61 | */ |
| 62 | 62 | protected function setOption($name, $value, $default = null) |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * Gets an option named value. Options are used to store and retrive |
| 72 | 72 | * named values for the base active controls. |
| 73 | 73 | * @param string $name option name. |
| 74 | - * @param mixed $default default value. |
|
| 74 | + * @param string|boolean $default default value. |
|
| 75 | 75 | * @return mixed options value. |
| 76 | 76 | */ |
| 77 | 77 | protected function getOption($name, $default = null) |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | - * @return TPage the page containing the attached control. |
|
| 92 | + * @return \Prado\Web\UI\TPage the page containing the attached control. |
|
| 93 | 93 | */ |
| 94 | 94 | protected function getPage() |
| 95 | 95 | { |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * Is is true if the control is initilized, and is a callback request and |
| 126 | 126 | * the {@link setEnableUpdate EnableUpdate} property is true and |
| 127 | 127 | * the page is not loading post data. |
| 128 | - * @param mixed $bDontRequireVisibility |
|
| 128 | + * @param boolean $bDontRequireVisibility |
|
| 129 | 129 | * @return bool true if the callback response is allowed update |
| 130 | 130 | * client-side contents. |
| 131 | 131 | */ |