advertising :: DoInstall: Bitrix method

      
<?php 
//  advertising :: DoInstall()
//  /dist/bitrix/modules/advertising/install/index.php:41

    
function DoInstall()
    {
        global 
$APPLICATION$errors;
        
$ADV_RIGHT $APPLICATION->GetGroupRight("advertising");
        if (
$ADV_RIGHT=="W")
        {
            
$errors false;

            
$this->InstallFiles();
            
$this->InstallDB();
            
$this->InstallEvents();

            
$APPLICATION->IncludeAdminFile(
                
GetMessage("AD_INSTALL"),
                
$_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/advertising/install/inst.php"
            
);
        }
    }