本文整理汇总了PHP中eZShopFunctions::removeCurrency方法的典型用法代码示例。如果您正苦于以下问题:PHP eZShopFunctions::removeCurrency方法的具体用法?PHP eZShopFunctions::removeCurrency怎么用?PHP eZShopFunctions::removeCurrency使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZShopFunctions
的用法示例。
在下文中一共展示了eZShopFunctions::removeCurrency方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
* @version //autogentag//
* @package kernel
*/
$module = $Params['Module'];
$offset = $Params['Offset'];
$error = false;
if ($module->hasActionParameter('Offset')) {
$offset = $module->actionParameter('Offset');
}
if ($module->isCurrentAction('NewCurrency')) {
$module->redirectTo($module->functionURI('editcurrency'));
} else {
if ($module->isCurrentAction('RemoveCurrency')) {
$currencyList = $module->hasActionParameter('DeleteCurrencyList') ? $module->actionParameter('DeleteCurrencyList') : array();
eZShopFunctions::removeCurrency($currencyList);
eZContentCacheManager::clearAllContentCache();
} else {
if ($module->isCurrentAction('ApplyChanges')) {
$updateDataList = $module->hasActionParameter('CurrencyList') ? $module->actionParameter('CurrencyList') : array();
$currencyList = eZCurrencyData::fetchList();
$db = eZDB::instance();
$db->begin();
foreach ($currencyList as $currency) {
$currencyCode = $currency->attribute('code');
if (isset($updateDataList[$currencyCode])) {
$updateData = $updateDataList[$currencyCode];
if (isset($updateData['status'])) {
$currency->setStatus($updateData['status']);
}
if (is_numeric($updateData['custom_rate_value'])) {