void __construct(
[string
$localeCode = ""]
)
|
|
Constructor of TypeManager, set locale with $localCode parameter
Parameters:
API Tags:
string ConvertDatetimeFormat(
$fmtValue
$fmtValue, $fmt1
$fmt1, $fmt2
$fmt2
)
|
|
Convert a formatted datetime to another format
Parameters:
|
$fmtValue |
$fmtValue: |
- |
|
$fmt1 |
$fmt1: |
- |
|
$fmt2 |
$fmt2: |
- |
API Tags:
| Return: | formatted datetime |
| Access: | public |
mix CurrencyToValue(
string
$fmt, string
$fmtValue
)
|
|
Unformat a currency to value
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$fmtValue: |
- formatted string |
API Tags:
| Return: | - value |
| Access: | protected |
mix DatetimeToValue(
string
$fmt, string
$fmtValue
)
|
|
Unformat a datetime to value
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$fmtValue: |
- formatted string |
API Tags:
| Return: | - ISO format YYYY-MM-DD HH:MM:SS |
| Access: | protected |
mix DateToValue(
string
$fmt, string
$fmtValue
)
|
|
Unformat a date to value
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$fmtValue: |
- formatted string |
API Tags:
| Return: | - ISO format YYYY-MM-DD |
| Access: | protected |
mix FormattedStringToValue(
string
$type, string
$fmt, string
$fmtString
)
|
|
Convert Formatted String To Value
Parameters:
|
string |
$type: |
- field type |
|
string |
$fmt: |
- type format |
|
string |
$fmtString: |
- formatted string |
API Tags:
| Return: | - value |
| Access: | public |
mix NumberToValue(
string
$fmt, string
$fmtValue
)
|
|
Unformat a number to value
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$fmtValue: |
- formatted string |
API Tags:
| Return: | value - |
| Access: | protected |
mix PhoneToValue(
mixed
$mask, string
$fmtValue, string
$fmt
)
|
|
Unformat a phone to value
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$fmtValue: |
- formatted string |
API Tags:
| Return: | value |
| Access: | protected |
mix TextToValue(
string
$fmt, string
$fmtValue
)
|
|
Unformat a text to value
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$fmtValue: |
- formatted string |
API Tags:
| Return: | - |
| Access: | protected |
string ValueToCurrency(
string
$fmt, string
$value
)
|
|
Format value to currency
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$value: |
- value |
API Tags:
| Return: | - formatted string |
| Access: | protected |
string ValueToDate(
string
$fmt, string
$value
)
|
|
Format value to date
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$value: |
- value |
API Tags:
| Return: | - Empty string or formatted Time/Date |
| Access: | protected |
string ValueToDatetime(
string
$fmt, string
$value
)
|
|
Format value to date time
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$value: |
- value |
API Tags:
| Return: | - formatted string |
| Access: | protected |
string ValueToFormattedString(
string
$type, string
$fmt, string
$value
)
|
|
Convert Value To Formatted String
Parameters:
|
string |
$type: |
- field type |
|
string |
$fmt: |
- type format |
|
string |
$value: |
- value |
API Tags:
| Return: | - formatted string |
| Access: | public |
string ValueToNumber(
string
$fmt, string
$value
)
|
|
Format value to number
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$value: |
- value |
API Tags:
| Return: | = formatted number |
| Access: | protected |
string ValueToPhone(
mixed
$mask, string
$value, string
$fmt
)
|
|
Format value to phone number
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$value: |
- value |
API Tags:
| Return: | - formatted string |
| Access: | protected |
string ValueToText(
string
$fmt, string
$value
)
|
|
Format value to text
Parameters:
|
string |
$fmt: |
- type format |
|
string |
$value: |
- value |
API Tags:
| Return: | formatted string |
| Access: | protected |