@@ -27,6 +27,9 @@ discard block |
||
27 | 27 | |
28 | 28 | class DocmanWatermarkPluginInfo extends PluginInfo { |
29 | 29 | |
30 | + /** |
|
31 | + * @param DocmanWatermarkPlugin $plugin |
|
32 | + */ |
|
30 | 33 | function __construct($plugin) { |
31 | 34 | $this->PluginInfo($plugin); |
32 | 35 | $this->setPluginDescriptor(new DocmanWatermarkPluginDescriptor()); |
@@ -84,6 +87,11 @@ discard block |
||
84 | 87 | } |
85 | 88 | } |
86 | 89 | |
90 | + /** |
|
91 | + * @param string $name |
|
92 | + * |
|
93 | + * @return string |
|
94 | + */ |
|
87 | 95 | function getPropertyValueForName($name) { |
88 | 96 | $desc = $this->getPropertyDescriptorForName($name); |
89 | 97 | return $desc ? $desc->getValue() : $desc; |
@@ -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; |
@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | $this->_namePattern = "`[^a-z0-9_-]`i"; |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $path |
|
43 | + */ |
|
41 | 44 | private function _deleteIfExists($path) { |
42 | 45 | if (is_dir($path)) { |
43 | 46 | rmdir($path); |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | } |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param string $path |
|
54 | + */ |
|
49 | 55 | private function _getFileStorage($path) { |
50 | 56 | $fs = new ForumML_FileStorageTestVersion($this); |
51 | 57 | $fs->root = $path; |
@@ -661,6 +661,9 @@ |
||
661 | 661 | echo '</div>'; |
662 | 662 | } |
663 | 663 | |
664 | +/** |
|
665 | + * @param string $link |
|
666 | + */ |
|
664 | 667 | function getAnonymousForumMLReplyURL($link) { |
665 | 668 | return '/account/login.php?return_to='.urlencode($link); |
666 | 669 | } |
@@ -180,7 +180,6 @@ |
||
180 | 180 | * Builds the indexed data for first indexation |
181 | 181 | * |
182 | 182 | * @param Docman_Item $item |
183 | - * @param Docman_Version $version |
|
184 | 183 | * |
185 | 184 | * @return array |
186 | 185 | */ |
@@ -77,6 +77,7 @@ discard block |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
80 | + * @param string $terms |
|
80 | 81 | * @return array to be used for querying ES |
81 | 82 | */ |
82 | 83 | protected function getSearchInFieldsQuery($terms, $fields, $offset) { |
@@ -161,6 +162,9 @@ discard block |
||
161 | 162 | return $query; |
162 | 163 | } |
163 | 164 | |
165 | + /** |
|
166 | + * @param string[] $returned_fields |
|
167 | + */ |
|
164 | 168 | private function addFieldsForDocman(&$returned_fields) { |
165 | 169 | $returned_fields[] = 'title'; |
166 | 170 | } |