本文整理匯總了PHP中XLite::getAffiliateId方法的典型用法代碼示例。如果您正苦於以下問題:PHP XLite::getAffiliateId方法的具體用法?PHP XLite::getAffiliateId怎麽用?PHP XLite::getAffiliateId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XLite
的用法示例。
在下文中一共展示了XLite::getAffiliateId方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getRequestCommonData
/**
* Common data for all request types
*
* @return array
*/
protected function getRequestCommonData()
{
$data = array(static::FIELD_VERSION_API => static::MP_API_VERSION, static::FIELD_SHOP_ID => $this->generateShopID(), static::FIELD_SHOP_DOMAIN => \Includes\Utils\ConfigParser::getOptions(array('host_details', 'http_host')), static::FIELD_SHOP_URL => \XLite\Core\URLManager::getShopURL(), static::FIELD_VERSION_CORE_CURRENT => $this->getVersionField(\XLite::getInstance()->getMajorVersion(), \XLite::getInstance()->getMinorVersion()), static::FIELD_XCN_LICENSE_KEY => \XLite::getXCNLicenseKey(), static::FIELD_INSTALLATION_LNG => \XLite::getInstallationLng());
if (\XLite::getAffiliateId()) {
$data[static::FIELD_AFFILIATE_ID] = \XLite::getAffiliateId();
}
return $data;
}