@@ -97,6 +97,9 @@ |
||
97 | 97 | // return $this->m_semanticData->getHash(); |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param SMWSemanticData $semanticData |
|
102 | + */ |
|
100 | 103 | private function getValueHash( $semanticData ) { |
101 | 104 | |
102 | 105 | $hash = array(); |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | /** |
127 | 127 | * @deprecated since 2.0 |
128 | + * @param string $identifier |
|
128 | 129 | */ |
129 | 130 | public function setSemanticData( $identifier ) { |
130 | 131 | $this->setEmptyContainerForId( $identifier ); |
@@ -171,7 +172,7 @@ discard block |
||
171 | 172 | /** |
172 | 173 | * @since 1.9 |
173 | 174 | * |
174 | - * @param DataValue $dataValue |
|
175 | + * @param SMWDataValue $dataValue |
|
175 | 176 | * |
176 | 177 | * @throws SubSemanticDataException |
177 | 178 | */ |
@@ -95,6 +95,7 @@ |
||
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 ) { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * @since 1.9 |
131 | 131 | * |
132 | - * @param ParserParameterProcessor $params |
|
132 | + * @param ParserParameterProcessor $parameters |
|
133 | 133 | * |
134 | 134 | * @return string|null |
135 | 135 | */ |
@@ -229,6 +229,9 @@ discard block |
||
229 | 229 | return array( $parameters, $id ); |
230 | 230 | } |
231 | 231 | |
232 | + /** |
|
233 | + * @param boolean $useFirstElementAsPropertyLabel |
|
234 | + */ |
|
232 | 235 | private function doPrepareParameters( ParserParameterProcessor $parserParameterProcessor, $useFirstElementAsPropertyLabel ) { |
233 | 236 | |
234 | 237 | if ( $parserParameterProcessor->hasParameter( self::PARAM_LINKWITH ) ) { |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use SMW\HashBuilder; |
11 | 11 | use SMW\DataValueFactory; |
12 | 12 | use SMW\DIProperty; |
13 | -use Parser; |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * @private This class should not be instantiated directly, please use |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * @since 2.5 |
140 | 140 | * |
141 | - * @param array|string $errorMsg |
|
141 | + * @param array|string $error |
|
142 | 142 | * @param DIProperty|null $property |
143 | 143 | * |
144 | 144 | * @return DIContainer |
@@ -196,6 +196,10 @@ discard block |
||
196 | 196 | return new DIContainer( $containerSemanticData ); |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param DIProperty|null $property |
|
201 | + * @param string $error |
|
202 | + */ |
|
199 | 203 | private function addToContainerSemanticData( $containerSemanticData, $property, $error ) { |
200 | 204 | |
201 | 205 | if ( $property !== null ) { |
@@ -211,6 +215,9 @@ discard block |
||
211 | 215 | ); |
212 | 216 | } |
213 | 217 | |
218 | + /** |
|
219 | + * @param string $hash |
|
220 | + */ |
|
214 | 221 | private function newContainerSemanticData( $hash ) { |
215 | 222 | |
216 | 223 | if ( $this->subject === null ) { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW; |
4 | 4 | |
5 | 5 | use SMWContainerSemanticData as ContainerSemanticData; |
6 | -use SMWDataItem as DataItem; |
|
7 | 6 | use SMWDataValue as DataValue; |
8 | 7 | use SMWDIContainer as DIContainer; |
9 | 8 | use SMWDIBlob as DIBlob; |
@@ -169,6 +169,9 @@ discard block |
||
169 | 169 | $this->connection->endAtomicTransaction( __METHOD__ ); |
170 | 170 | } |
171 | 171 | |
172 | + /** |
|
173 | + * @param integer $id |
|
174 | + */ |
|
172 | 175 | private function doRemoveEntityReferencesById( $id ) { |
173 | 176 | |
174 | 177 | $this->connection->delete( |
@@ -208,6 +211,9 @@ discard block |
||
208 | 211 | } |
209 | 212 | } |
210 | 213 | |
214 | + /** |
|
215 | + * @param boolean $onTransactionIdle |
|
216 | + */ |
|
211 | 217 | private function triggerCleanUpEvents( $subject, $onTransactionIdle ) { |
212 | 218 | |
213 | 219 | if ( !$subject instanceof DIWikiPage ) { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\MediaWiki\Jobs\JobBase; |
6 | 6 | use SMW\MediaWiki\Jobs\UpdateJob; |
7 | 7 | use SMW\SemanticData; |
8 | -use SMW\SQLStore\PropertyStatisticsTable; |
|
9 | 8 | use SMW\SQLStore\PropertyTableRowDiffer; |
10 | 9 | use SMW\SQLStore\EntityStore\EntitySubobjectListIterator; |
11 | 10 | use SMW\SQLStore\TableBuilder\FieldType; |
@@ -103,6 +103,10 @@ discard block |
||
103 | 103 | \Hooks::run( 'SMW::SQLStore::AfterDeleteSubjectComplete', array( $this->store, $title ) ); |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param DIWikiPage $subject |
|
108 | + * @param SMW\Iterators\MappingIterator $subobjects |
|
109 | + */ |
|
106 | 110 | private function doDelete( $id, $subject, $subobjects ) { |
107 | 111 | |
108 | 112 | if ( $subject->getNamespace() === SMW_NS_CONCEPT ) { // make sure to clear caches |
@@ -142,7 +146,6 @@ discard block |
||
142 | 146 | * @see SMWStore::doDataUpdate |
143 | 147 | * |
144 | 148 | * @since 1.8 |
145 | - * @param SMWSemanticData $data |
|
146 | 149 | */ |
147 | 150 | public function doDataUpdate( SMWSemanticData $semanticData ) { |
148 | 151 | \Hooks::run( 'SMWSQLStore3::updateDataBefore', array( $this->store, $semanticData ) ); |
@@ -955,6 +958,9 @@ discard block |
||
955 | 958 | return ( $new_tid == 0 ) ? $sid : $new_tid; |
956 | 959 | } |
957 | 960 | |
961 | + /** |
|
962 | + * @param integer $redirectId |
|
963 | + */ |
|
958 | 964 | private function addToDeferredUpdate( $oldTitle, $newTitle, $redirectId ) { |
959 | 965 | |
960 | 966 | $jobFactory = ApplicationFactory::getInstance()->newJobFactory(); |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | */ |
41 | 41 | private static $in_getSemanticData = 0; |
42 | 42 | |
43 | + /** |
|
44 | + * @param SQLStoreFactory $factory |
|
45 | + */ |
|
43 | 46 | public function __construct( SMWSQLStore3 $parentStore, $factory ) { |
44 | 47 | $this->store = $parentStore; |
45 | 48 | $this->factory = $factory; |
@@ -198,7 +201,7 @@ discard block |
||
198 | 201 | * |
199 | 202 | * @since 1.8 |
200 | 203 | * |
201 | - * @param $subject mixed DIWikiPage or null |
|
204 | + * @param null|SMWDataItem $subject mixed DIWikiPage or null |
|
202 | 205 | * @param $property SMWDIProperty |
203 | 206 | * @param $requestOptions SMWRequestOptions |
204 | 207 | * |
@@ -684,7 +687,7 @@ discard block |
||
684 | 687 | * @param SMWDataItem $value |
685 | 688 | * @param SMWRequestOptions|null $requestOptions |
686 | 689 | * |
687 | - * @return array of SMWWikiPageValue |
|
690 | + * @return SMWDataItem[] of SMWWikiPageValue |
|
688 | 691 | */ |
689 | 692 | public function getInProperties( SMWDataItem $value, SMWRequestOptions $requestOptions = null ) { |
690 | 693 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @param Wikipage $wikiPage |
41 | 41 | * |
42 | - * @return true |
|
42 | + * @return boolean |
|
43 | 43 | */ |
44 | 44 | public function process( $wikiPage ) { |
45 | 45 | |
@@ -95,6 +95,9 @@ discard block |
||
95 | 95 | return true; |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param string $message |
|
100 | + */ |
|
98 | 101 | private function log( $message, $context = array() ) { |
99 | 102 | |
100 | 103 | if ( $this->logger === null ) { |