@@ -33,6 +33,9 @@ |
||
33 | 33 | $this->selectedValue = 'beginning'; |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $v |
|
38 | + */ |
|
36 | 39 | function setDropDownName($v) { |
37 | 40 | $this->dropDownName = $v; |
38 | 41 | } |
@@ -37,6 +37,9 @@ |
||
37 | 37 | var $get_class_for_link; |
38 | 38 | var $hp; |
39 | 39 | |
40 | + /** |
|
41 | + * @param Docman_View_RawTree $view |
|
42 | + */ |
|
40 | 43 | function Docman_View_ItemTreeUlVisitor($view, $params = null) { |
41 | 44 | $this->view =& $view; |
42 | 45 | $this->get_action_on_icon =& new Docman_View_GetActionOnIconVisitor(); |
@@ -54,6 +54,8 @@ discard block |
||
54 | 54 | |
55 | 55 | /** |
56 | 56 | * |
57 | + * @param ArrayIterator $reportIter |
|
58 | + * @param boolean $isAdmin |
|
57 | 59 | */ |
58 | 60 | function _getReportTableContent($reportIter, $isAdmin, &$altRowClass) { |
59 | 61 | $hp = Codendi_HTMLPurifier::instance(); |
@@ -119,6 +121,7 @@ discard block |
||
119 | 121 | |
120 | 122 | /** |
121 | 123 | * |
124 | + * @param integer $reportId |
|
122 | 125 | */ |
123 | 126 | function _getReportSettings($reportId) { |
124 | 127 | $html = ''; |
@@ -63,6 +63,10 @@ |
||
63 | 63 | private $fileStorage; |
64 | 64 | private $lockFactory; |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $className |
|
68 | + * @param string[] $methods |
|
69 | + */ |
|
66 | 70 | function getPartialMock($className, $methods) { |
67 | 71 | $partialName = $className.'Partial'.uniqid(); |
68 | 72 | Mock::generatePartial($className, $partialName, $methods); |
@@ -190,8 +190,14 @@ |
||
190 | 190 | * @param lb b is listened 0|1 |
191 | 191 | * @param lc c is listened 0|1 |
192 | 192 | * @param ld d is listened 0|1 |
193 | - * @param res expected result: item | from | from_wo_c | to | to_wo_b | none |
|
193 | + * @param res string result: item | from | from_wo_c | to | to_wo_b | none |
|
194 | 194 | * @param msg message to display if the test fail |
195 | + * @param integer $dr |
|
196 | + * @param integer $br |
|
197 | + * @param integer $cr |
|
198 | + * @param integer $lb |
|
199 | + * @param integer $lc |
|
200 | + * @param integer $ld |
|
195 | 201 | */ |
196 | 202 | function _runTest($dr, $br, $cr, $lb, $lc, $ld, $res, $msg = "%s") { |
197 | 203 | $msg = "[$dr, $br, $cr, $lb, $lc, $ld, $res] ". $msg; |
@@ -49,8 +49,10 @@ discard block |
||
49 | 49 | * @param list: mailing-list name |
50 | 50 | * @param date: date of attachment in YYYY_MM_DD format |
51 | 51 | * @param encod: encoding of attachment |
52 | + * @param string $filename |
|
53 | + * @param string $date |
|
52 | 54 | * |
53 | - * @return int size of attached file |
|
55 | + * @return string|false size of attached file |
|
54 | 56 | */ |
55 | 57 | function store($filename, $content, $list, $date, $encod="") { |
56 | 58 | $path = $this->_getPath($filename, $list, $date, "store"); |
@@ -91,6 +93,7 @@ discard block |
||
91 | 93 | * @param list: mailing-list name |
92 | 94 | * @param date: attachment date (YYYY_MM_DD) |
93 | 95 | * @param string type: upload/store |
96 | + * @param string $type |
|
94 | 97 | * |
95 | 98 | * @return string path |
96 | 99 | */ |
@@ -135,6 +138,9 @@ discard block |
||
135 | 138 | return $path.$name.$ext; |
136 | 139 | } |
137 | 140 | |
141 | + /** |
|
142 | + * @param string $path |
|
143 | + */ |
|
138 | 144 | function fileExists($path) { |
139 | 145 | return is_file($path); |
140 | 146 | } |
@@ -67,6 +67,8 @@ |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * HTML Purifier configuration factory |
70 | + * @param integer $level |
|
71 | + * @return integer |
|
70 | 72 | */ |
71 | 73 | function getHPConfig($level) { |
72 | 74 | $config = null; |
@@ -49,6 +49,12 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | // Insert values into forumml_attachment table |
52 | + |
|
53 | + /** |
|
54 | + * @param integer $id_message |
|
55 | + * @param string $filename |
|
56 | + * @param string|false $filepath |
|
57 | + */ |
|
52 | 58 | function insertAttachment($id_message, $filename,$filetype,$filepath,$content_id="") { |
53 | 59 | if (is_file($filepath)) { |
54 | 60 | $filesize = filesize($filepath); |
@@ -104,6 +110,9 @@ discard block |
||
104 | 110 | return false; |
105 | 111 | } |
106 | 112 | |
113 | + /** |
|
114 | + * @param integer $date |
|
115 | + */ |
|
107 | 116 | function updateParentDate($messageId, $date) { |
108 | 117 | if ($messageId != 0) { |
109 | 118 | $sql = 'SELECT id_parent, last_thread_update FROM plugin_forumml_message WHERE id_message = '.$messageId; |
@@ -24,6 +24,9 @@ discard block |
||
24 | 24 | |
25 | 25 | class ForumMLPluginInfo extends PluginInfo { |
26 | 26 | |
27 | + /** |
|
28 | + * @param ForumMLPlugin $plugin |
|
29 | + */ |
|
27 | 30 | function __construct($plugin) { |
28 | 31 | parent::__construct($plugin); |
29 | 32 | $this->setPluginDescriptor(new ForumMLPluginDescriptor()); |
@@ -82,6 +85,9 @@ discard block |
||
82 | 85 | } |
83 | 86 | } |
84 | 87 | |
88 | + /** |
|
89 | + * @param string $name |
|
90 | + */ |
|
85 | 91 | function getPropertyValueForName($name) { |
86 | 92 | $desc = $this->getPropertyDescriptorForName($name); |
87 | 93 | return $desc ? $desc->getValue() : $desc; |