本文整理匯總了PHP中CCurrencyLang::disableUseHideZero方法的典型用法代碼示例。如果您正苦於以下問題:PHP CCurrencyLang::disableUseHideZero方法的具體用法?PHP CCurrencyLang::disableUseHideZero怎麽用?PHP CCurrencyLang::disableUseHideZero使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CCurrencyLang
的用法示例。
在下文中一共展示了CCurrencyLang::disableUseHideZero方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
<?php
CCurrencyLang::disableUseHideZero();
$orderId = (int) $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"];
if ($orderId) {
/** @var \Bitrix\Sale\Order $order */
$order = \Bitrix\Sale\Order::load($orderId);
if ($order) {
/** @var \Bitrix\Sale\PaymentCollection $paymentCollection */
$paymentCollection = $order->getPaymentCollection();
if ($paymentCollection) {
/** @var \Bitrix\Sale\Payment $payment */
foreach ($paymentCollection as $payment) {
if (!$payment->isInner()) {
break;
}
}
if ($payment) {
$context = \Bitrix\Main\Application::getInstance()->getContext();
$service = \Bitrix\Sale\PaySystem\Manager::getObjectById($payment->getPaymentSystemId());
if ($_REQUEST['pdf'] && $_REQUEST['GET_CONTENT'] == 'Y') {
$result = $service->initiatePay($payment, $context->getRequest(), \Bitrix\Sale\PaySystem\BaseServiceHandler::STRING);
if ($result->isSuccess()) {
return $result->getTemplate();
}
}
$result = $service->initiatePay($payment, $context->getRequest());
}
CCurrencyLang::enableUseHideZero();
}
}