@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * |
255 | 255 | * @since 1.6 |
256 | 256 | * |
257 | - * @param $diProperty mixed null or SMWDIProperty object for which to retrieve the types |
|
257 | + * @param SMWDIProperty $diProperty mixed null or SMWDIProperty object for which to retrieve the types |
|
258 | 258 | * |
259 | 259 | * @return array of SMWDIProperty |
260 | 260 | */ |
@@ -312,6 +312,10 @@ discard block |
||
312 | 312 | return $result; |
313 | 313 | } |
314 | 314 | |
315 | + /** |
|
316 | + * @param integer $type |
|
317 | + * @param SMWDataValue $dataValue |
|
318 | + */ |
|
315 | 319 | protected function makeValueOutputText( $type, $dataValue, $linker ) { |
316 | 320 | switch ( $type ) { |
317 | 321 | case 0: |
@@ -39,6 +39,9 @@ discard block |
||
39 | 39 | */ |
40 | 40 | private $showUrlContextInRawFormat = true; |
41 | 41 | |
42 | + /** |
|
43 | + * @param string $typeid |
|
44 | + */ |
|
42 | 45 | public function __construct( $typeid ) { |
43 | 46 | parent::__construct( $typeid ); |
44 | 47 | switch ( $typeid ) { |
@@ -176,6 +179,7 @@ discard block |
||
176 | 179 | * Returns true if the argument is a valid RFC 3966 phone number. |
177 | 180 | * Only global phone numbers are supported, and no full validation |
178 | 181 | * of parameters (appended via ;param=value) is performed. |
182 | + * @param string $s |
|
179 | 183 | */ |
180 | 184 | protected static function isValidTelURI( $s ) { |
181 | 185 | $tel_uri_regex = '<^tel:\+[0-9./-]*[0-9][0-9./-]*(;[0-9a-zA-Z-]+=(%[0-9a-zA-Z][0-9a-zA-Z]|[0-9a-zA-Z._~:/?#[\]@!$&\'()*+,;=-])*)*$>'; |
@@ -329,6 +333,9 @@ discard block |
||
329 | 333 | return str_replace( ':', ':', $url ); |
330 | 334 | } |
331 | 335 | |
336 | + /** |
|
337 | + * @param string $context |
|
338 | + */ |
|
332 | 339 | private function decodeUriContext( $context ) { |
333 | 340 | |
334 | 341 | // Prior to decoding turn any `-` into an internal representation to avoid |
@@ -63,6 +63,9 @@ |
||
63 | 63 | */ |
64 | 64 | protected $m_fixNamespace = NS_MAIN; |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $typeid |
|
68 | + */ |
|
66 | 69 | public function __construct( $typeid ) { |
67 | 70 | parent::__construct( $typeid ); |
68 | 71 | switch ( $typeid ) { |
@@ -193,8 +193,8 @@ |
||
193 | 193 | * Return the list of SMWExpData values associated to some property that is |
194 | 194 | * specifed by a standard namespace id and local name. |
195 | 195 | * |
196 | - * @param $namespaceId string idetifying a known special namespace (e.g. "rdf") |
|
197 | - * @param $localName string of local name (e.g. "type") |
|
196 | + * @param string $namespaceId string idetifying a known special namespace (e.g. "rdf") |
|
197 | + * @param string $localName string of local name (e.g. "type") |
|
198 | 198 | * @return array of SMWExpData |
199 | 199 | */ |
200 | 200 | public function getSpecialValues( $namespaceId, $localName ) { |
@@ -262,6 +262,7 @@ discard block |
||
262 | 262 | |
263 | 263 | /** |
264 | 264 | * Add a given SMWDIWikiPage to the export queue if needed. |
265 | + * @param integer $recursiondepth |
|
265 | 266 | */ |
266 | 267 | protected function queuePage( SMWDIWikiPage $diWikiPage, $recursiondepth ) { |
267 | 268 | if ( !$this->isPageDone( $diWikiPage, $recursiondepth ) ) { |
@@ -273,6 +274,7 @@ discard block |
||
273 | 274 | /** |
274 | 275 | * Mark an article as done while making sure that the cache used for this |
275 | 276 | * stays reasonably small. Input is given as an SMWDIWikiPage object. |
277 | + * @param integer $recdepth |
|
276 | 278 | */ |
277 | 279 | protected function markPageAsDone( SMWDIWikiPage $di, $recdepth ) { |
278 | 280 | $this->markHashAsDone( $di->getHash(), $recdepth ); |
@@ -281,6 +283,7 @@ discard block |
||
281 | 283 | /** |
282 | 284 | * Mark a task as done while making sure that the cache used for this |
283 | 285 | * stays reasonably small. |
286 | + * @param string $hash |
|
284 | 287 | */ |
285 | 288 | protected function markHashAsDone( $hash, $recdepth ) { |
286 | 289 | if ( count( $this->element_done ) >= self::MAX_CACHE_SIZE ) { |
@@ -298,7 +301,6 @@ discard block |
||
298 | 301 | /** |
299 | 302 | * Check if the given object has already been serialised at sufficient |
300 | 303 | * recursion depth. |
301 | - * @param SMWDIWikiPage $st specifying the object to check |
|
302 | 304 | * |
303 | 305 | * @return boolean |
304 | 306 | */ |
@@ -323,6 +325,7 @@ discard block |
||
323 | 325 | * We make a copy of the object since we may want to add more data later on |
324 | 326 | * and we do not want to modify the store's result which may be used for |
325 | 327 | * caching purposes elsewhere. |
328 | + * @param boolean $core_props_only |
|
326 | 329 | */ |
327 | 330 | protected function getSemanticData( SMWDIWikiPage $diWikiPage, $core_props_only ) { |
328 | 331 | |
@@ -489,6 +492,8 @@ discard block |
||
489 | 492 | |
490 | 493 | /** |
491 | 494 | * @since 2.0 made protected; use printAllToFile or printAllToOutput |
495 | + * @param integer $delay |
|
496 | + * @param integer $delayeach |
|
492 | 497 | */ |
493 | 498 | protected function printAll( $ns_restriction = false, $delay, $delayeach ) { |
494 | 499 | $linkCache = LinkCache::singleton(); |
@@ -730,7 +735,7 @@ discard block |
||
730 | 735 | * requires the namespace to be different from Category, Property, and |
731 | 736 | * Type; "false" means "no restriction". |
732 | 737 | * |
733 | - * @param $res mixed encoding the restriction as described above |
|
738 | + * @param boolean $res mixed encoding the restriction as described above |
|
734 | 739 | * @param $ns integer the namespace constant to be checked |
735 | 740 | * |
736 | 741 | * @return boolean |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | * represent. Returns null if this attempt failed. |
381 | 381 | * |
382 | 382 | * @param SMWExpElement $expElement |
383 | - * @return SMWDataItem or null |
|
383 | + * @return SMWDIWikiPage|null or null |
|
384 | 384 | */ |
385 | 385 | static public function findDataItemForExpElement( SMWExpElement $expElement ) { |
386 | 386 | global $wgContLang; |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | * must take the type of the annotated object into account for some |
464 | 464 | * reason. |
465 | 465 | * |
466 | - * @param $propertyKey string the Id of the special property |
|
466 | + * @param string $propertyKey string the Id of the special property |
|
467 | 467 | * @param $forNamespace integer the namespace of the page which has a value for this property |
468 | 468 | * @return ExpNsResource|null |
469 | 469 | */ |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | * elements are always preferred in query answering. |
644 | 644 | * |
645 | 645 | * @param $dataItem SMWDataItem |
646 | - * @return SMWExpElement or null |
|
646 | + * @return SMWExpLiteral|null or null |
|
647 | 647 | */ |
648 | 648 | static public function getDataItemHelperExpElement( SMWDataItem $dataItem ) { |
649 | 649 |
@@ -227,6 +227,7 @@ discard block |
||
227 | 227 | /** |
228 | 228 | * State that a certain declaration is needed. The method checks if the |
229 | 229 | * declaration is already available, and records a todo otherwise. |
230 | + * @param integer $decltype |
|
230 | 231 | */ |
231 | 232 | protected function requireDeclaration( SMWExpResource $resource, $decltype ) { |
232 | 233 | // Do not declare predefined OWL language constructs: |
@@ -282,7 +283,7 @@ discard block |
||
282 | 283 | * the given element has been declared to has the given type. |
283 | 284 | * |
284 | 285 | * @param $element SMWExpResource specifying the element to update |
285 | - * @param $typeflag integer specifying the type (e.g. SMW_SERIALIZER_DECL_CLASS) |
|
286 | + * @param integer $typeflag integer specifying the type (e.g. SMW_SERIALIZER_DECL_CLASS) |
|
286 | 287 | */ |
287 | 288 | protected function declarationDone( SMWExpResource $element, $typeflag ) { |
288 | 289 | $name = $element->getUri(); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * @param $expResourceProperty SMWExpNsResource the property to use |
196 | 196 | * @param $expResource SMWExpResource the data value to use |
197 | 197 | * @param $indent string specifying a prefix for indentation (usually a sequence of tabs) |
198 | - * @param $isClassTypeProp boolean whether the resource must be declared as a class |
|
198 | + * @param boolean $isClassTypeProp boolean whether the resource must be declared as a class |
|
199 | 199 | */ |
200 | 200 | protected function serializeExpResource( SMWExpNsResource $expResourceProperty, SMWExpResource $expResource, $indent, $isClassTypeProp ) { |
201 | 201 | $this->post_ns_buffer .= $indent . '<' . $expResourceProperty->getQName(); |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * @param $expResourceProperty SMWExpNsResource the property to use |
222 | 222 | * @param $expResource array of (SMWExpResource or SMWExpData) |
223 | 223 | * @param $indent string specifying a prefix for indentation (usually a sequence of tabs) |
224 | - * @param $isClassTypeProp boolean whether the resource must be declared as a class |
|
224 | + * @param boolean $isClassTypeProp boolean whether the resource must be declared as a class |
|
225 | 225 | * |
226 | 226 | * @bug The $isClassTypeProp parameter is not properly taken into account. |
227 | 227 | * @bug Individual resources are not serialised properly. |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * DTD entity declarations in XML. Namely, this require the percent sign |
249 | 249 | * to be replaced. |
250 | 250 | * |
251 | - * @param $string string to be escaped |
|
251 | + * @param string $string string to be escaped |
|
252 | 252 | * @return string |
253 | 253 | */ |
254 | 254 | protected function makeValueEntityString( $string ) { |
@@ -140,7 +140,7 @@ |
||
140 | 140 | * increased indentation. |
141 | 141 | * |
142 | 142 | * @param $data SMWExpData containing the data to be serialised. |
143 | - * @param $indent string specifying a prefix for indentation (usually a sequence of tabs) |
|
143 | + * @param string $indent string specifying a prefix for indentation (usually a sequence of tabs) |
|
144 | 144 | */ |
145 | 145 | protected function serializeNestedExpData( SMWExpData $data, $indent ) { |
146 | 146 | if ( count( $data->getProperties() ) == 0 ) { |