@@ -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: |
@@ -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 |
@@ -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 ) { |