@@ -73,7 +73,7 @@ |
||
73 | 73 | /** |
74 | 74 | * Get the number of rows in the result object. |
75 | 75 | * |
76 | - * @return interger number of result rows |
|
76 | + * @return integer number of result rows |
|
77 | 77 | */ |
78 | 78 | public function numRows() { |
79 | 79 | return count( $this->data ); |
@@ -126,6 +126,9 @@ |
||
126 | 126 | ); |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param string $xmlResultData |
|
131 | + */ |
|
129 | 132 | private function parseXml( $xmlResultData ) { |
130 | 133 | return xml_parse( $this->parser, $xmlResultData, true ); |
131 | 134 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * @since 1.6 |
53 | 53 | * |
54 | 54 | * @param ExpNsResource $expNsResource string URI to check |
55 | - * @param boolean $existsthat is set to true if $expNsResource is in the |
|
55 | + * @param boolean|null $exists is set to true if $expNsResource is in the |
|
56 | 56 | * store; always false for blank nodes; always true for subobjects |
57 | 57 | * |
58 | 58 | * @return ExpNsResource |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace SMW\SPARQLStore; |
4 | 4 | |
5 | 5 | use RuntimeException; |
6 | -use Onoi\Cache\Cache; |
|
7 | -use SMW\ApplicationFactory; |
|
8 | 6 | use SMW\InMemoryPoolCache; |
9 | 7 | use SMW\DIWikiPage; |
10 | 8 | use SMWExpNsResource as ExpNsResource; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\SPARQLStore\Exception\BadHttpDatabaseResponseException; |
6 | 6 | use SMW\SPARQLStore\QueryEngine\RepositoryResult; |
7 | 7 | use SMW\SPARQLStore\QueryEngine\XmlResponseParser; |
8 | -use SMWSparqlResultParser as SparqlResultParser; |
|
9 | 8 | use SMWTurtleSerializer as TurtleSerializer; |
10 | 9 | |
11 | 10 | /** |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * rdfs, property, xsd, so these do not have to be included in |
133 | 133 | * $extraNamespaces. |
134 | 134 | * |
135 | - * @param $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
135 | + * @param string $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
136 | 136 | * @param $where string WHERE part of the query, without surrounding { } |
137 | 137 | * @param $options array (associative) of options, e.g. array( 'LIMIT' => '10' ) |
138 | 138 | * @param $extraNamespaces array (associative) of namespaceId => namespaceUri |
@@ -549,8 +549,8 @@ discard block |
||
549 | 549 | } |
550 | 550 | |
551 | 551 | /** |
552 | - * @param $endpoint string URL of endpoint that was used |
|
553 | - * @param $sparql string query that caused the problem |
|
552 | + * @param string $endpoint string URL of endpoint that was used |
|
553 | + * @param string $sparql string query that caused the problem |
|
554 | 554 | */ |
555 | 555 | protected function mapHttpRequestError( $endpoint, $sparql ) { |
556 | 556 | |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | * |
567 | 567 | * @param integer $timeout |
568 | 568 | * |
569 | - * @return SparqlDatabase |
|
569 | + * @return GenericHttpRepositoryConnector |
|
570 | 570 | */ |
571 | 571 | public function setConnectionTimeoutInSeconds( $timeout = 10 ) { |
572 | 572 | $this->httpRequest->setOption( CURLOPT_CONNECTTIMEOUT, $timeout ); |
@@ -403,7 +403,7 @@ |
||
403 | 403 | * |
404 | 404 | * @param string $connectionTypeId |
405 | 405 | * |
406 | - * @return mixed |
|
406 | + * @return RepositoryConnection |
|
407 | 407 | */ |
408 | 408 | public function getConnection( $connectionTypeId = 'sparql' ) { |
409 | 409 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * @since 2.3 |
72 | 72 | * |
73 | - * @param integer $chunkSize |
|
73 | + * @param integer $triplesChunkSize |
|
74 | 74 | */ |
75 | 75 | public function setTriplesChunkSize( $triplesChunkSize ) { |
76 | 76 | $this->triplesChunkSize = (int)$triplesChunkSize; |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | /** |
149 | 149 | * @since 2.0 |
150 | 150 | * |
151 | - * @return boolean |
|
151 | + * @return null|boolean |
|
152 | 152 | */ |
153 | 153 | public function hasTriplesForUpdate() { |
154 | 154 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * @since 2.0 |
164 | 164 | * |
165 | - * @return boolean |
|
165 | + * @return boolean|null |
|
166 | 166 | */ |
167 | 167 | public static function reset() { |
168 | 168 | TurtleSerializer::reset(); |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | * @since 1.6 |
306 | 306 | * @param ExpData $expData object containing the update data |
307 | 307 | * @param $auxiliaryExpData array of SMWExpData |
308 | - * @param $expandSubject boolean controls if redirects/auxiliary data should also be sought for subject |
|
308 | + * @param boolean $expandSubject boolean controls if redirects/auxiliary data should also be sought for subject |
|
309 | 309 | * |
310 | 310 | * @return ExpData |
311 | 311 | */ |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * @since 2.3 |
91 | 91 | * |
92 | - * @param array|false $namespaces |
|
92 | + * @param boolean $namespaces |
|
93 | 93 | */ |
94 | 94 | public function setNamespacesTo( $namespaces ) { |
95 | 95 | $this->namespaces = $namespaces; |
@@ -210,6 +210,7 @@ discard block |
||
210 | 210 | /** |
211 | 211 | * @param integer $id |
212 | 212 | * @param UpdateJob[] &$updatejobs |
213 | + * @param boolean $emptyrange |
|
213 | 214 | */ |
214 | 215 | private function createUpdateJobsForSmwIdRange( $id, &$updatejobs, &$emptyrange ) { |
215 | 216 |
@@ -5,10 +5,8 @@ |
||
5 | 5 | use SMW\SemanticData; |
6 | 6 | use SMW\DIWikiPage; |
7 | 7 | use SMW\DIProperty; |
8 | -use SMW\Store; |
|
9 | 8 | use SMW\MediaWiki\Jobs\UpdateJob; |
10 | 9 | use SMW\MediaWiki\Jobs\JobBase; |
11 | - |
|
12 | 10 | use Title; |
13 | 11 | use Hooks; |
14 | 12 |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * |
62 | 62 | * @since 1.8 |
63 | 63 | * @param $concept Title |
64 | - * @return array of error strings (empty if no errors occurred) |
|
64 | + * @return string[] of error strings (empty if no errors occurred) |
|
65 | 65 | */ |
66 | 66 | public function refreshConceptCache( Title $concept ) { |
67 | 67 | $errors = $this->refresh( $concept ); |
@@ -5,9 +5,6 @@ |
||
5 | 5 | use SMW\DIConcept; |
6 | 6 | use SMW\DIProperty; |
7 | 7 | use SMW\DIWikiPage; |
8 | -use SMWDataItem; |
|
9 | -use SMWQuery; |
|
10 | -use SMWQueryParser; |
|
11 | 8 | use SMWSQLStore3; |
12 | 9 | use SMWWikiPageValue; |
13 | 10 | use Title; |