@@ -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; |
@@ -549,6 +565,9 @@ discard block |
||
549 | 565 | return $test; |
550 | 566 | } |
551 | 567 | |
568 | + /** |
|
569 | + * @param GroupTest $test |
|
570 | + */ |
|
552 | 571 | protected function addTests($test,$path,$recursive=true,$match=null) |
553 | 572 | { |
554 | 573 | $dir=opendir($path); |
@@ -565,6 +584,9 @@ discard block |
||
565 | 584 | closedir($dir); |
566 | 585 | } |
567 | 586 | |
587 | + /** |
|
588 | + * @param string $entry |
|
589 | + */ |
|
568 | 590 | protected function hasMatch($match,$entry) |
569 | 591 | { |
570 | 592 | $file = strtolower(substr($entry,0,strrpos($entry,'.'))); |
@@ -630,6 +652,9 @@ discard block |
||
630 | 652 | return false; |
631 | 653 | } |
632 | 654 | |
655 | + /** |
|
656 | + * @param string $app_dir |
|
657 | + */ |
|
633 | 658 | protected function getActiveRecordConfig($app_dir) |
634 | 659 | { |
635 | 660 | if(false === ($xml=$this->getXmlFile($app_dir))) |
@@ -645,6 +670,9 @@ discard block |
||
645 | 670 | return false; |
646 | 671 | } |
647 | 672 | |
673 | + /** |
|
674 | + * @param string $app_dir |
|
675 | + */ |
|
648 | 676 | protected function getOutputFile($app_dir, $namespace) |
649 | 677 | { |
650 | 678 | if(is_file($namespace) && strpos($namespace, $app_dir)===0) |
@@ -659,6 +687,9 @@ discard block |
||
659 | 687 | return false; |
660 | 688 | } |
661 | 689 | |
690 | + /** |
|
691 | + * @param TActiveRecordConfig $config |
|
692 | + */ |
|
662 | 693 | protected function generateActiveRecord($config, $tablename, $output) |
663 | 694 | { |
664 | 695 | $manager = TActiveRecordManager::getInstance(); |
@@ -706,6 +737,9 @@ discard block |
||
706 | 737 | return $prop; |
707 | 738 | } |
708 | 739 | |
740 | + /** |
|
741 | + * @param string $class |
|
742 | + */ |
|
709 | 743 | protected function generateClass($properties, $tablename, $class) |
710 | 744 | { |
711 | 745 | $props = implode("\n", $properties); |
@@ -799,6 +833,9 @@ discard block |
||
799 | 833 | return false; |
800 | 834 | } |
801 | 835 | |
836 | + /** |
|
837 | + * @param string $app_dir |
|
838 | + */ |
|
802 | 839 | protected function getActiveRecordConfig($app_dir) { |
803 | 840 | if (false === ($xml = $this->getXmlFile($app_dir))) |
804 | 841 | return false; |
@@ -842,6 +879,9 @@ discard block |
||
842 | 879 | } |
843 | 880 | } |
844 | 881 | |
882 | + /** |
|
883 | + * @param string $l |
|
884 | + */ |
|
845 | 885 | public function generate($l) |
846 | 886 | { |
847 | 887 | $input = explode(" ", trim($l)); |
@@ -67,6 +67,9 @@ discard block |
||
67 | 67 | $this->displayTreeInternal(array_keys($this->_baseClasses),0); |
68 | 68 | } |
69 | 69 | |
70 | + /** |
|
71 | + * @param integer $level |
|
72 | + */ |
|
70 | 73 | public function displayTreeInternal($classNames,$level) |
71 | 74 | { |
72 | 75 | foreach($classNames as $className) |
@@ -153,6 +156,9 @@ discard block |
||
153 | 156 | } |
154 | 157 | } |
155 | 158 | |
159 | + /** |
|
160 | + * @param string $path |
|
161 | + */ |
|
156 | 162 | protected function isValidPath($path) |
157 | 163 | { |
158 | 164 | if(is_dir($path)) |
@@ -161,6 +167,9 @@ discard block |
||
161 | 167 | return basename($path)!==basename($path,'.php') && !isset($this->_exclusions[basename($path)]); |
162 | 168 | } |
163 | 169 | |
170 | + /** |
|
171 | + * @param string $path |
|
172 | + */ |
|
164 | 173 | public function getSourceFiles($path) |
165 | 174 | { |
166 | 175 | $files=array(); |
@@ -227,6 +236,9 @@ discard block |
||
227 | 236 | |
228 | 237 | } |
229 | 238 | |
239 | + /** |
|
240 | + * @param PradoVTMDocument $doc |
|
241 | + */ |
|
230 | 242 | private function processObjectType($objectType,$objectInfo,$prefix,$doc) |
231 | 243 | { |
232 | 244 | foreach($objectInfo['Properties'] as $name=>$property) |
@@ -100,6 +100,9 @@ |
||
100 | 100 | private $_filesElement; |
101 | 101 | private $_document; |
102 | 102 | |
103 | + /** |
|
104 | + * @param string $version |
|
105 | + */ |
|
103 | 106 | public function __construct($version) |
104 | 107 | { |
105 | 108 | $this->_document = new DOMDocument('1.0', 'utf-8'); |
@@ -10,6 +10,9 @@ |
||
10 | 10 | private $_index; |
11 | 11 | private $_api; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $api |
|
15 | + */ |
|
13 | 16 | public function __construct($index_file, $api) |
14 | 17 | { |
15 | 18 | $this->_api = $api; |
@@ -8,6 +8,10 @@ discard block |
||
8 | 8 | private $_base; |
9 | 9 | private $_source; |
10 | 10 | |
11 | + /** |
|
12 | + * @param string $base |
|
13 | + * @param string $source |
|
14 | + */ |
|
11 | 15 | public function __construct($index_file, $base, $source) |
12 | 16 | { |
13 | 17 | $this->_index = new Zend_Search_Lucene($index_file, true); |
@@ -37,6 +41,10 @@ discard block |
||
37 | 41 | echo "\n {$count} files indexed.\n"; |
38 | 42 | } |
39 | 43 | |
44 | + /** |
|
45 | + * @param string $content |
|
46 | + * @param integer $mtime |
|
47 | + */ |
|
40 | 48 | public function add($content, $section, $mtime) |
41 | 49 | { |
42 | 50 | foreach($this->split_headings($content) as $headers) |
@@ -71,6 +71,9 @@ |
||
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param string $filename |
|
76 | + */ |
|
74 | 77 | function include_figure($info, $filename) |
75 | 78 | { |
76 | 79 | $width = sprintf('%0.2f', $info[0]/(135/2.54)); |
@@ -48,6 +48,7 @@ |
||
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Fetches posts from database with offset and limit. |
51 | + * @param double $offset |
|
51 | 52 | */ |
52 | 53 | protected function getPosts($offset, $limit) |
53 | 54 | { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Returns a user instance given the user name. |
31 | 31 | * @param string user name, null if it is a guest. |
32 | - * @return TUser the user instance, null if the specified username is not in the user database. |
|
32 | + * @return BlogUser|null the user instance, null if the specified username is not in the user database. |
|
33 | 33 | */ |
34 | 34 | public function getUser($username=null) |
35 | 35 | { |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return $limit; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param integer $newOffset |
|
37 | + */ |
|
35 | 38 | private function formUrl($newOffset) |
36 | 39 | { |
37 | 40 | $gets=array(); |