@@ -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,9 @@ discard block |
||
150 | 150 | return array( $innerOrderByProperty, $innerCondition, $innerJoinVariable ); |
151 | 151 | } |
152 | 152 | |
153 | + /** |
|
154 | + * @param string $innerJoinVariable |
|
155 | + */ |
|
153 | 156 | private function findObjectNameFromInnerCondition( $innerCondition, $innerJoinVariable, &$namespaces ) { |
154 | 157 | |
155 | 158 | if ( !$innerCondition instanceof SingletonCondition ) { |
@@ -201,6 +204,10 @@ discard block |
||
201 | 204 | return TurtleSerializer::getTurtleNameForExpElement( $propertyExpElement ); |
202 | 205 | } |
203 | 206 | |
207 | + /** |
|
208 | + * @param string $objectName |
|
209 | + * @param string $joinVariable |
|
210 | + */ |
|
204 | 211 | private function doExchangeForWhenInversePropertyIsUsed( DIProperty $property, $objectName, $joinVariable ) { |
205 | 212 | |
206 | 213 | $subjectName = '?' . $joinVariable; |
@@ -239,6 +246,7 @@ discard block |
||
239 | 246 | * can be found using the "zero or more" will resolve the complete path |
240 | 247 | * |
241 | 248 | * @see http://www.w3.org/TR/sparql11-query/#propertypath-arbitrary-length |
249 | + * @param string $propertyName |
|
242 | 250 | */ |
243 | 251 | private function tryToAddPropertyPathForSaturatedHierarchy( &$condition, DIProperty $property, &$propertyName ) { |
244 | 252 |
@@ -104,10 +104,18 @@ discard block |
||
104 | 104 | ); |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $joinVariable |
|
109 | + * @param DIProperty|null $orderByProperty |
|
110 | + */ |
|
107 | 111 | private function createConditionForEmptyComparator( $joinVariable, $orderByProperty ) { |
108 | 112 | return $this->compoundConditionBuilder->newTrueCondition( $joinVariable, $orderByProperty ); |
109 | 113 | } |
110 | 114 | |
115 | + /** |
|
116 | + * @param string $joinVariable |
|
117 | + * @param DIProperty|null $orderByProperty |
|
118 | + */ |
|
111 | 119 | private function createConditionForEqualityComparator( $dataItem, $property, $joinVariable, $orderByProperty ) { |
112 | 120 | |
113 | 121 | $expElement = $this->exporter->getDataItemHelperExpElement( $dataItem ); |
@@ -153,6 +161,11 @@ discard block |
||
153 | 161 | return $condition; |
154 | 162 | } |
155 | 163 | |
164 | + /** |
|
165 | + * @param string $joinVariable |
|
166 | + * @param DIProperty|null $orderByProperty |
|
167 | + * @param string $comparator |
|
168 | + */ |
|
156 | 169 | private function createConditionForRegexComparator( $dataItem, $joinVariable, $orderByProperty, $comparator ) { |
157 | 170 | |
158 | 171 | if ( !$dataItem instanceof DIBlob && !$dataItem instanceof DIWikiPage && !$dataItem instanceof DIUri ) { |
@@ -196,6 +209,9 @@ discard block |
||
196 | 209 | return $condition; |
197 | 210 | } |
198 | 211 | |
212 | + /** |
|
213 | + * @param string $comparator |
|
214 | + */ |
|
199 | 215 | private function createFilterConditionForAnyOtherComparator( $dataItem, $joinVariable, $orderByProperty, $comparator ) { |
200 | 216 | |
201 | 217 | $result = new FilterCondition( '', array() ); |
@@ -228,6 +244,9 @@ discard block |
||
228 | 244 | return $result; |
229 | 245 | } |
230 | 246 | |
247 | + /** |
|
248 | + * @param string $pattern |
|
249 | + */ |
|
231 | 250 | private function createFilterConditionToMatchRegexPattern( $dataItem, &$joinVariable, $comparator, $pattern ) { |
232 | 251 | |
233 | 252 | if ( $dataItem instanceof DIBlob ) { |
@@ -213,6 +213,9 @@ |
||
213 | 213 | return DebugOutputFormatter::formatOutputFor( 'SPARQLStore', $entries, $query ); |
214 | 214 | } |
215 | 215 | |
216 | + /** |
|
217 | + * @param Condition $condition |
|
218 | + */ |
|
216 | 219 | private function isSingletonConditionWithElementMatch( $condition ) { |
217 | 220 | return $condition instanceof SingletonCondition && $condition->matchElement instanceof Element; |
218 | 221 | } |
@@ -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 |