Class ServerFormat
The class is conditionally abstract in: php, php/client, php/server
Transport class for server formatting settings. This is used by both UIs to format numbers, dates, money, etc. The XML version of it is stored in the template directory, distributed between main and language dependent directory.
Enums
enum MoneyPos
Position of the money sign in relation to number and currency symbol
Symbol | Value | Docu |
NoSign | 0 | no sign is shown, regardless of what symbol is set |
SignBeforeNum | 1 | the sign is shown before the numeric value |
SignAfterNum | 2 | the sign is shown after the numeric value |
SignBeforeSym | 3 | the sign is shown before the currency symbol |
SignAfterSym | 4 | the sign is shown after the currency symbol |
SignParen | 5 | parentheses are drawn around the numeric value |
Properties
- weekdays (List:string)
The list of week day names, starting with monday
- shortweekdays (List:string)
The list of abbreviated week day names, starting with monday
- months (List:string)
The list of month names
- shortmonths (List:string)
The list of abbreviated month names
- dateformat (astring)
The default format for dates, see the docu of MLocalFormat (Qt side) and LanguageManager (PHP side) for details.
- timeformat (astring)
The default format for time.
- datetimeformat (astring)
The default format for date and time.
- amtext (astring)
The text for AM in time stamps
- pmtext (astring)
The text for PM in time stamps
- decimaldot (astring)
The decimal dot for numbers
- thousandseparator (astring)
The thousand separator for numbers, if it is a space the Web UI will actually use to prevent breaking the number.
- thousanddigits (int)
The amount of digits between thousand separators, 0 for no thousand separator
- moneydecimals (int)
The amount of decimals for money values - this must be the same for all languages on a server, the default is 2
- currencysymbol (astring)
The currency used
- currencysymbolhtml (astring)
The currency used in HTML notation
- currencysymbolplain (astring)
The currency used in ASCII notation
- currencysymbolpos (bool)
Where the currency symbol is found: false: before the number, true: behind the number
- moneynegative (astring)
Zero to three characters: for negative money values the first one is placed in front of the money value and the second one behind the money value
- moneypositive (astring)
Zero to three characters: for positive money values the first one is placed in front of the money value and the second one behind the money value
- moneypositivepos (MoneyPos)
position of the positive money sign
- moneynegativepos (MoneyPos)
position of the negative money sign
- timezone (astring)
Olsen database time zone name