Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Number.php |
— | — | @@ -20,6 +20,13 @@ |
21 | 21 | * before being processed. All units, IDs or otherwise, should be suitable for |
22 | 22 | * printout in wikitext, and main IDs should moreover be suitable for printout |
23 | 23 | * in HTML. |
| 24 | + * |
| 25 | + * Subclasses that support unit conversion may interpret the output format set |
| 26 | + * via setOutputFormat() to allow a unit to be selected for display. Note that |
| 27 | + * this setting does not affect the internal representation of the value |
| 28 | + * though. So chosing a specific output format will change the behavior of |
| 29 | + * output functions like getLongWikiText(), but not of functions that access |
| 30 | + * the value itself, such as getUnit() or getDBKeys(). |
24 | 31 | * |
25 | 32 | * @author Markus Krötzsch |
26 | 33 | * @ingroup SMWDataValues |