@@ -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()); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @param FullTextSearch_IIndexDocuments $client Search client |
45 | 45 | * |
46 | - * @return Void |
|
46 | + * @return FullTextSearchTrackerActions |
|
47 | 47 | */ |
48 | 48 | public function __construct(FullTextSearch_IIndexDocuments $client, ElasticSearch_1_2_RequestTrackerDataFactory $tracker_data_factory, Logger $logger) { |
49 | 49 | $this->client = $client; |
@@ -77,6 +77,9 @@ discard block |
||
77 | 77 | $this->indexAllArtifacts($tracker); |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param Tracker $tracker |
|
82 | + */ |
|
80 | 83 | private function deleteTracker($tracker) { |
81 | 84 | $tracker_id = $tracker->getId(); |
82 | 85 |
@@ -44,6 +44,10 @@ discard block |
||
44 | 44 | $this->logger = $logger; |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param integer $project_id |
|
49 | + * @param integer $wiki_page_id |
|
50 | + */ |
|
47 | 51 | private function indexOrUpdate($project_id, $wiki_page_id, $data) { |
48 | 52 | try { |
49 | 53 | $this->client->getIndexedElement($project_id, $wiki_page_id); |
@@ -113,6 +117,9 @@ discard block |
||
113 | 117 | } |
114 | 118 | } |
115 | 119 | |
120 | + /** |
|
121 | + * @param integer $project_id |
|
122 | + */ |
|
116 | 123 | private function deleteForProject($project_id) { |
117 | 124 | $this->logger->debug('[Wiki] ElasticSearch: deleting all project wiki pages #' . $project_id); |
118 | 125 | |
@@ -143,6 +150,9 @@ discard block |
||
143 | 150 | $this->indexOrUpdate($wiki_page->getGid(), $wiki_page->getId(), $update_data); |
144 | 151 | } |
145 | 152 | |
153 | + /** |
|
154 | + * @param integer $project_id |
|
155 | + */ |
|
146 | 156 | private function indexAllProjectWikiPages($project_id) { |
147 | 157 | $indexable_pages = $this->getAllIndexablePagesForProject($project_id); |
148 | 158 |