@@ -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) |
@@ -75,6 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | /** |
77 | 77 | * @param boolean whether this list is read-only or not |
78 | + * @param boolean $value |
|
78 | 79 | */ |
79 | 80 | protected function setReadOnly($value) |
80 | 81 | { |
@@ -277,7 +278,7 @@ discard block |
||
277 | 278 | * Finds the base item. If found, the item is inserted after it. |
278 | 279 | * @param mixed the base item which comes before the second parameter when added to the list |
279 | 280 | * @param mixed the item |
280 | - * @return int the index where the item is inserted |
|
281 | + * @return double the index where the item is inserted |
|
281 | 282 | * @throws TInvalidDataValueException if the base item is not within this list |
282 | 283 | * @throws TInvalidOperationException if the list is read-only |
283 | 284 | * @since 3.2a |
@@ -80,6 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | /** |
82 | 82 | * @param boolean whether this list is read-only or not |
83 | + * @param boolean $value |
|
83 | 84 | */ |
84 | 85 | protected function setReadOnly($value) |
85 | 86 | { |
@@ -220,6 +221,7 @@ discard block |
||
220 | 221 | * Merges iterable data into the map. |
221 | 222 | * Existing data in the map will be kept and overwritten if the keys are the same. |
222 | 223 | * @param mixed the data to be merged with, must be an array or object implementing Traversable |
224 | + * @param TMap $data |
|
223 | 225 | * @throws TInvalidDataTypeException If data is neither an array nor an iterator. |
224 | 226 | */ |
225 | 227 | public function mergeWith($data) |
@@ -92,6 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | /** |
94 | 94 | * @param boolean whether to allow custom paging |
95 | + * @param boolean $value |
|
95 | 96 | */ |
96 | 97 | public function setCustomPaging($value) |
97 | 98 | { |
@@ -139,6 +140,7 @@ discard block |
||
139 | 140 | * Raises <b>OnPageIndexChanged</b> event. |
140 | 141 | * This event is raised each time when the list changes to a different page. |
141 | 142 | * @param TPagedListPageChangedEventParameter event parameter |
143 | + * @param TPagedListPageChangedEventParameter|null $param |
|
142 | 144 | */ |
143 | 145 | public function onPageIndexChanged($param) |
144 | 146 | { |
@@ -151,6 +153,7 @@ discard block |
||
151 | 153 | * and needs the new page of data. This event can only be raised when |
152 | 154 | * {@link setCustomPaging CustomPaging} is true. |
153 | 155 | * @param TPagedListFetchDataEventParameter event parameter |
156 | + * @param TPagedListFetchDataEventParameter $param |
|
154 | 157 | */ |
155 | 158 | public function onFetchData($param) |
156 | 159 | { |
@@ -380,6 +383,7 @@ discard block |
||
380 | 383 | /** |
381 | 384 | * Constructor. |
382 | 385 | * @param integer old page index |
386 | + * @param integer $oldPage |
|
383 | 387 | */ |
384 | 388 | public function __construct($oldPage) |
385 | 389 | { |
@@ -137,6 +137,7 @@ discard block |
||
137 | 137 | /** |
138 | 138 | * This must be called internally or when instantiated. |
139 | 139 | * @param numeric sets the default priority of inserted items without a specified priority |
140 | + * @param integer $value |
|
140 | 141 | */ |
141 | 142 | protected function setDefaultPriority($value) |
142 | 143 | { |
@@ -154,6 +155,7 @@ discard block |
||
154 | 155 | /** |
155 | 156 | * This must be called internally or when instantiated. |
156 | 157 | * @param integer The precision of numeric priorities. |
158 | + * @param integer $value |
|
157 | 159 | */ |
158 | 160 | protected function setPrecision($value) |
159 | 161 | { |
@@ -590,6 +592,7 @@ discard block |
||
590 | 592 | * Combines the map elements which have a priority below the parameter value |
591 | 593 | * @param numeric the cut-off priority. All items of priority less than this are returned. |
592 | 594 | * @param boolean whether or not the input cut-off priority is inclusive. Default: false, not inclusive. |
595 | + * @param integer $priority |
|
593 | 596 | * @return array the array of priorities keys with values of arrays of items that are below a specified priority. |
594 | 597 | * The priorities are sorted so important priorities, lower numerics, are first. |
595 | 598 | */ |
@@ -610,6 +613,7 @@ discard block |
||
610 | 613 | * Combines the map elements which have a priority above the parameter value |
611 | 614 | * @param numeric the cut-off priority. All items of priority greater than this are returned. |
612 | 615 | * @param boolean whether or not the input cut-off priority is inclusive. Default: true, inclusive. |
616 | + * @param integer $priority |
|
613 | 617 | * @return array the array of priorities keys with values of arrays of items that are above a specified priority. |
614 | 618 | * The priorities are sorted so important priorities, lower numerics, are first. |
615 | 619 | */ |
@@ -114,6 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | /** |
116 | 116 | * @param boolean whether this list is read-only or not |
117 | + * @param boolean $value |
|
117 | 118 | */ |
118 | 119 | protected function setReadOnly($value) |
119 | 120 | { |
@@ -131,6 +132,7 @@ discard block |
||
131 | 132 | /** |
132 | 133 | * This must be called internally or when instantiated. |
133 | 134 | * @param numeric sets the default priority of inserted items without a specified priority |
135 | + * @param integer $value |
|
134 | 136 | */ |
135 | 137 | protected function setDefaultPriority($value) |
136 | 138 | { |
@@ -148,6 +150,7 @@ discard block |
||
148 | 150 | /** |
149 | 151 | * This must be called internally or when instantiated. |
150 | 152 | * @param integer The precision of numeric priorities. |
153 | + * @param integer $value |
|
151 | 154 | */ |
152 | 155 | protected function setPrecision($value) |
153 | 156 | { |
@@ -338,7 +341,7 @@ discard block |
||
338 | 341 | * @param mixed key |
339 | 342 | * @param mixed value |
340 | 343 | * @param numeric|null priority, default: null, filled in with default priority |
341 | - * @return numeric priority at which the pair was added |
|
344 | + * @return string priority at which the pair was added |
|
342 | 345 | * @throws TInvalidOperationException if the map is read-only |
343 | 346 | */ |
344 | 347 | public function add($key,$value,$priority=null) |