public function currencyDataAccess($params, $smarty)
    {
        $currency = $this->getSession()->getCurrency();

        if ($currency) {
            return $this->dataAccessWithI18n(
                "Currency",
                $params,
                CurrencyQuery::create()->filterByPrimaryKey($currency->getId()),
                array("NAME")
            );
        }

        return '';
    }
public function currencyDataAccess($params, $smarty)
    {
        $currency = $this->getSession()->getCurrency();

        if ($currency) {
            return $this->dataAccessWithI18n(
                "Currency",
                $params,
                CurrencyQuery::create()->filterByPrimaryKey($currency->getId()),
                array("NAME")
            );
        }

        return '';
    }
public function currencyDataAccess ( $ params , $ smarty ) { $ currency = $ this -> getSession ( ) -> getCurrency ( ) ; if ( $ currency ) { return $ this -> dataAccessWithI18n ( "Currency" , $ params , CurrencyQuery :: create ( ) -> filterByPrimaryKey ( $ currency -> getId ( ) ) , array ( "NAME" ) ) ; } return '' ; }
Provides access to an attribute of the current currency

@param  array $params
@param  \Smarty $smarty
@return string the value of the requested attribute
Provides access to an attribute of the current currency