Aimeos\ShopBundle\Service\View::addNumber PHP 메소드

addNumber() 보호된 메소드

Adds the "number" helper to the view object
protected addNumber ( Aimeos\MW\View\Iface $view, Aimeos\MW\Config\Iface $config ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
$config Aimeos\MW\Config\Iface Configuration object
리턴 Aimeos\MW\View\Iface Modified view object
    protected function addNumber(\Aimeos\MW\View\Iface $view, \Aimeos\MW\Config\Iface $config)
    {
        $sepDec = $config->get('client/html/common/format/separatorDecimal', '.');
        $sep1000 = $config->get('client/html/common/format/separator1000', ' ');
        $decimals = $config->get('client/html/common/format/decimals', 2);
        $helper = new \Aimeos\MW\View\Helper\Number\Standard($view, $sepDec, $sep1000, $decimals);
        $view->addHelper('number', $helper);
        return $view;
    }