Format
in component
Formatting values with language based
Table of Contents
Properties
Methods
- __construct() : mixed
- convertToByte() : mixed
- convertToMegabyte() : mixed
- formatDate() : mixed
- formatLength() : mixed
- formatPassedTime() : mixed
- formatPrice() : mixed
- formatWeight() : mixed
- getLengthUnit() : mixed
- getWeightUnit() : mixed
- parseLength() : mixed
- parsePrice() : mixed
- parseWeight() : mixed
- strip() : mixed
Properties
$config
protected
mixed
$config
$db
protected
mixed
$db
$language
protected
mixed
$language
$language_id
protected
mixed
$language_id
$model_localisation_language
protected
mixed
$model_localisation_language
$registry
protected
mixed
$registry
Methods
__construct()
public
__construct([mixed $language_id = null ]) : mixed
Parameters
- $language_id : mixed = null
convertToByte()
public
convertToByte(mixed $file_size) : mixed
Parameters
- $file_size : mixed
convertToMegabyte()
public
convertToMegabyte(mixed $val) : mixed
Parameters
- $val : mixed
formatDate()
public
formatDate(mixed &$date) : mixed
Parameters
- $date : mixed
formatLength()
public
formatLength(mixed $val, mixed $class_id[, mixed $decimal_point = '.' ][, mixed $thousand_point = '' ]) : mixed
Parameters
- $val : mixed
- $class_id : mixed
- $decimal_point : mixed = '.'
- $thousand_point : mixed = ''
formatPassedTime()
public
formatPassedTime(mixed $diff) : mixed
Parameters
- $diff : mixed
formatPrice()
public
formatPrice(mixed $price[, mixed $new = false ]) : mixed
Parameters
- $price : mixed
- $new : mixed = false
formatWeight()
public
formatWeight(mixed $val, mixed $class_id[, mixed $decimal_point = '.' ][, mixed $thousand_point = '' ]) : mixed
Parameters
- $val : mixed
- $class_id : mixed
- $decimal_point : mixed = '.'
- $thousand_point : mixed = ''
getLengthUnit()
public
getLengthUnit(mixed $class_id) : mixed
Parameters
- $class_id : mixed
getWeightUnit()
public
getWeightUnit(mixed $class_id) : mixed
Parameters
- $class_id : mixed
parseLength()
public
parseLength(mixed $length) : mixed
Parameters
- $length : mixed
parsePrice()
public
parsePrice(mixed $price) : mixed
Parameters
- $price : mixed
parseWeight()
public
parseWeight(mixed $weight) : mixed
Parameters
- $weight : mixed
strip()
public
strip(mixed $str, mixed $chars) : mixed
Parameters
- $str : mixed
- $chars : mixed