public function initializeBitrix()
    {
        if ($this->bitrixStatus === static::BITRIX_STATUS_COMPLETE) {
            return static::BITRIX_STATUS_COMPLETE;
        } elseif (!$this->checkBitrix()) {
            return static::BITRIX_STATUS_UNAVAILABLE;
        }

        define('NO_KEEP_STATISTIC', true);
        define('NOT_CHECK_PERMISSIONS', true);

        try {
            /**
             * Declare global legacy variables
             *
             * Including kernel here makes them local by default but some modules depend on them in installation class
             */
            global
            /** @noinspection PhpUnusedLocalVariableInspection */
            $DB, $DBType, $DBHost, $DBLogin, $DBPassword, $DBName, $DBDebug, $DBDebugToFile, $APPLICATION, $USER, $DBSQLServerType;

            require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';

            if (defined('B_PROLOG_INCLUDED') && B_PROLOG_INCLUDED === true) {
                $this->bitrixStatus = static::BITRIX_STATUS_COMPLETE;
            }
        } catch (ConnectionException $e) {
            $this->bitrixStatus = static::BITRIX_STATUS_NO_DB_CONNECTION;
        }

        return $this->bitrixStatus;
    }
public function initializeBitrix()
    {
        if ($this->bitrixStatus === static::BITRIX_STATUS_COMPLETE) {
            return static::BITRIX_STATUS_COMPLETE;
        } elseif (!$this->checkBitrix()) {
            return static::BITRIX_STATUS_UNAVAILABLE;
        }

        define('NO_KEEP_STATISTIC', true);
        define('NOT_CHECK_PERMISSIONS', true);

        try {
            /**
             * Declare global legacy variables
             *
             * Including kernel here makes them local by default but some modules depend on them in installation class
             */
            global
            /** @noinspection PhpUnusedLocalVariableInspection */
            $DB, $DBType, $DBHost, $DBLogin, $DBPassword, $DBName, $DBDebug, $DBDebugToFile, $APPLICATION, $USER, $DBSQLServerType;

            require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';

            if (defined('B_PROLOG_INCLUDED') && B_PROLOG_INCLUDED === true) {
                $this->bitrixStatus = static::BITRIX_STATUS_COMPLETE;
            }
        } catch (ConnectionException $e) {
            $this->bitrixStatus = static::BITRIX_STATUS_NO_DB_CONNECTION;
        }

        return $this->bitrixStatus;
    }
public function initializeBitrix ( ) { if ( $ this -> bitrixStatus === static :: BITRIX_STATUS_COMPLETE ) { return static :: BITRIX_STATUS_COMPLETE ; } elseif ( ! $ this -> checkBitrix ( ) ) { return static :: BITRIX_STATUS_UNAVAILABLE ; } define ( 'NO_KEEP_STATISTIC' , true ) ; define ( 'NOT_CHECK_PERMISSIONS' , true ) ; try { /**
             * Declare global legacy variables
             *
             * Including kernel here makes them local by default but some modules depend on them in installation class
             */ global /** @noinspection PhpUnusedLocalVariableInspection */ $ DB , $ DBType , $ DBHost , $ DBLogin , $ DBPassword , $ DBName , $ DBDebug , $ DBDebugToFile , $ APPLICATION , $ USER , $ DBSQLServerType ; require_once $ _SERVER [ 'DOCUMENT_ROOT' ] . '/bitrix/modules/main/include/prolog_before.php' ; if ( defined ( 'B_PROLOG_INCLUDED' ) && B_PROLOG_INCLUDED === true ) { $ this -> bitrixStatus = static :: BITRIX_STATUS_COMPLETE ; } } catch ( ConnectionException $ e ) { $ this -> bitrixStatus = static :: BITRIX_STATUS_NO_DB_CONNECTION ; } return $ this -> bitrixStatus ; }
Initialize kernel of Bitrix.

@return int The status of readiness kernel.
Initialize kernel of Bitrix .