当前位置: 首页>>代码示例>>PHP>>正文


PHP XLite::getXCNLicenseKey方法代码示例

本文整理汇总了PHP中XLite::getXCNLicenseKey方法的典型用法代码示例。如果您正苦于以下问题:PHP XLite::getXCNLicenseKey方法的具体用法?PHP XLite::getXCNLicenseKey怎么用?PHP XLite::getXCNLicenseKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XLite的用法示例。


在下文中一共展示了XLite::getXCNLicenseKey方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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());
     return $data;
 }
开发者ID:kewaunited,项目名称:xcart,代码行数:10,代码来源:Marketplace.php

示例2: isDefaultFreeLicenseActivated

 /**
  * Return true if default free license key is activated
  *
  * @return boolean
  */
 protected function isDefaultFreeLicenseActivated()
 {
     return \XLite\Core\Marketplace::XC_FREE_LICENSE_KEY == \XLite::getXCNLicenseKey();
 }
开发者ID:kirkbauer2,项目名称:kirkxc,代码行数:9,代码来源:UpgradeWave.php

示例3: hasLicenseRestriction

 /**
  * Module has license restriction if the core has free license but the module does not have free edition
  * The empty editions field means the module has no license restriction
  *
  * @return boolean
  */
 public function hasLicenseRestriction()
 {
     $result = false;
     $coreKey = \XLite::getXCNLicenseKey();
     // The store without any license (trial license active) has no license-restricted module
     if ($coreKey !== '') {
         $editions = $this->getEditionNames();
         // The module with the empty editions structure has no restrictions
         if (!empty($editions)) {
             $freeEdition = \XLite\Core\Marketplace::getInstance()->getFreeLicenseEdition();
             // Module has restricted if there is no freeEdition in the editions structure
             $result = !in_array($freeEdition, $editions);
         }
     }
     return $result;
 }
开发者ID:kewaunited,项目名称:xcart,代码行数:22,代码来源:Module.php


注:本文中的XLite::getXCNLicenseKey方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。