本文整理匯總了PHP中utility::nvp2arr方法的典型用法代碼示例。如果您正苦於以下問題:PHP utility::nvp2arr方法的具體用法?PHP utility::nvp2arr怎麽用?PHP utility::nvp2arr使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類utility
的用法示例。
在下文中一共展示了utility::nvp2arr方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isset
<?php
/**
@package catalog::templates::content
@author Loaded Commerce
@copyright Copyright 2003-2014 Loaded Commerce, LLC
@copyright Portions Copyright 2003 osCommerce
@copyright Template built on DevKit http://www.bootstraptor.com under GPL license
@license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
@version $Id: checkout_payment_template.php v1.0 2013-08-08 datazen $
*/
if ($lC_Payment->hasIframeParams()) {
$params = utility::nvp2arr($lC_Payment->getIframeParams());
$fWidth = isset($params['width']) && empty($params['width']) === false ? $params['width'] : '550px';
$fHeight = isset($params['height']) && empty($params['height']) === false ? $params['height'] : '550px';
$fScroll = isset($params['scroll']) && empty($params['scroll']) === false ? $params['scroll'] : 'no';
$fStyle = isset($params['margin-left']) && empty($params['margin-left']) === false ? 'style="margin-left:' . $params['margin-left'] . '"' : null;
} else {
$fWidth = '550px';
$fHeight = '550px';
$fScroll = 'no';
$fStyle = null;
}
$secureUrl = $lC_Payment->hasIframeURL() ? substr($lC_Payment->getIframeURL(), 0, strpos($lC_Payment->getIframeURL(), '?')) : ($lC_Payment->hasRelayURL() ? $lC_Payment->getRelayURL() : NULL);
$isIE = isset($_SESSION['browserName']) && $_SESSION['browserName'] == 'msie' ? true : false;
if ($isIE && ($lC_Payment->selected_module = 'lC_Payment_authorizenet_cc')) {
$fWidth = '650px';
$fHeight = '550px';
$fScroll = 'yes';
$fStyle = null;
}