本文整理匯總了PHP中Shopp::force_ssl方法的典型用法代碼示例。如果您正苦於以下問題:PHP Shopp::force_ssl方法的具體用法?PHP Shopp::force_ssl怎麽用?PHP Shopp::force_ssl使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Shopp
的用法示例。
在下文中一共展示了Shopp::force_ssl方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: buttonurl
/**
* Provides the locale-aware checkout button URL.
*
* A common customization request is to swap the standard button image for something else and this
* can be accomplished via the shopp_paypapstandard_buttonurl hook. It is the merchant's/implementing
* developer's responsibility to comply with PayPal guidelines if they choose to do this.
*
* @author Jonathan Davis
* @since 1.3
*
* @return string The URL of the "Checkout with PayPal"
**/
private function buttonurl()
{
$buttonurl = apply_filters('shopp_paypalstandard_buttonurl', sprintf(self::BUTTON, $this->locale()));
return Shopp::force_ssl($buttonurl);
}
示例2: force_ssl
/**
* @deprecated Use Shopp::force_ssl()
**/
function force_ssl($url, $rewrite = false)
{
return Shopp::force_ssl($url, $rewrite);
}