UnitService
Namespace
IO\Services
Type | Name | Value | Description |
---|---|---|---|
|
1 |
||
|
2 |
||
|
3 |
||
|
4 |
Type | Name | Description |
---|---|---|
|
||
|
||
|
||
|
Methods
public __construct($unitRepository)
UnitService constructor.
Type |
Name |
Description |
|
public getUnitById($unitId, $lang = "de"):UnitName
Get the unit by ID
Type |
Name |
Description |
|
||
|
public getUnitNameByKey()
public static isValidUnit($sUnit):bool
Checks if the given string unit is a valid one for the PlentyDimension.
Type |
Name |
Description |
|
The unit to be checked |
public static getHTML4Unit($sUnit = "SMM"):string
Returns HTML code for the unit ('m','cm' o'MM')
Type |
Name |
Description |
|
One of 'MTK', 'SCM', 'SMM' |
public fromMemoryCache()
public resetMemoryCache($key = null)
Type |
Name |
Description |
|
Thank you for your feedback!