예제 #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();
 }