@@ -147,6 +147,9 @@ |
||
| 147 | 147 | return $this->fetchFromParser(); |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | + /** |
|
| 151 | + * @param string $text |
|
| 152 | + */ |
|
| 150 | 153 | protected function parseText( $text ) { |
| 151 | 154 | |
| 152 | 155 | $this->parserOutput = $this->parser->parse( |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * @param string $concept the concept query string |
| 70 | 70 | * @param string $docu user documentation |
| 71 | - * @param integer $queryefeatures flags about query features |
|
| 71 | + * @param integer $queryfeatures flags about query features |
|
| 72 | 72 | * @param integer $size concept query size |
| 73 | 73 | * @param integer $depth concept query depth |
| 74 | 74 | */ |
@@ -118,6 +118,7 @@ discard block |
||
| 118 | 118 | * @since 1.9 |
| 119 | 119 | * |
| 120 | 120 | * @param string |
| 121 | + * @param string $status |
|
| 121 | 122 | */ |
| 122 | 123 | public function setCacheStatus( $status ) { |
| 123 | 124 | $this->cacheStatus = $status; |
@@ -150,7 +151,7 @@ discard block |
||
| 150 | 151 | * |
| 151 | 152 | * @since 1.9 |
| 152 | 153 | * |
| 153 | - * @return string |
|
| 154 | + * @return integer |
|
| 154 | 155 | */ |
| 155 | 156 | public function getCacheStatus() { |
| 156 | 157 | return $this->cacheStatus; |
@@ -161,7 +162,7 @@ discard block |
||
| 161 | 162 | * |
| 162 | 163 | * @since 1.9 |
| 163 | 164 | * |
| 164 | - * @return string |
|
| 165 | + * @return integer |
|
| 165 | 166 | */ |
| 166 | 167 | public function getCacheDate() { |
| 167 | 168 | return $this->cacheDate; |
@@ -20,6 +20,9 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | protected $m_boolean; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param boolean $boolean |
|
| 25 | + */ |
|
| 23 | 26 | public function __construct( $boolean ) { |
| 24 | 27 | if ( !is_bool( $boolean ) ) { |
| 25 | 28 | throw new DataItemException( "Initialization value '$boolean' is not a boolean." ); |
@@ -57,6 +57,7 @@ |
||
| 57 | 57 | * ID. |
| 58 | 58 | * @note PHP can convert any string to some number, so we do not do |
| 59 | 59 | * validation here (because this would require less efficient parsing). |
| 60 | + * @param string $serialization |
|
| 60 | 61 | * @return SMWDINumber |
| 61 | 62 | */ |
| 62 | 63 | public static function doUnserialize( $serialization ) { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * with these examples would be |
| 41 | 41 | * http://[email protected]/path?q=Search+term#section-one |
| 42 | 42 | * @param $scheme string for the scheme |
| 43 | - * @param $hierpart string for the "hierpart" |
|
| 43 | + * @param string $hierpart string for the "hierpart" |
|
| 44 | 44 | * @param $query string for the query |
| 45 | 45 | * @param $fragment string for the fragment |
| 46 | 46 | * |
@@ -105,6 +105,7 @@ discard block |
||
| 105 | 105 | /** |
| 106 | 106 | * Create a data item from the provided serialization string and type |
| 107 | 107 | * ID. |
| 108 | + * @param string $serialization |
|
| 108 | 109 | * @return SMWDIUri |
| 109 | 110 | */ |
| 110 | 111 | public static function doUnserialize( $serialization ) { |
@@ -118,6 +118,9 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | ////// Internal helper functions |
| 120 | 120 | |
| 121 | + /** |
|
| 122 | + * @param integer $type |
|
| 123 | + */ |
|
| 121 | 124 | protected function makeOutputText( $type, $linker = null ) { |
| 122 | 125 | if ( !$this->isValid() ) { |
| 123 | 126 | return ( ( $type == 0 ) || ( $type == 1 ) ) ? '' : $this->getErrorText(); |
@@ -134,6 +137,9 @@ discard block |
||
| 134 | 137 | return $result; |
| 135 | 138 | } |
| 136 | 139 | |
| 140 | + /** |
|
| 141 | + * @param SMWDataValue $propertyValue |
|
| 142 | + */ |
|
| 137 | 143 | protected function makeValueOutputText( $type, $propertyValue, $linker ) { |
| 138 | 144 | switch ( $type ) { |
| 139 | 145 | 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 |
@@ -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 |