@@ -573,6 +573,7 @@ |
||
573 | 573 | |
574 | 574 | /** |
575 | 575 | * Invokes a very generic errorpage. |
576 | + * @param string $message |
|
576 | 577 | */ |
577 | 578 | public function invokeGenericErrorPage($request, $message = null) |
578 | 579 | { |
@@ -116,11 +116,17 @@ discard block |
||
116 | 116 | return $this->request->getQueryParam('parent') !== '' ? $this->request->getQueryParam('parent') : null; |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @return integer |
|
121 | + */ |
|
119 | 122 | public function getOffset() |
120 | 123 | { |
121 | 124 | return ($this->request->getQueryParam('offset') && is_numeric($this->request->getQueryParam('offset')) && $this->request->getQueryParam('offset') >= 0) ? $this->request->getQueryParam('offset') : 0; |
122 | 125 | } |
123 | 126 | |
127 | + /** |
|
128 | + * @return integer|null |
|
129 | + */ |
|
124 | 130 | public function getSearchLimit() |
125 | 131 | { |
126 | 132 | return $this->config->getDefaultSearchLimit(); |
@@ -130,6 +136,9 @@ discard block |
||
130 | 136 | return $this->unique; |
131 | 137 | } |
132 | 138 | |
139 | + /** |
|
140 | + * @param boolean $unique |
|
141 | + */ |
|
133 | 142 | public function setUnique($unique) { |
134 | 143 | $this->unique = $unique; |
135 | 144 | } |
@@ -143,6 +143,7 @@ discard block |
||
143 | 143 | /** |
144 | 144 | * @param array $langs Languages to query for |
145 | 145 | * @param string[] $props property names |
146 | + * @return string |
|
146 | 147 | */ |
147 | 148 | private function generateCountLangConceptsQuery($langs, $classes, $props) { |
148 | 149 | $gc = $this->graphClause; |
@@ -584,7 +585,7 @@ discard block |
||
584 | 585 | |
585 | 586 | /** |
586 | 587 | * Generate a VALUES clause for limiting the targeted graphs. |
587 | - * @param array $vocabs array of Vocabulary objects to target |
|
588 | + * @param Vocabulary[] $vocabs array of Vocabulary objects to target |
|
588 | 589 | * @return string VALUES clause, or "" if not necessary to limit |
589 | 590 | */ |
590 | 591 | protected function formatValuesGraph($vocabs) { |
@@ -789,16 +790,7 @@ discard block |
||
789 | 790 | |
790 | 791 | /** |
791 | 792 | * Query for concepts using a search term. |
792 | - * @param string $term search term |
|
793 | 793 | * @param array $vocabs array of Vocabulary objects to search; empty for global search |
794 | - * @param string $lang language code of the returned labels |
|
795 | - * @param string $search_lang language code used for matching labels (null means any language) |
|
796 | - * @param int $limit maximum number of hits to retrieve; 0 for unlimited |
|
797 | - * @param int $offset offset of results to retrieve; 0 for beginning of list |
|
798 | - * @param string $arrayClass the URI for thesaurus array class, or null if not used |
|
799 | - * @param array $types limit search to concepts of the given type(s) |
|
800 | - * @param string $parent limit search to concepts which have the given concept as parent in the transitive broader hierarchy |
|
801 | - * @param string $group limit search to concepts which are in the given group |
|
802 | 794 | * @param boolean $hidden include matches on hidden labels (default: true) |
803 | 795 | * @param array $fields extra fields to include in the result (array of strings). (default: null = none) |
804 | 796 | * @param boolean $unique restrict results to unique concepts (default: false) |
@@ -942,16 +934,7 @@ discard block |
||
942 | 934 | |
943 | 935 | /** |
944 | 936 | * Query for concepts using a search term. |
945 | - * @param string $term search term |
|
946 | 937 | * @param array $vocabs array of Vocabulary objects to search; empty for global search |
947 | - * @param string $lang language code of the returned labels |
|
948 | - * @param string $search_lang language code used for matching labels (null means any language) |
|
949 | - * @param int $limit maximum number of hits to retrieve; 0 for unlimited |
|
950 | - * @param int $offset offset of results to retrieve; 0 for beginning of list |
|
951 | - * @param string $arrayClass the URI for thesaurus array class, or null if not used |
|
952 | - * @param array $types limit search to concepts of the given type(s) |
|
953 | - * @param string $parent limit search to concepts which have the given concept as parent in the transitive broader hierarchy |
|
954 | - * @param string $group limit search to concepts which are in the given group |
|
955 | 938 | * @param boolean $hidden include matches on hidden labels (default: true) |
956 | 939 | * @param array $fields extra fields to include in the result (array of strings). (default: null = none) |
957 | 940 | * @param boolean $unique restrict results to unique concepts (default: false) |