bitrixcloud :: InstallDB: Bitrix method

      
<?php 
//  bitrixcloud :: InstallDB()
//  /dist/bitrix/modules/bitrixcloud/install/index.php:52

    
function InstallDB($arParams = array())
    {
        global 
$DB$APPLICATION;
        
$this->errors false;
        
// Database tables creation
        
if (!$DB->Query("SELECT 'x' FROM b_bitrixcloud_option WHERE 1=0"true))
        {
            
$this->errors $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bitrixcloud/install/db/".strtolower($DB->type)."/install.sql");
        }
        if (
$this->errors !== false)
        {
            
$APPLICATION->ThrowException(implode("<br>"$this->errors));
            return 
false;
        }
        else
        {
            
$this->InstallTasks();
            
RegisterModule("bitrixcloud");
            
RegisterModuleDependences("main""OnAdminInformerInsertItems""bitrixcloud""CBitrixCloudBackup""OnAdminInformerInsertItems");
            
RegisterModuleDependences("mobileapp""OnBeforeAdminMobileMenuBuild""bitrixcloud""CBitrixCloudMobile""OnBeforeAdminMobileMenuBuild");

            
CModule::IncludeModule("bitrixcloud");
        }
        return 
true;
    }