@@ -40,7 +40,6 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * @see DataValue::getShortWikiText |
42 | 42 | * |
43 | - * @param string $value |
|
44 | 43 | */ |
45 | 44 | public function getShortWikiText( $linker = null ) { |
46 | 45 | |
@@ -137,6 +136,9 @@ discard block |
||
137 | 136 | return $dataValue->getDataItem(); |
138 | 137 | } |
139 | 138 | |
139 | + /** |
|
140 | + * @return boolean |
|
141 | + */ |
|
140 | 142 | private function getExternalFormattedUri( $value ) { |
141 | 143 | |
142 | 144 | if ( $this->externalFormattedUri !== null ) { |
@@ -95,7 +95,7 @@ |
||
95 | 95 | * |
96 | 96 | * @since 2.5 |
97 | 97 | * |
98 | - * @param string|integer $index |
|
98 | + * @param string $index |
|
99 | 99 | * |
100 | 100 | * @return DIProperty|null |
101 | 101 | */ |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * |
135 | 135 | * @since 1.6 |
136 | 136 | * |
137 | - * @return SMWDataItem|false |
|
137 | + * @return null|DataItem |
|
138 | 138 | */ |
139 | 139 | public function getNextDataItem() { |
140 | 140 | $this->loadContent(); |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | * |
268 | 268 | * @param boolean $useLimit |
269 | 269 | * |
270 | - * @return SMWRequestOptions|null |
|
270 | + * @return SMW\RequestOptions|null |
|
271 | 271 | */ |
272 | 272 | protected function getRequestOptions( $useLimit = true ) { |
273 | 273 | return $this->resultFieldMatchFinder->getRequestOptions( $useLimit ); |
@@ -63,6 +63,7 @@ |
||
63 | 63 | /** |
64 | 64 | * @since 2.4 |
65 | 65 | * |
66 | + * @param string $queryID |
|
66 | 67 | * @return array |
67 | 68 | */ |
68 | 69 | public function getEntityList( $queryID = null ) { |
@@ -76,6 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | /** |
78 | 78 | * @see DataValue::getShortWikiText |
79 | + * @param string $linker |
|
79 | 80 | */ |
80 | 81 | public function getShortWikiText( $linker = null ) { |
81 | 82 | |
@@ -88,6 +89,7 @@ discard block |
||
88 | 89 | |
89 | 90 | /** |
90 | 91 | * @see DataValue::getLongWikiText |
92 | + * @param string $linker |
|
91 | 93 | */ |
92 | 94 | public function getLongWikiText( $linker = null ) { |
93 | 95 | |
@@ -154,7 +156,6 @@ discard block |
||
154 | 156 | * @see DataValue::parseUserValue |
155 | 157 | * @note called by DataValue::setUserValue |
156 | 158 | * |
157 | - * @param string $userValue |
|
158 | 159 | */ |
159 | 160 | protected function parseUserValue( $value ) { |
160 | 161 | |
@@ -171,6 +172,9 @@ discard block |
||
171 | 172 | $this->m_dataitem = new DIBlob( $value ); |
172 | 173 | } |
173 | 174 | |
175 | + /** |
|
176 | + * @param string $value |
|
177 | + */ |
|
174 | 178 | private function initPropertyChain( $value ) { |
175 | 179 | |
176 | 180 | $chain = explode( '.', $value ); |
@@ -82,6 +82,9 @@ discard block |
||
82 | 82 | return $result; |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param string $joinVariable |
|
87 | + */ |
|
85 | 88 | private function mapCategoriesToConditionElements( array $categories, $joinVariable ) { |
86 | 89 | |
87 | 90 | $condition = ''; |
@@ -109,6 +112,9 @@ discard block |
||
109 | 112 | return array( $condition, $namespaces ); |
110 | 113 | } |
111 | 114 | |
115 | + /** |
|
116 | + * @param string $categoryExpName |
|
117 | + */ |
|
112 | 118 | private function tryToAddClassHierarchyPattern( $category, &$categoryExpName ) { |
113 | 119 | |
114 | 120 | if ( !$this->compoundConditionBuilder->canUseQFeature( SMW_SPARQL_QF_SUBC ) ) { |
@@ -100,6 +100,10 @@ discard block |
||
100 | 100 | return $result; |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @param string $joinVariable |
|
105 | + * @param \SMW\DIProperty|null $orderByProperty |
|
106 | + */ |
|
103 | 107 | private function doPreliminarySubDescriptionCheck( $subDescriptions, $joinVariable, $orderByProperty ) { |
104 | 108 | |
105 | 109 | $count = count( $subDescriptions ); |
@@ -126,6 +130,9 @@ discard block |
||
126 | 130 | return null; |
127 | 131 | } |
128 | 132 | |
133 | + /** |
|
134 | + * @param string $joinVariable |
|
135 | + */ |
|
129 | 136 | private function doResolveSubDescriptionsRecursively( $subDescriptions, $joinVariable ) { |
130 | 137 | |
131 | 138 | // Using a stdClass as data container for simpler handling in follow-up tasks |
@@ -195,6 +202,9 @@ discard block |
||
195 | 202 | return $subConditionElements; |
196 | 203 | } |
197 | 204 | |
205 | + /** |
|
206 | + * @param \stdClass $subConditionElements |
|
207 | + */ |
|
198 | 208 | private function createConditionFromSubConditionElements( $subConditionElements ) { |
199 | 209 | |
200 | 210 | if ( $subConditionElements->singletonMatchElement instanceof ExpElement ) { |
@@ -107,6 +107,10 @@ discard block |
||
107 | 107 | return $result; |
108 | 108 | } |
109 | 109 | |
110 | + /** |
|
111 | + * @param string $joinVariable |
|
112 | + * @param \SMW\DIProperty|null $orderByProperty |
|
113 | + */ |
|
110 | 114 | private function doPreliminarySubDescriptionCheck( $subDescriptions, $joinVariable, $orderByProperty ) { |
111 | 115 | |
112 | 116 | $count = count( $subDescriptions ); |
@@ -131,6 +135,10 @@ discard block |
||
131 | 135 | return null; |
132 | 136 | } |
133 | 137 | |
138 | + /** |
|
139 | + * @param string $joinVariable |
|
140 | + * @param \SMW\DIProperty|null $orderByProperty |
|
141 | + */ |
|
134 | 142 | private function doResolveSubDescriptionsRecursively( $subDescriptions, $joinVariable, $orderByProperty ) { |
135 | 143 | |
136 | 144 | // Using a stdClass as data container for simpler handling in follow-up tasks |
@@ -213,6 +221,9 @@ discard block |
||
213 | 221 | return $subConditionElements; |
214 | 222 | } |
215 | 223 | |
224 | + /** |
|
225 | + * @param string $joinVariable |
|
226 | + */ |
|
216 | 227 | private function createConditionFromSubConditionElements( $subConditionElements, $joinVariable ) { |
217 | 228 | |
218 | 229 | if ( $subConditionElements->unionCondition === '' ) { |
@@ -150,6 +150,10 @@ discard block |
||
150 | 150 | return array( $innerOrderByProperty, $innerCondition, $innerJoinVariable ); |
151 | 151 | } |
152 | 152 | |
153 | + /** |
|
154 | + * @param \SMW\SPARQLStore\QueryEngine\Condition\Condition $innerCondition |
|
155 | + * @param string $innerJoinVariable |
|
156 | + */ |
|
153 | 157 | private function findObjectNameFromInnerCondition( $innerCondition, $innerJoinVariable, &$namespaces ) { |
154 | 158 | |
155 | 159 | if ( !$innerCondition instanceof SingletonCondition ) { |
@@ -201,6 +205,10 @@ discard block |
||
201 | 205 | return TurtleSerializer::getTurtleNameForExpElement( $propertyExpElement ); |
202 | 206 | } |
203 | 207 | |
208 | + /** |
|
209 | + * @param string $objectName |
|
210 | + * @param string $joinVariable |
|
211 | + */ |
|
204 | 212 | private function doExchangeForWhenInversePropertyIsUsed( DIProperty $property, $objectName, $joinVariable ) { |
205 | 213 | |
206 | 214 | $subjectName = '?' . $joinVariable; |
@@ -239,6 +247,8 @@ discard block |
||
239 | 247 | * can be found using the "zero or more" will resolve the complete path |
240 | 248 | * |
241 | 249 | * @see http://www.w3.org/TR/sparql11-query/#propertypath-arbitrary-length |
250 | + * @param \SMW\SPARQLStore\QueryEngine\Condition\Condition $condition |
|
251 | + * @param string $propertyName |
|
242 | 252 | */ |
243 | 253 | private function tryToAddPropertyPathForSaturatedHierarchy( &$condition, DIProperty $property, &$propertyName ) { |
244 | 254 |