@@ -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 | } |
@@ -43,7 +43,6 @@ |
||
43 | 43 | * |
44 | 44 | * @param string $type |
45 | 45 | * @param string $document_id |
46 | - * @param array $options Parameters to pass to delete action |
|
47 | 46 | * |
48 | 47 | * @return array |
49 | 48 | */ |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * Search for data in the index, filter them with permissions |
29 | 29 | * |
30 | - * @param String $term terms |
|
30 | + * @param String $terms terms |
|
31 | 31 | * @param array $facets submitted by user for faceted navigation |
32 | 32 | * @param int $offset The offset of the search |
33 | 33 | * @param PFUser $user The user which do the request |
@@ -182,7 +182,6 @@ discard block |
||
182 | 182 | * Update document approval comments |
183 | 183 | * |
184 | 184 | * @param Docman_Item $item |
185 | - * @param Docman_Version $version |
|
186 | 185 | */ |
187 | 186 | public function indexDocumentApprovalComment(Docman_Item $item) { |
188 | 187 | $this->logger->debug('index new document approval comment #' . $item->getId()); |
@@ -227,7 +226,7 @@ discard block |
||
227 | 226 | * Index a new document with permissions |
228 | 227 | * |
229 | 228 | * @param Docman_Item $item The docman item |
230 | - * @param Docman_Version $version The version to index |
|
229 | + * @param Docman_LinkVersion $version The version to index |
|
231 | 230 | */ |
232 | 231 | public function indexNewLinkVersion(Docman_Item $item, Docman_LinkVersion $version) { |
233 | 232 | try { |
@@ -245,7 +244,6 @@ discard block |
||
245 | 244 | * Index a new wiki document with permissions |
246 | 245 | * |
247 | 246 | * @param Docman_Item $item The docman item |
248 | - * @param Docman_Version $version The version to index |
|
249 | 247 | * @param array $wiki_page_metadata WikiPage metadata |
250 | 248 | */ |
251 | 249 | public function indexNewWikiVersion(Docman_Item $item, array $wiki_page_metadata) { |
@@ -411,6 +409,9 @@ discard block |
||
411 | 409 | |
412 | 410 | } |
413 | 411 | |
412 | + /** |
|
413 | + * @param integer $project_id |
|
414 | + */ |
|
414 | 415 | public function reIndexProjectDocuments( |
415 | 416 | Docman_ProjectItemsBatchIterator $document_iterator, |
416 | 417 | $project_id, |
@@ -24,6 +24,9 @@ |
||
24 | 24 | |
25 | 25 | class FulltextsearchPluginInfo extends PluginFileInfo { |
26 | 26 | |
27 | + /** |
|
28 | + * @param fulltextsearchPlugin $plugin |
|
29 | + */ |
|
27 | 30 | public function __construct($plugin) { |
28 | 31 | parent::__construct($plugin, 'fulltextsearch'); |
29 | 32 | $this->setPluginDescriptor(new FulltextsearchPluginDescriptor()); |