Class Shop_Controller
Online shop.
Package: HostCMS\Shop
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at shop/controller.php
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at shop/controller.php
Methods summary
public static
object
|
|
public
|
|
public
|
|
public
|
|
public
|
#
bankersRoundHalfToEven( boolean $bankersRoundHalfToEven = TRUE )
Banker's Round half to even TRUE - Round half to even. 23.5 => 24, 24.5 => 24 FALSE - Round half to odd. 23.5 => 23, 24.5 => 25 |
public
float
|
#
bRound( float $value, integer $precision = 0 )
Banker's Round depends on $this->_bankersRoundHalfToEven |
public
string
|
|
public
mixed
|
|
public static
mixed
|
|
public
mixed
|
|
public
float
|
#
getCurrencyCoefficientInShopCurrency(
Определение коэффициента пересчета валюты $oItem_Currency в валюту $oShop_Currency |
public static
|
#
convertSizeMeasure( string $value, integer $sourceMeasure, integer $destMeasure = 0 )
Конвертирование значения из одной меры размера в другую |
public static
|
|
public static
|
Properties summary
public static
mixed
|
$instance
The singleton instances. |
#
NULL
|
protected
string
|
$_floatFormat
Float digits format |
#
"%.2f"
|
protected
integer
|
$_decimalDigits
Number of decimal digits |
#
2
|
protected
boolean
|
$_bankersRounding
Use Banker's Rounding. Default TRUE |
#
TRUE
|
protected
boolean
|
$_bankersRoundHalfToEven
Banker's Round half to even TRUE - Round half to even. 23.5 => 24, 24.5 => 24 FALSE - Round half to odd. 23.5 => 23, 24.5 => 25 |
#
TRUE
|