@@ -72,6 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | /** |
74 | 74 | * @param string username |
75 | + * @param string $value |
|
75 | 76 | */ |
76 | 77 | public function setName($value) |
77 | 78 | { |
@@ -88,6 +89,7 @@ discard block |
||
88 | 89 | |
89 | 90 | /** |
90 | 91 | * @param boolean if the user is a guest |
92 | + * @param boolean $value |
|
91 | 93 | */ |
92 | 94 | public function setIsGuest($value) |
93 | 95 | { |
@@ -169,6 +171,7 @@ discard block |
||
169 | 171 | * |
170 | 172 | * @param string variable name |
171 | 173 | * @param mixed default value |
174 | + * @param string $key |
|
172 | 175 | * @return mixed the value of the variable. If it doesn't exist, the provided default value will be returned |
173 | 176 | * @see setState |
174 | 177 | */ |
@@ -189,6 +192,7 @@ discard block |
||
189 | 192 | * @param string variable name |
190 | 193 | * @param mixed variable value |
191 | 194 | * @param mixed default value. If $value===$defaultValue, the variable will be removed from persistent storage. |
195 | + * @param string $key |
|
192 | 196 | * @see getState |
193 | 197 | */ |
194 | 198 | protected function setState($key, $value, $defaultValue = null) |
@@ -317,6 +317,7 @@ discard block |
||
317 | 317 | * to determine the application configuration file, |
318 | 318 | * application root path and the runtime path. |
319 | 319 | * @param string the application root path or the application configuration file |
320 | + * @param string $basePath |
|
320 | 321 | * @see setBasePath |
321 | 322 | * @see setRuntimePath |
322 | 323 | * @see setConfigurationFile |
@@ -415,6 +416,7 @@ discard block |
||
415 | 416 | * A global value is one that is persistent across users sessions and requests. |
416 | 417 | * @param string the name of the value to be returned |
417 | 418 | * @param mixed the default value. If $key is not found, $defaultValue will be returned |
419 | + * @param integer $defaultValue |
|
418 | 420 | * @return mixed the global value corresponding to $key |
419 | 421 | */ |
420 | 422 | public function getGlobalState($key, $defaultValue = null) |
@@ -431,6 +433,7 @@ discard block |
||
431 | 433 | * @param mixed the global value to be set |
432 | 434 | * @param mixed the default value. If $key is not found, $defaultValue will be returned |
433 | 435 | * @param boolean wheter to force an immediate GlobalState save. defaults to false |
436 | + * @param string $key |
|
434 | 437 | */ |
435 | 438 | public function setGlobalState($key, $value, $defaultValue = null, $forceSave = false) |
436 | 439 | { |
@@ -545,6 +548,7 @@ discard block |
||
545 | 548 | |
546 | 549 | /** |
547 | 550 | * @param string the directory containing the application configuration file |
551 | + * @param string $value |
|
548 | 552 | */ |
549 | 553 | public function setBasePath($value) |
550 | 554 | { |
@@ -561,6 +565,7 @@ discard block |
||
561 | 565 | |
562 | 566 | /** |
563 | 567 | * @param string the application configuration file (absolute path) |
568 | + * @param string $value |
|
564 | 569 | */ |
565 | 570 | public function setConfigurationFile($value) |
566 | 571 | { |
@@ -577,6 +582,7 @@ discard block |
||
577 | 582 | |
578 | 583 | /** |
579 | 584 | * @param string the application configuration type. 'xml' and 'php' are valid values |
585 | + * @param string $value |
|
580 | 586 | */ |
581 | 587 | public function setConfigurationType($value) |
582 | 588 | { |
@@ -632,6 +638,7 @@ discard block |
||
632 | 638 | |
633 | 639 | /** |
634 | 640 | * @param string the directory storing cache data and application-level persistent data. (absolute path) |
641 | + * @param string $value |
|
635 | 642 | */ |
636 | 643 | public function setRuntimePath($value) |
637 | 644 | { |
@@ -1063,6 +1070,7 @@ discard block |
||
1063 | 1070 | * The service instance will be created. Its properties will be initialized |
1064 | 1071 | * and the configurations will be applied, if any. |
1065 | 1072 | * @param string service ID |
1073 | + * @param string $serviceID |
|
1066 | 1074 | */ |
1067 | 1075 | public function startService($serviceID) |
1068 | 1076 | { |
@@ -1101,6 +1109,7 @@ discard block |
||
1101 | 1109 | * This method is invoked when an exception is raised during the lifecycles |
1102 | 1110 | * of the application. |
1103 | 1111 | * @param mixed event parameter |
1112 | + * @param \Exception $param |
|
1104 | 1113 | */ |
1105 | 1114 | public function onError($param) |
1106 | 1115 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * @return THttpRequest the current user request |
|
54 | + * @return Web\THttpRequest the current user request |
|
55 | 55 | */ |
56 | 56 | public function getRequest() |
57 | 57 | { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @return THttpResponse the response |
|
62 | + * @return Web\THttpResponse the response |
|
63 | 63 | */ |
64 | 64 | public function getResponse() |
65 | 65 | { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * @return THttpSession user session |
|
70 | + * @return Web\THttpSession user session |
|
71 | 71 | */ |
72 | 72 | public function getSession() |
73 | 73 | { |
@@ -94,6 +94,7 @@ discard block |
||
94 | 94 | * |
95 | 95 | * @param string path of the asset that is relative to the directory containing the specified class file. |
96 | 96 | * @param string name of the class whose containing directory will be prepend to the asset path. If null, it means get_class($this). |
97 | + * @param string $assetPath |
|
97 | 98 | * @return string URL to the asset path. |
98 | 99 | */ |
99 | 100 | public function publishAsset($assetPath, $className = null) |
@@ -108,6 +109,7 @@ discard block |
||
108 | 109 | /** |
109 | 110 | * Publishes a file or directory and returns its URL. |
110 | 111 | * @param string absolute path of the file or directory to be published |
112 | + * @param string $fullPath |
|
111 | 113 | * @return string URL to the published file or directory |
112 | 114 | */ |
113 | 115 | public function publishFilePath($fullPath, $checkTimestamp = false) |
@@ -56,6 +56,9 @@ discard block |
||
56 | 56 | $this->reflect(); |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param \ReflectionMethod $method |
|
61 | + */ |
|
59 | 62 | private function isPropertyMethod($method) |
60 | 63 | { |
61 | 64 | $methodName = $method->getName(); |
@@ -64,6 +67,9 @@ discard block |
||
64 | 67 | && isset($methodName[3]); |
65 | 68 | } |
66 | 69 | |
70 | + /** |
|
71 | + * @param \ReflectionMethod $method |
|
72 | + */ |
|
67 | 73 | private function isEventMethod($method) |
68 | 74 | { |
69 | 75 | $methodName = $method->getName(); |
@@ -65,6 +65,7 @@ discard block |
||
65 | 65 | * Constructor, create a new date time formatter. |
66 | 66 | * @param string formatting pattern. |
67 | 67 | * @param string pattern and value charset |
68 | + * @param string $pattern |
|
68 | 69 | */ |
69 | 70 | public function __construct($pattern, $charset = 'UTF-8') |
70 | 71 | { |
@@ -98,6 +99,7 @@ discard block |
||
98 | 99 | |
99 | 100 | /** |
100 | 101 | * @param string formatting charset. |
102 | + * @param string $charset |
|
101 | 103 | */ |
102 | 104 | public function setCharset($charset) |
103 | 105 | { |
@@ -172,7 +174,7 @@ discard block |
||
172 | 174 | /** |
173 | 175 | * Gets the time stamp from string or integer. |
174 | 176 | * @param string|int date to parse |
175 | - * @return array date info array |
|
177 | + * @return \DateTime date info array |
|
176 | 178 | */ |
177 | 179 | private function getDate($value) |
178 | 180 | { |
@@ -324,6 +326,7 @@ discard block |
||
324 | 326 | |
325 | 327 | /** |
326 | 328 | * Calculate the length of a string, may be consider iconv_strlen? |
329 | + * @param string $string |
|
327 | 330 | */ |
328 | 331 | private function length($string) |
329 | 332 | { |
@@ -349,6 +352,9 @@ discard block |
||
349 | 352 | |
350 | 353 | /** |
351 | 354 | * Returns true if char at position equals a particular char. |
355 | + * @param string $string |
|
356 | + * @param integer $pos |
|
357 | + * @param string $char |
|
352 | 358 | */ |
353 | 359 | private function charEqual($string, $pos, $char) |
354 | 360 | { |
@@ -361,6 +367,10 @@ discard block |
||
361 | 367 | * @param int starting position |
362 | 368 | * @param int minimum integer length |
363 | 369 | * @param int maximum integer length |
370 | + * @param string $str |
|
371 | + * @param integer $i |
|
372 | + * @param integer|null $minlength |
|
373 | + * @param integer|null $maxlength |
|
364 | 374 | * @return string integer portion of the string, null otherwise |
365 | 375 | */ |
366 | 376 | private function getInteger($str, $i, $minlength, $maxlength) |
@@ -170,6 +170,7 @@ discard block |
||
170 | 170 | * parameter initialization, module loadings, page initial properties |
171 | 171 | * and authorization rules. |
172 | 172 | * @param TPageConfiguration |
173 | + * @param TPageConfiguration $pageConfig |
|
173 | 174 | */ |
174 | 175 | protected function initPageContext($pageConfig) |
175 | 176 | { |
@@ -377,6 +378,7 @@ discard block |
||
377 | 378 | |
378 | 379 | /** |
379 | 380 | * @param string default page path to be served if no explicit page is request |
381 | + * @param string $value |
|
380 | 382 | * @throws TInvalidOperationException if the page service is initialized |
381 | 383 | */ |
382 | 384 | public function setDefaultPage($value) |
@@ -479,7 +481,8 @@ discard block |
||
479 | 481 | /** |
480 | 482 | * Creates a page instance based on requested page path. |
481 | 483 | * @param string requested page path |
482 | - * @return TPage the requested page instance |
|
484 | + * @param string $pagePath |
|
485 | + * @return \Prado\TComponent the requested page instance |
|
483 | 486 | * @throws THttpException if requested page path is invalid |
484 | 487 | * @throws TConfigurationException if the page class cannot be found |
485 | 488 | */ |
@@ -527,6 +530,7 @@ discard block |
||
527 | 530 | * Executes a page. |
528 | 531 | * @param TPage the page instance to be run |
529 | 532 | * @param array list of initial page properties |
533 | + * @param \Prado\TComponent $page |
|
530 | 534 | */ |
531 | 535 | protected function runPage($page, $properties) |
532 | 536 | { |
@@ -541,6 +545,7 @@ discard block |
||
541 | 545 | * @param array list of GET parameters, null if no GET parameters required |
542 | 546 | * @param boolean whether to encode the ampersand in URL, defaults to true. |
543 | 547 | * @param boolean whether to encode the GET parameters (their names and values), defaults to true. |
548 | + * @param string $pagePath |
|
544 | 549 | * @return string URL for the page and GET parameters |
545 | 550 | */ |
546 | 551 | public function constructUrl($pagePath, $getParams = null, $encodeAmpersand = true, $encodeGetItems = true) |
@@ -225,6 +225,7 @@ discard block |
||
225 | 225 | * This method does not perform any publishing. It merely tells you |
226 | 226 | * if the file path is published, what the URL will be to access it. |
227 | 227 | * @param string directory or file path being published |
228 | + * @param string $path |
|
228 | 229 | * @return string the published URL for the file path |
229 | 230 | */ |
230 | 231 | public function getPublishedUrl($path) |
@@ -240,6 +241,7 @@ discard block |
||
240 | 241 | * Generate a CRC32 hash for the directory path. Collisions are higher |
241 | 242 | * than MD5 but generates a much smaller hash string. |
242 | 243 | * @param string string to be hashed. |
244 | + * @param string $dir |
|
243 | 245 | * @return string hashed string. |
244 | 246 | */ |
245 | 247 | protected function hash($dir) |
@@ -253,6 +255,8 @@ discard block |
||
253 | 255 | * or has an older file modification time. |
254 | 256 | * @param string source file path |
255 | 257 | * @param string destination directory (if not exists, it will be created) |
258 | + * @param string $src |
|
259 | + * @param string $dst |
|
256 | 260 | */ |
257 | 261 | protected function copyFile($src, $dst) |
258 | 262 | { |
@@ -275,6 +279,8 @@ discard block |
||
275 | 279 | * File modification time is used to ensure the copied files are latest. |
276 | 280 | * @param string the source directory |
277 | 281 | * @param string the destination directory |
282 | + * @param string $src |
|
283 | + * @param string $dst |
|
278 | 284 | * @todo a generic solution to ignore certain directories and files |
279 | 285 | */ |
280 | 286 | public function copyDirectory($src, $dst) |
@@ -316,6 +322,8 @@ discard block |
||
316 | 322 | * @param string tar filename |
317 | 323 | * @param string MD5 checksum for the corresponding tar file. |
318 | 324 | * @param boolean Wether or not to check the time stamp of the file for publishing. Defaults to false. |
325 | + * @param string $tarfile |
|
326 | + * @param string $md5sum |
|
319 | 327 | * @return string URL path to the directory where the tar file was extracted. |
320 | 328 | */ |
321 | 329 | public function publishTarFile($tarfile, $md5sum, $checkTimestamp = false) |
@@ -346,6 +354,7 @@ discard block |
||
346 | 354 | * N.B Tar file must not be compressed. |
347 | 355 | * @param string tar file |
348 | 356 | * @param string path where the contents of tar file are to be extracted |
357 | + * @param string $destination |
|
349 | 358 | * @return boolean true if extract successful, false otherwise. |
350 | 359 | */ |
351 | 360 | protected function deployTarFile($path, $destination) |
@@ -38,6 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * Constructor. |
40 | 40 | * @param mixed owner of this collection. |
41 | + * @param THttpResponse $owner |
|
41 | 42 | */ |
42 | 43 | public function __construct($owner = null) |
43 | 44 | { |
@@ -81,6 +82,7 @@ discard block |
||
81 | 82 | |
82 | 83 | /** |
83 | 84 | * @param integer|string index of the cookie in the collection or the cookie's name |
85 | + * @param string $index |
|
84 | 86 | * @return THttpCookie the cookie found |
85 | 87 | */ |
86 | 88 | public function itemAt($index) |
@@ -234,6 +234,7 @@ discard block |
||
234 | 234 | |
235 | 235 | /** |
236 | 236 | * @param string|boolean output charset. |
237 | + * @param string $charset |
|
237 | 238 | */ |
238 | 239 | public function setCharset($charset) |
239 | 240 | { |
@@ -403,6 +404,7 @@ discard block |
||
403 | 404 | * The current application will be terminated after this method is invoked. |
404 | 405 | * @param string URL to be redirected to. If the URL is a relative one, the base URL of |
405 | 406 | * the current request will be inserted at the beginning. |
407 | + * @param string $url |
|
406 | 408 | */ |
407 | 409 | public function redirect($url) |
408 | 410 | { |
@@ -618,6 +620,7 @@ discard block |
||
618 | 620 | * Sends a header. |
619 | 621 | * @param string header |
620 | 622 | * @param boolean whether the header should replace a previous similar header, or add a second header of the same type |
623 | + * @param string $value |
|
621 | 624 | */ |
622 | 625 | public function appendHeader($value, $replace = true) |
623 | 626 | { |
@@ -643,6 +646,7 @@ discard block |
||
643 | 646 | * Sends a cookie. |
644 | 647 | * Do not call this method directly. Operate with the result of {@link getCookies} instead. |
645 | 648 | * @param THttpCookie cook to be sent |
649 | + * @param THttpCookie $cookie |
|
646 | 650 | */ |
647 | 651 | public function addCookie($cookie) |
648 | 652 | { |