@@ -207,7 +207,7 @@ |
||
207 | 207 | * |
208 | 208 | * @since 1.9 |
209 | 209 | * |
210 | - * @param array $propertyIds |
|
210 | + * @param integer[] $propertyIds |
|
211 | 211 | * |
212 | 212 | * @return array |
213 | 213 | */ |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * @since 1.9 |
36 | 36 | * |
37 | - * @param array $diType |
|
37 | + * @param array $diTypes |
|
38 | 38 | * @param array $specialProperties |
39 | 39 | * @param array $userDefinedFixedProperties |
40 | 40 | */ |
@@ -161,6 +161,9 @@ discard block |
||
161 | 161 | return $this->compositePropertyTableDiffIterator; |
162 | 162 | } |
163 | 163 | |
164 | + /** |
|
165 | + * @param integer $sid |
|
166 | + */ |
|
164 | 167 | private function fetchPropertyTableHashesForId( $sid ) { |
165 | 168 | return $this->store->getObjectIds()->getPropertyTableHashes( $sid ); |
166 | 169 | } |
@@ -188,7 +191,6 @@ discard block |
||
188 | 191 | * |
189 | 192 | * @since 1.8 |
190 | 193 | * @param integer $sid |
191 | - * @param TableDefinition $tableDeclaration |
|
192 | 194 | * @return array |
193 | 195 | */ |
194 | 196 | private function fetchCurrentContentsForPropertyTable( $sid, TableDefinition $propertyTable ) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | /** |
45 | 45 | * @param Description $description |
46 | 46 | * |
47 | - * @return QuerySegment |
|
47 | + * @return \SMW\SQLStore\QueryEngine\QuerySegment |
|
48 | 48 | * @throws InvalidArgumentException |
49 | 49 | */ |
50 | 50 | public function interpretDescription( Description $description ) { |
@@ -63,7 +63,6 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * @since 2.2 |
65 | 65 | * |
66 | - * @param DescriptionInterpreter $defaultInterpreter |
|
67 | 66 | */ |
68 | 67 | public function addInterpreter( DescriptionInterpreter $interpreter ) { |
69 | 68 | $this->interpreters[] = $interpreter; |
@@ -197,7 +197,7 @@ |
||
197 | 197 | * ValueDescription objects, create and return a plain WHERE condition |
198 | 198 | * string for it. |
199 | 199 | * |
200 | - * @param $query |
|
200 | + * @param QuerySegment $query |
|
201 | 201 | * @param Description $description |
202 | 202 | * @param SMWSQLStore3Table $proptable |
203 | 203 | * @param DataItemHandler $diHandler for that table |
@@ -277,6 +277,9 @@ discard block |
||
277 | 277 | return DebugOutputFormatter::formatOutputFor( 'SQLStore', $entries, $query ); |
278 | 278 | } |
279 | 279 | |
280 | + /** |
|
281 | + * @param QuerySegment $qobj |
|
282 | + */ |
|
280 | 283 | private function doPrepareDebugQueryResult( $qobj, $sqlOptions, &$entries ) { |
281 | 284 | |
282 | 285 | $db = $this->store->getConnection(); |
@@ -501,6 +504,9 @@ discard block |
||
501 | 504 | } |
502 | 505 | } |
503 | 506 | |
507 | + /** |
|
508 | + * @param QuerySegment $qobj |
|
509 | + */ |
|
504 | 510 | private function collectedRequiredExtraPropertyDescriptions( $qobj ) { |
505 | 511 | $extraProperties = array(); |
506 | 512 | |
@@ -526,6 +532,10 @@ discard block |
||
526 | 532 | return $extraProperties; |
527 | 533 | } |
528 | 534 | |
535 | + /** |
|
536 | + * @param QuerySegment $qobj |
|
537 | + * @param integer $qid |
|
538 | + */ |
|
529 | 539 | private function compileAccordingConditionsAndHackThemIntoQobj( array $extraProperties, $qobj, $qid ) { |
530 | 540 | $this->querySegmentListBuilder->setSortKeys( $this->sortKeys ); |
531 | 541 | $this->querySegmentListBuilder->buildQuerySegmentFor( new Conjunction( $extraProperties ) ); |
@@ -177,7 +177,7 @@ |
||
177 | 177 | /** |
178 | 178 | * @since 2.2 |
179 | 179 | * |
180 | - * @return array |
|
180 | + * @return string[] |
|
181 | 181 | */ |
182 | 182 | public function getErrors() { |
183 | 183 | return $this->errors; |
@@ -85,6 +85,7 @@ |
||
85 | 85 | * @since 2.2 |
86 | 86 | * |
87 | 87 | * @param &$querySegmentList |
88 | + * @param QuerySegment[] $querySegmentList |
|
88 | 89 | */ |
89 | 90 | public function setQuerySegmentList( &$querySegmentList ) { |
90 | 91 | $this->querySegmentList =& $querySegmentList; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * |
133 | 133 | * @since 1.8 |
134 | 134 | * @param array $data array of SMWDataItem objects |
135 | - * @param SMWRequestOptions|null $requestoptions |
|
135 | + * @param null|RequestOptions $requestOptions |
|
136 | 136 | * |
137 | 137 | * @return SMWDataItem[] |
138 | 138 | */ |
@@ -170,6 +170,9 @@ discard block |
||
170 | 170 | return $result; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param boolean $keepDataValue |
|
175 | + */ |
|
173 | 176 | private function applyStringConditions( $requestOptions, $label, $keepDataValue ) { |
174 | 177 | |
175 | 178 | foreach ( $requestOptions->getStringConditions() as $strcond ) { // apply string conditions |
@@ -189,6 +192,9 @@ discard block |
||
189 | 192 | return $keepDataValue; |
190 | 193 | } |
191 | 194 | |
195 | + /** |
|
196 | + * @param boolean $isNumeric |
|
197 | + */ |
|
192 | 198 | private function applyBoundaryConditions( $requestOptions, $value, $isNumeric ) { |
193 | 199 | $keepDataValue = true; // keep datavalue only if this remains true |
194 | 200 | |
@@ -229,6 +235,9 @@ discard block |
||
229 | 235 | return array( $label, $value ); |
230 | 236 | } |
231 | 237 | |
238 | + /** |
|
239 | + * @param boolean $isNumeric |
|
240 | + */ |
|
232 | 241 | private function applySortRestriction( $requestOptions, &$result, $sortres, $isNumeric ) { |
233 | 242 | |
234 | 243 | if ( !$requestOptions->sort ) { |