示例#1
0
 public static function hasDemoLicense()
 {
     if (self::$hasDemoLicense !== null) {
         return self::$hasDemoLicense;
     }
     if (!(ModuleManager::isModuleInstalled('bitrix24') && Loader::includeModule('bitrix24')) && method_exists('CBitrix24', 'IsDemoLicense')) {
         return self::$hasDemoLicense = false;
     }
     return self::$hasDemoLicense = \CBitrix24::IsDemoLicense();
 }
示例#2
0
 public static function IsDemo()
 {
     if (!CModule::IncludeModule('bitrix24')) {
         return false;
     }
     if (CBitrix24::IsDemoLicense()) {
         return true;
     }
     return false;
 }