Index: trunk/extensions/Maps/includes/Maps_Settings.php |
— | — | @@ -315,7 +315,7 @@ |
316 | 316 | /** |
317 | 317 | * Simple class to define settings, which can be represented |
318 | 318 | * as key values pairs, together with meta data such as |
319 | | - * description messages and how they can berepresented in |
| 319 | + * description messages and how they can be represented in |
320 | 320 | * as UI elements. |
321 | 321 | * |
322 | 322 | * @since ? |
— | — | @@ -325,9 +325,9 @@ |
326 | 326 | */ |
327 | 327 | class Setting { |
328 | 328 | |
329 | | - public $name; |
330 | | - public $value; |
331 | | - public $message = false; |
| 329 | + protected $name; |
| 330 | + protected $value; |
| 331 | + protected $message = false; |
332 | 332 | |
333 | 333 | public static function newFromValue( $name, $value ) { |
334 | 334 | return new Setting( $name, $value ); |
— | — | @@ -347,4 +347,12 @@ |
348 | 348 | return $this->name; |
349 | 349 | } |
350 | 350 | |
| 351 | + public function getMessage() { |
| 352 | + return $this->message; |
| 353 | + } |
| 354 | + |
| 355 | + public function setMessage( $message ) { |
| 356 | + $this->message = $message; |
| 357 | + } |
| 358 | + |
351 | 359 | } |