@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
207 | - * @return boolean true to post the inputs of the form on callback, default |
|
207 | + * @return string true to post the inputs of the form on callback, default |
|
208 | 208 | * is post the inputs on callback. |
209 | 209 | */ |
210 | 210 | public function getPostState() |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | } |
223 | 223 | |
224 | 224 | /** |
225 | - * @return integer callback request timeout. |
|
225 | + * @return string callback request timeout. |
|
226 | 226 | */ |
227 | 227 | public function getRequestTimeOut() |
228 | 228 | { |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | } |
251 | 251 | |
252 | 252 | /** |
253 | - * @return boolean client-side viewstate will be updated on callback |
|
253 | + * @return boolean|string client-side viewstate will be updated on callback |
|
254 | 254 | * response if true. Default is true. |
255 | 255 | */ |
256 | 256 | public function getEnablePageStateUpdate() |
@@ -143,6 +143,10 @@ discard block |
||
143 | 143 | */ |
144 | 144 | abstract public function performAction($args); |
145 | 145 | |
146 | + /** |
|
147 | + * @param string $dir |
|
148 | + * @param integer $mask |
|
149 | + */ |
|
146 | 150 | protected function createDirectory($dir, $mask) |
147 | 151 | { |
148 | 152 | if(!is_dir($dir)) |
@@ -154,6 +158,9 @@ discard block |
||
154 | 158 | chmod($dir, $mask); |
155 | 159 | } |
156 | 160 | |
161 | + /** |
|
162 | + * @param string $filename |
|
163 | + */ |
|
157 | 164 | protected function createFile($filename, $content) |
158 | 165 | { |
159 | 166 | if(!is_file($filename)) |
@@ -302,6 +309,9 @@ discard block |
||
302 | 309 | '; |
303 | 310 | } |
304 | 311 | |
312 | + /** |
|
313 | + * @param string $appName |
|
314 | + */ |
|
305 | 315 | protected function renderConfigFile($appName) |
306 | 316 | { |
307 | 317 | return <<<EOD |
@@ -515,6 +525,9 @@ discard block |
||
515 | 525 | return false; |
516 | 526 | } |
517 | 527 | |
528 | + /** |
|
529 | + * @param string $app_dir |
|
530 | + */ |
|
518 | 531 | protected function getActiveRecordConfig($app_dir) |
519 | 532 | { |
520 | 533 | if(false === ($xml=$this->getXmlFile($app_dir))) |
@@ -530,6 +543,9 @@ discard block |
||
530 | 543 | return false; |
531 | 544 | } |
532 | 545 | |
546 | + /** |
|
547 | + * @param string $app_dir |
|
548 | + */ |
|
533 | 549 | protected function getOutputFile($app_dir, $namespace) |
534 | 550 | { |
535 | 551 | if(is_file($namespace) && strpos($namespace, $app_dir)===0) |
@@ -591,6 +607,9 @@ discard block |
||
591 | 607 | return $prop; |
592 | 608 | } |
593 | 609 | |
610 | + /** |
|
611 | + * @param string $class |
|
612 | + */ |
|
594 | 613 | protected function generateClass($properties, $tablename, $class) |
595 | 614 | { |
596 | 615 | $props = implode("\n", $properties); |
@@ -686,6 +705,9 @@ discard block |
||
686 | 705 | return true; |
687 | 706 | } |
688 | 707 | |
708 | + /** |
|
709 | + * @param string $l |
|
710 | + */ |
|
689 | 711 | public function generate($l) |
690 | 712 | { |
691 | 713 | $input = explode(" ", trim($l)); |
@@ -724,6 +746,9 @@ discard block |
||
724 | 746 | return false; |
725 | 747 | } |
726 | 748 | |
749 | + /** |
|
750 | + * @param string $app_dir |
|
751 | + */ |
|
727 | 752 | protected function getActiveRecordConfig($app_dir) { |
728 | 753 | if (false === ($xml = $this->getXmlFile($app_dir))) |
729 | 754 | return false; |
@@ -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) |
@@ -110,6 +110,7 @@ discard block |
||
110 | 110 | /** |
111 | 111 | * Sets the format of the date string. |
112 | 112 | * @param string the format of the date string |
113 | + * @param string $value |
|
113 | 114 | */ |
114 | 115 | public function setDateFormat($value) |
115 | 116 | { |
@@ -249,6 +250,7 @@ discard block |
||
249 | 250 | |
250 | 251 | /** |
251 | 252 | * @param integer date picker starting year, default is 2000. |
253 | + * @param integer $value |
|
252 | 254 | */ |
253 | 255 | public function setFromYear($value) |
254 | 256 | { |
@@ -358,6 +360,7 @@ discard block |
||
358 | 360 | |
359 | 361 | /** |
360 | 362 | * @param string date string |
363 | + * @param string $value |
|
361 | 364 | */ |
362 | 365 | public function setDate($value) |
363 | 366 | { |
@@ -481,7 +484,7 @@ discard block |
||
481 | 484 | * Loads date from drop down list data. |
482 | 485 | * @param string the key that can be used to retrieve data from the input data collection |
483 | 486 | * @param array the input data collection |
484 | - * @return array the date selected |
|
487 | + * @return string the date selected |
|
485 | 488 | */ |
486 | 489 | protected function getDateFromPostData($key, $values) |
487 | 490 | { |
@@ -587,7 +590,7 @@ discard block |
||
587 | 590 | } |
588 | 591 | |
589 | 592 | /** |
590 | - * @return DateTimeFormatInfo date time format information for the current culture. |
|
593 | + * @return \Prado\I18N\core\DateTimeFormatInfo date time format information for the current culture. |
|
591 | 594 | */ |
592 | 595 | protected function getLocalizedCalendarInfo() |
593 | 596 | { |
@@ -637,6 +640,7 @@ discard block |
||
637 | 640 | * Renders the calendar drop down list depending on the DateFormat pattern. |
638 | 641 | * @param THtmlWriter the Html writer to render the drop down lists. |
639 | 642 | * @param array the current selected date |
643 | + * @param \DateTime $date |
|
640 | 644 | */ |
641 | 645 | protected function renderCalendarSelections($writer, $date) |
642 | 646 | { |
@@ -741,6 +745,7 @@ discard block |
||
741 | 745 | * "MMMM" will return the month names, "MM" or "MMM" return abbr. month names |
742 | 746 | * and "M" return month digits. |
743 | 747 | * @param DateTimeFormatInfo localized date format information. |
748 | + * @param \Prado\I18N\core\DateTimeFormatInfo $info |
|
744 | 749 | * @return array localized month names. |
745 | 750 | */ |
746 | 751 | protected function getLocalizedMonthNames($info) |