bizprocdesigner :: DoInstall: Bitrix method

      
<?php 
//  bizprocdesigner :: DoInstall()
//  /dist/bitrix/modules/bizprocdesigner/install/index.php:98

    
function DoInstall()
    {
        global 
$APPLICATION$step;

        
$curPhpVer PhpVersion();
        
$arCurPhpVer Explode("."$curPhpVer);
        if (
IntVal($arCurPhpVer[0]) < 5)
        {
            
$this->errors = array(Loc::getMessage("BIZPROC_PHP_L439", array("#VERS#" => $curPhpVer)));
        }
        elseif (!
IsModuleInstalled("bizproc"))
        {
            
$this->errors = array(Loc::getMessage("BIZPROC_ERROR_BPM"));
        }
        elseif (!
CBXFeatures::IsFeatureEditable("BizProc"))
        {
            
$this->errors = array(Loc::getMessage("BIZPROC_ERROR_EDITABLE"));
        }
        else
        {
            
$this->InstallDB(false);
            
$this->InstallFiles();
            
CBXFeatures::SetFeatureEnabled("BizProc"true);
        }

        
$GLOBALS["errors"] = $this->errors;
        
$APPLICATION->IncludeAdminFile(Loc::getMessage("BIZPROC_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bizprocdesigner/install/step2.php");
    }