@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | private $_active=false; |
547 | 547 | |
548 | 548 | /** |
549 | - * @return the tag name for the view element |
|
549 | + * @return string tag name for the view element |
|
550 | 550 | */ |
551 | 551 | protected function getTagName() |
552 | 552 | { |
@@ -714,6 +714,7 @@ discard block |
||
714 | 714 | /** |
715 | 715 | * Finds the index of the tab view whose ID is the same as the one being looked for. |
716 | 716 | * @param string the explicit ID of the tab view to be looked for |
717 | + * @param string $id |
|
717 | 718 | * @return integer the index of the tab view found, -1 if not found. |
718 | 719 | */ |
719 | 720 | public function findIndexByID($id) |
@@ -113,6 +113,7 @@ |
||
113 | 113 | |
114 | 114 | /** |
115 | 115 | * @param string button caption |
116 | + * @param string $value |
|
116 | 117 | */ |
117 | 118 | public function setButtonText($value) |
118 | 119 | { |
@@ -213,7 +213,7 @@ |
||
213 | 213 | /** |
214 | 214 | * Returns the value to be validated. |
215 | 215 | * This methid is required by IValidatable interface. |
216 | - * @return mixed the value of the property to be validated. |
|
216 | + * @return string the value of the property to be validated. |
|
217 | 217 | */ |
218 | 218 | public function getValidationPropertyValue() |
219 | 219 | { |
@@ -213,7 +213,7 @@ |
||
213 | 213 | /** |
214 | 214 | * Returns the value to be validated. |
215 | 215 | * This methid is required by IValidatable interface. |
216 | - * @return mixed the value of the property to be validated. |
|
216 | + * @return string the value of the property to be validated. |
|
217 | 217 | */ |
218 | 218 | public function getValidationPropertyValue() |
219 | 219 | { |
@@ -422,6 +422,7 @@ discard block |
||
422 | 422 | |
423 | 423 | /** |
424 | 424 | * Parse additional options set in the Options property. |
425 | + * @param string $string |
|
425 | 426 | * @return array additional custom options |
426 | 427 | */ |
427 | 428 | protected function parseEditorOptions($string) |
@@ -446,6 +447,7 @@ discard block |
||
446 | 447 | } |
447 | 448 | |
448 | 449 | /** |
450 | + * @param string $culture |
|
449 | 451 | * @return string localized editor interface language extension. |
450 | 452 | */ |
451 | 453 | protected function getLanguageSuffix($culture) |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | } |
200 | 200 | |
201 | 201 | /** |
202 | - * @return boolean true to post the inputs of the form on callback, default |
|
202 | + * @return string true to post the inputs of the form on callback, default |
|
203 | 203 | * is post the inputs on callback. |
204 | 204 | */ |
205 | 205 | public function getPostState() |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
220 | - * @return integer callback request timeout. |
|
220 | + * @return string callback request timeout. |
|
221 | 221 | */ |
222 | 222 | public function getRequestTimeOut() |
223 | 223 | { |
@@ -261,6 +261,7 @@ discard block |
||
261 | 261 | * update. This will automatically set HasPrority to true. |
262 | 262 | * @param boolean true enables the callback response to update the |
263 | 263 | * viewstate. |
264 | + * @param boolean $value |
|
264 | 265 | */ |
265 | 266 | public function setEnablePageStateUpdate($value) |
266 | 267 | { |
@@ -269,7 +270,7 @@ discard block |
||
269 | 270 | } |
270 | 271 | |
271 | 272 | /** |
272 | - * @return boolean client-side viewstate will be updated on callback |
|
273 | + * @return boolean|string client-side viewstate will be updated on callback |
|
273 | 274 | * response if true. Default is true. |
274 | 275 | */ |
275 | 276 | public function getEnablePageStateUpdate() |
@@ -145,6 +145,10 @@ discard block |
||
145 | 145 | */ |
146 | 146 | public abstract function performAction($args); |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $dir |
|
150 | + * @param integer $mask |
|
151 | + */ |
|
148 | 152 | protected function createDirectory($dir, $mask) |
149 | 153 | { |
150 | 154 | if(!is_dir($dir)) |
@@ -156,6 +160,9 @@ discard block |
||
156 | 160 | chmod($dir, $mask); |
157 | 161 | } |
158 | 162 | |
163 | + /** |
|
164 | + * @param string $filename |
|
165 | + */ |
|
159 | 166 | protected function createFile($filename, $content) |
160 | 167 | { |
161 | 168 | if(!is_file($filename)) |
@@ -304,6 +311,9 @@ discard block |
||
304 | 311 | '; |
305 | 312 | } |
306 | 313 | |
314 | + /** |
|
315 | + * @param string $appName |
|
316 | + */ |
|
307 | 317 | protected function renderConfigFile($appName) |
308 | 318 | { |
309 | 319 | return <<<EOD |
@@ -500,6 +510,9 @@ discard block |
||
500 | 510 | require_once($TEST_TOOLS.'/simpletest/reporter.php'); |
501 | 511 | } |
502 | 512 | |
513 | + /** |
|
514 | + * @param string $dir |
|
515 | + */ |
|
503 | 516 | protected function runUnitTests($dir, $args) |
504 | 517 | { |
505 | 518 | $app_dir = $this->getAppDir($dir); |
@@ -538,6 +551,9 @@ discard block |
||
538 | 551 | return realpath($dir.'/tests/unit/'); |
539 | 552 | } |
540 | 553 | |
554 | + /** |
|
555 | + * @param string $dir |
|
556 | + */ |
|
541 | 557 | protected function getUnitTestCases($dir,$args) |
542 | 558 | { |
543 | 559 | $matches = null; |
@@ -565,6 +581,9 @@ discard block |
||
565 | 581 | closedir($dir); |
566 | 582 | } |
567 | 583 | |
584 | + /** |
|
585 | + * @param string $entry |
|
586 | + */ |
|
568 | 587 | protected function hasMatch($match,$entry) |
569 | 588 | { |
570 | 589 | $file = strtolower(substr($entry,0,strrpos($entry,'.'))); |
@@ -630,6 +649,9 @@ discard block |
||
630 | 649 | return false; |
631 | 650 | } |
632 | 651 | |
652 | + /** |
|
653 | + * @param string $app_dir |
|
654 | + */ |
|
633 | 655 | protected function getActiveRecordConfig($app_dir) |
634 | 656 | { |
635 | 657 | if(false === ($xml=$this->getXmlFile($app_dir))) |
@@ -645,6 +667,9 @@ discard block |
||
645 | 667 | return false; |
646 | 668 | } |
647 | 669 | |
670 | + /** |
|
671 | + * @param string $app_dir |
|
672 | + */ |
|
648 | 673 | protected function getOutputFile($app_dir, $namespace) |
649 | 674 | { |
650 | 675 | if(is_file($namespace) && strpos($namespace, $app_dir)===0) |
@@ -659,6 +684,9 @@ discard block |
||
659 | 684 | return false; |
660 | 685 | } |
661 | 686 | |
687 | + /** |
|
688 | + * @param TActiveRecordConfig $config |
|
689 | + */ |
|
662 | 690 | protected function generateActiveRecord($config, $tablename, $output) |
663 | 691 | { |
664 | 692 | $manager = TActiveRecordManager::getInstance(); |
@@ -706,6 +734,9 @@ discard block |
||
706 | 734 | return $prop; |
707 | 735 | } |
708 | 736 | |
737 | + /** |
|
738 | + * @param string $class |
|
739 | + */ |
|
709 | 740 | protected function generateClass($properties, $tablename, $class) |
710 | 741 | { |
711 | 742 | $props = implode("\n", $properties); |
@@ -799,6 +830,9 @@ discard block |
||
799 | 830 | return false; |
800 | 831 | } |
801 | 832 | |
833 | + /** |
|
834 | + * @param string $app_dir |
|
835 | + */ |
|
802 | 836 | protected function getActiveRecordConfig($app_dir) { |
803 | 837 | if (false === ($xml = $this->getXmlFile($app_dir))) |
804 | 838 | return false; |
@@ -842,6 +876,9 @@ discard block |
||
842 | 876 | } |
843 | 877 | } |
844 | 878 | |
879 | + /** |
|
880 | + * @param string $l |
|
881 | + */ |
|
845 | 882 | public function generate($l) |
846 | 883 | { |
847 | 884 | $input = explode(" ", trim($l)); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | /** |
108 | 108 | * @param string a key identifying a value to be cached |
109 | - * @return sring a key generated from the provided key which ensures the uniqueness across applications |
|
109 | + * @return string a key generated from the provided key which ensures the uniqueness across applications |
|
110 | 110 | */ |
111 | 111 | protected function generateUniqueKey($key) |
112 | 112 | { |
@@ -198,6 +198,7 @@ discard block |
||
198 | 198 | * in {@link get()} already. So only the implementation of data retrieval |
199 | 199 | * is needed. |
200 | 200 | * @param string a unique key identifying the cached value |
201 | + * @param string $key |
|
201 | 202 | * @return string the value stored in cache, false if the value is not in the cache or expired. |
202 | 203 | */ |
203 | 204 | abstract protected function getValue($key); |
@@ -212,6 +213,8 @@ discard block |
||
212 | 213 | * @param string the key identifying the value to be cached |
213 | 214 | * @param string the value to be cached |
214 | 215 | * @param integer the number of seconds in which the cached value will expire. 0 means never expire. |
216 | + * @param string $key |
|
217 | + * @param integer $expire |
|
215 | 218 | * @return boolean true if the value is successfully stored into cache, false otherwise |
216 | 219 | */ |
217 | 220 | abstract protected function setValue($key,$value,$expire); |
@@ -226,6 +229,8 @@ discard block |
||
226 | 229 | * @param string the key identifying the value to be cached |
227 | 230 | * @param string the value to be cached |
228 | 231 | * @param integer the number of seconds in which the cached value will expire. 0 means never expire. |
232 | + * @param string $key |
|
233 | + * @param integer $expire |
|
229 | 234 | * @return boolean true if the value is successfully stored into cache, false otherwise |
230 | 235 | */ |
231 | 236 | abstract protected function addValue($key,$value,$expire); |
@@ -234,6 +239,7 @@ discard block |
||
234 | 239 | * Deletes a value with the specified key from cache |
235 | 240 | * This method should be implemented by child classes to delete the data from actual cache storage. |
236 | 241 | * @param string the key of the value to be deleted |
242 | + * @param string $key |
|
237 | 243 | * @return boolean if no error happens during deletion |
238 | 244 | */ |
239 | 245 | abstract protected function deleteValue($key); |
@@ -490,6 +496,7 @@ discard block |
||
490 | 496 | * By default, it always returns true, meaning the file should be checked. |
491 | 497 | * You may override this method to check only certain files. |
492 | 498 | * @param string the name of the file that may be checked for dependency. |
499 | + * @param string $fileName |
|
493 | 500 | * @return boolean whether this file should be checked. |
494 | 501 | */ |
495 | 502 | protected function validateFile($fileName) |
@@ -503,6 +510,7 @@ discard block |
||
503 | 510 | * By default, it always returns true, meaning the subdirectory should be checked. |
504 | 511 | * You may override this method to check only certain subdirectories. |
505 | 512 | * @param string the name of the subdirectory that may be checked for dependency. |
513 | + * @param string $directory |
|
506 | 514 | * @return boolean whether this subdirectory should be checked. |
507 | 515 | */ |
508 | 516 | protected function validateDirectory($directory) |
@@ -516,6 +524,7 @@ discard block |
||
516 | 524 | * {@link setRecursiveCheck RecursiveCheck} is set true. |
517 | 525 | * @param string the directory name |
518 | 526 | * @param int level of the recursion |
527 | + * @param string $directory |
|
519 | 528 | * @return array list of file modification time indexed by the file path |
520 | 529 | */ |
521 | 530 | protected function generateTimestamps($directory,$level=0) |
@@ -93,6 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @param boolean whether the keys are case-sensitive. |
96 | + * @param boolean $value |
|
96 | 97 | */ |
97 | 98 | public function setCaseSensitive($value) |
98 | 99 | { |
@@ -126,6 +127,7 @@ discard block |
||
126 | 127 | * Removes an item from the map by its key. |
127 | 128 | * This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false. |
128 | 129 | * @param mixed the key of the item to be removed |
130 | + * @param string $key |
|
129 | 131 | * @return mixed the removed value, null if no such key exists. |
130 | 132 | */ |
131 | 133 | public function remove($key) |