@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * |
186 | 186 | * @since 1.8 |
187 | 187 | * |
188 | - * @param $subject mixed DIWikiPage or null |
|
188 | + * @param null|DataItem $subject mixed DIWikiPage or null |
|
189 | 189 | * @param $property SMWDIProperty |
190 | 190 | * @param $requestOptions SMWRequestOptions |
191 | 191 | * |
@@ -654,7 +654,7 @@ discard block |
||
654 | 654 | * @param SMWDataItem $value |
655 | 655 | * @param SMWRequestOptions|null $requestOptions |
656 | 656 | * |
657 | - * @return array of SMWWikiPageValue |
|
657 | + * @return DataItem[] of SMWWikiPageValue |
|
658 | 658 | */ |
659 | 659 | public function getInProperties( SMWDataItem $value, SMWRequestOptions $requestOptions = null ) { |
660 | 660 |
@@ -243,6 +243,7 @@ |
||
243 | 243 | * Create some initial DB entries for important built-in properties. Having the DB contents predefined |
244 | 244 | * allows us to safe DB calls when certain data is needed. At the same time, the entries in the DB |
245 | 245 | * make sure that DB-based functions work as with all other properties. |
246 | + * @param boolean $verbose |
|
246 | 247 | */ |
247 | 248 | protected function setupPredefinedProperties( $verbose, DatabaseBase $db ) { |
248 | 249 | global $wgDBtype; |
@@ -95,6 +95,9 @@ discard block |
||
95 | 95 | wfRunHooks( 'SMW::SQLStore::AfterDeleteSubjectComplete', array( $this->store, $title ) ); |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param DIWikiPage $subject |
|
100 | + */ |
|
98 | 101 | private function doDeleteReferencesFor( $id, $subject, $subobjects ) { |
99 | 102 | |
100 | 103 | if ( $subject->getNamespace() === SMW_NS_CONCEPT ) { // make sure to clear caches |
@@ -134,7 +137,6 @@ discard block |
||
134 | 137 | * @see SMWStore::doDataUpdate |
135 | 138 | * |
136 | 139 | * @since 1.8 |
137 | - * @param SMWSemanticData $data |
|
138 | 140 | */ |
139 | 141 | public function doDataUpdate( SMWSemanticData $semanticData ) { |
140 | 142 | wfRunHooks( 'SMWSQLStore3::updateDataBefore', array( $this->store, $semanticData ) ); |
@@ -202,7 +202,7 @@ |
||
202 | 202 | /** |
203 | 203 | * @since 2.0 |
204 | 204 | * |
205 | - * @return Cache |
|
205 | + * @return string |
|
206 | 206 | */ |
207 | 207 | public function getCache() { |
208 | 208 | return $this->callbackLoader->singleton( 'Cache' ); |
@@ -109,6 +109,9 @@ discard block |
||
109 | 109 | return true; |
110 | 110 | } |
111 | 111 | |
112 | + /** |
|
113 | + * @param string $type |
|
114 | + */ |
|
112 | 115 | private function getDispatchableCallbackJobFor( $type ) { |
113 | 116 | |
114 | 117 | $jobFactory = ApplicationFactory::getInstance()->newJobFactory(); |
@@ -139,6 +142,9 @@ discard block |
||
139 | 142 | return $callback; |
140 | 143 | } |
141 | 144 | |
145 | + /** |
|
146 | + * @param string $type |
|
147 | + */ |
|
142 | 148 | private function doPreliminaryCheckForType( $type, array $parameters ) { |
143 | 149 | |
144 | 150 | if ( $type !== 'SMW\ParserCachePurgeJob' && $type !== 'SMW\UpdateJob' ) { |
@@ -163,6 +169,10 @@ discard block |
||
163 | 169 | return self::$canConnectToUrl = $this->httpRequest->ping(); |
164 | 170 | } |
165 | 171 | |
172 | + /** |
|
173 | + * @param string $type |
|
174 | + * @param \Closure $dispatchableCallbackJob |
|
175 | + */ |
|
166 | 176 | private function doDispatchAsyncJobFor( $type, $title, $parameters, $dispatchableCallbackJob ) { |
167 | 177 | |
168 | 178 | $parameters['async-job'] = array( |
@@ -93,6 +93,9 @@ |
||
93 | 93 | } |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param integer $propertyIndex |
|
98 | + */ |
|
96 | 99 | private function getDescriptionForProperty( $diProperty, $values, &$valueIndex, $propertyIndex ) { |
97 | 100 | |
98 | 101 | $values[$valueIndex] = str_replace( "-3B", ";", $values[$valueIndex] ); |
@@ -91,6 +91,9 @@ |
||
91 | 91 | return $description; |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param \SMWDataItem $dataItem |
|
96 | + */ |
|
94 | 97 | private function getUpperLimit( $dataItem ) { |
95 | 98 | |
96 | 99 | $prec = $dataItem->getPrecision(); |
@@ -50,6 +50,9 @@ |
||
50 | 50 | return new ExpData( ExpElement::newFromSerialization( $subject ) ); |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param ExpData $expData |
|
55 | + */ |
|
53 | 56 | private function doDeserialize( $serialization, $expData ) { |
54 | 57 | |
55 | 58 | foreach ( $serialization['data'] as $data ) { |
@@ -95,6 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | + * @param DIProperty $property |
|
98 | 99 | * @return DataItem |
99 | 100 | */ |
100 | 101 | private function doDeserializeDataItem( $property, $data, $value, $semanticData ) { |
@@ -154,6 +155,7 @@ discard block |
||
154 | 155 | * otherwise the subobject is neglected (of course one could set an error |
155 | 156 | * value to the DIContainer but as of now that seems unnecessary) |
156 | 157 | * |
158 | + * @param SMWContainerSemanticData $semanticData |
|
157 | 159 | * @return DIContainer|null |
158 | 160 | */ |
159 | 161 | private function unserializeSubobject( $data, $id, $semanticData ) { |