@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace SMW\SQLStore; |
4 | 4 | |
5 | 5 | use SMW\ApplicationFactory; |
6 | -use SMW\CircularReferenceGuard; |
|
7 | 6 | use SMW\DIProperty; |
8 | -use SMW\SQLStore\QueryEngine\ConceptQueryResolver; |
|
9 | 7 | use SMW\SQLStore\QueryEngine\EngineOptions; |
10 | 8 | use SMW\SQLStore\QueryEngine\HierarchyTempTableBuilder; |
11 | 9 | use SMW\SQLStore\QueryEngine\QueryEngine; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * @since 2.2 |
54 | 54 | * |
55 | - * @return QueryEngine |
|
55 | + * @return QueryEngine\QueryEngine |
|
56 | 56 | */ |
57 | 57 | public function newMasterQueryEngine() { |
58 | 58 | return $this->queryEngineFactory->newQueryEngine(); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * @since 2.2 |
63 | 63 | * |
64 | - * @return QueryEngine |
|
64 | + * @return QueryEngine\QueryEngine |
|
65 | 65 | */ |
66 | 66 | public function newSlaveQueryEngine() { |
67 | 67 | return $this->queryEngineFactory->newQueryEngine(); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\SPARQLStore\QueryEngine\QueryEngine; |
6 | 6 | use SMW\SPARQLStore\QueryEngine\EngineOptions; |
7 | 7 | use SMW\SPARQLStore\QueryEngine\QueryResultFactory; |
8 | -use SMW\DIProperty; |
|
9 | 8 | use SMWQuery as Query; |
10 | 9 | |
11 | 10 | /** |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use SMW\SPARQLStore\QueryEngine\Interpreter\ThingDescriptionInterpreter; |
7 | 7 | use SMW\SPARQLStore\QueryEngine\CompoundConditionBuilder; |
8 | 8 | use SMW\Query\Language\ThingDescription; |
9 | -use SMW\DIWikiPage; |
|
10 | 9 | use SMW\DIProperty; |
11 | 10 | |
12 | 11 | /** |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @param integer $mode a constant defining what to printout |
47 | 47 | * @param string $label the string label to describe this printout |
48 | 48 | * @param mixed $data optional data for specifying some request, might be a property object, title, or something else; interpretation depends on $mode |
49 | - * @param mixed $outputformat optional string for specifying an output format, e.g. an output unit |
|
49 | + * @param string $outputformat optional string for specifying an output format, e.g. an output unit |
|
50 | 50 | * @param array|null $params optional array of further, named parameters for the print request |
51 | 51 | */ |
52 | 52 | public function __construct( $mode, $label, $data = null, $outputformat = false, array $params = null ) { |
@@ -130,6 +130,8 @@ discard block |
||
130 | 130 | |
131 | 131 | /** |
132 | 132 | * Convenience method for accessing the text in either HTML or Wiki format. |
133 | + * @param integer $outputmode |
|
134 | + * @return string |
|
133 | 135 | */ |
134 | 136 | public function getText( $outputmode, $linker = null ) { |
135 | 137 | switch ( $outputmode ) { |
@@ -267,7 +269,7 @@ discard block |
||
267 | 269 | /** |
268 | 270 | * Returns the value of a named parameter. |
269 | 271 | * |
270 | - * @param $key string the name of the parameter key |
|
272 | + * @param string $key string the name of the parameter key |
|
271 | 273 | * |
272 | 274 | * @return string Value of the paramer, if set (else FALSE) |
273 | 275 | */ |
@@ -287,7 +289,7 @@ discard block |
||
287 | 289 | /** |
288 | 290 | * Sets a print request parameter. |
289 | 291 | * |
290 | - * @param $key string Name of the parameter |
|
292 | + * @param string $key string Name of the parameter |
|
291 | 293 | * @param $value string Value for the parameter |
292 | 294 | */ |
293 | 295 | public function setParameter( $key, $value ) { |
@@ -373,11 +375,17 @@ discard block |
||
373 | 375 | } |
374 | 376 | } |
375 | 377 | |
378 | + /** |
|
379 | + * @param string $text |
|
380 | + */ |
|
376 | 381 | private static function isCategory( $text ) { |
377 | 382 | return Localizer::getInstance()->getNamespaceTextById( NS_CATEGORY ) == mb_convert_case( $text, MB_CASE_TITLE ) || |
378 | 383 | $text == 'Category'; |
379 | 384 | } |
380 | 385 | |
386 | + /** |
|
387 | + * @param string $text |
|
388 | + */ |
|
381 | 389 | private static function doSplitText( $text ) { |
382 | 390 | // 1464 |
383 | 391 | // Temporary encode "=" within a <> entity (<span>...</span>) |
@@ -2,9 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\PropertyAnnotator; |
4 | 4 | |
5 | -use SMW\DIProperty; |
|
6 | 5 | use SMW\PropertyAnnotator; |
7 | -use SMWDIBlob as DIBlob; |
|
8 | 6 | |
9 | 7 | /** |
10 | 8 | * @license GNU GPL v2+ |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * |
121 | 121 | * @param integer|string $mediaWikiCacheType |
122 | 122 | * |
123 | - * @return Cache |
|
123 | + * @return null|\Onoi\Cache\Cache |
|
124 | 124 | */ |
125 | 125 | public function newMediaWikiCompositeCache( $mediaWikiCacheType = null ) { |
126 | 126 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * @param string|integer|null $cacheType |
144 | 144 | * @param integer $cacheLifetime |
145 | 145 | * |
146 | - * @return BlobStore |
|
146 | + * @return \Onoi\BlobStore\BlobStore |
|
147 | 147 | */ |
148 | 148 | public function newBlobStore( $namespace, $cacheType = null, $cacheLifetime = 0 ) { |
149 | 149 |
@@ -29,6 +29,9 @@ discard block |
||
29 | 29 | $this->registerCallbackHandlersByFactory( $callbackLoader ); |
30 | 30 | } |
31 | 31 | |
32 | + /** |
|
33 | + * @param CallbackLoader $callbackLoader |
|
34 | + */ |
|
32 | 35 | private function registerCallbackHandlers( $callbackLoader ) { |
33 | 36 | |
34 | 37 | $callbackLoader->registerExpectedReturnType( 'Settings', '\SMW\Settings' ); |
@@ -111,6 +114,9 @@ discard block |
||
111 | 114 | } ); |
112 | 115 | } |
113 | 116 | |
117 | + /** |
|
118 | + * @param CallbackLoader $callbackLoader |
|
119 | + */ |
|
114 | 120 | private function registerCallbackHandlersByFactory( $callbackLoader ) { |
115 | 121 | |
116 | 122 | $callbackLoader->registerCallback( 'BlobStore', function( $namespace, $cacheType = null, $ttl = 0 ) use ( $callbackLoader ) { |
@@ -103,6 +103,10 @@ discard block |
||
103 | 103 | $this->inMemoryPoolCache->getPoolCacheFor( 'sql.store.redirect.infostore' )->delete( $hash ); |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $title |
|
108 | + * @param integer $namespace |
|
109 | + */ |
|
106 | 110 | private function select( $title, $namespace ) { |
107 | 111 | |
108 | 112 | $row = $this->connection->selectRow( |
@@ -118,6 +122,11 @@ discard block |
||
118 | 122 | return $row !== false && isset( $row->o_id ) ? (int)$row->o_id : 0; |
119 | 123 | } |
120 | 124 | |
125 | + /** |
|
126 | + * @param integer $id |
|
127 | + * @param string $title |
|
128 | + * @param integer $namespace |
|
129 | + */ |
|
121 | 130 | private function insert( $id, $title, $namespace ) { |
122 | 131 | |
123 | 132 | $this->connection->insert( |
@@ -130,6 +139,10 @@ discard block |
||
130 | 139 | ); |
131 | 140 | } |
132 | 141 | |
142 | + /** |
|
143 | + * @param string $title |
|
144 | + * @param integer $namespace |
|
145 | + */ |
|
133 | 146 | private function delete( $title, $namespace ) { |
134 | 147 | |
135 | 148 | $this->connection->delete( |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\DIProperty; |
6 | 6 | use SMW\DIWikiPage; |
7 | 7 | use SMW\SemanticData; |
8 | -use SMW\StoreFactory; |
|
9 | 8 | use SMWDITime as DITime; |
10 | 9 | use SMWSql3StubSemanticData as StubSemanticData; |
11 | 10 | use Title; |