Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс ImportProcess
+ Граф наследования:ImportProcess:

Открытые члены

 __construct ($options)
 
 onBeforePerformIteration ()
 
 getTypes ()
 
 getStatisticsAll ()
 
 getStatistics ($type='TOTAL')
 
 determineLayoutToImport ()
 
 convertBlock ($block)
 
 checkSource ($sType)
 
 getRemoteLayout ($getFlat=false)
 
 getRemoteTypes ()
 
 getRemoteExternalServices ()
 
 getRemoteTypeGroups ()
 
 getTypeLevels ($langId=LANGUAGE_ID)
 
 getRequiredLanguages ()
 
 restoreIndexes ($certainIndex=false)
 
 saveUserFile ($inputName)
 
 turnOffCache ()
 
 provideEnFromRu (&$data)
 
- Открытые члены унаследованные от Process
 addStage ($params)
 
 restore ()
 
 reset ()
 
 performStage ()
 
 performIteration ()
 
 setStepSize ($code, $stepSize)
 Staging.
 
 nextStage ()
 
 nextStep ()
 
 isStage ($code)
 
 stageLT ($code)
 
 stageGT ($code)
 
 setStage ($stage)
 
 onAfterPerformIteration ()
 
 getStageCode ()
 
 getCurrStageIndex ()
 
 getStep ()
 
 getStage ($code)
 
 getCurrStageStepSize ()
 
 getStagePercent ($sNum=false)
 Percentage.
 
 getPercentBetween ($codeFrom, $codeTo)
 
 getPercentFromToCurrent ($codeFrom)
 
 getCurrentPercentRange ()
 
 getPercent ()
 
 calcSubPercent ($range)
 
 getSubPercentByTotalAndDone ($total, $done=0)
 
 checkQuota ()
 Quotas info.
 
 setTimeLimit ($timeLimit)
 
 getMemoryPeak ()
 
 clearLogFile ()
 Logging.
 
 getLogFileDir ()
 
 getLogFilePath ()
 
 logMessage ($message='', $addTimeStamp=true)
 
 logMemoryUsage ()
 
 logFinalResult ()
 
 getLockFilePath ()
 Lock.
 
 lockProcess ()
 
 unLockProcess ()
 
 checkProcessLocked ()
 
 getData ()
 Util.
 

Открытые статические члены

static getSiteLanguages ()
 
static getIndexMap ()
 
static getExistedTypes ()
 
static getExistedServices ()
 
static createTypes ($types, $existed=false)
 
static createType ($type)
 
static createService ($service)
 
static getTypeMap ($file)
 
static getServiceMap ($file)
 
static importFile (&$descriptior)
 

Открытые атрибуты

const DISTRIBUTOR_HOST = 'www.1c-bitrix.ru'
 
const DISTRIBUTOR_PORT = 80
 
const REMOTE_PATH = '/download/files/locations/pro/'
 
const REMOTE_SETS_PATH = 'bundles/'
 
const REMOTE_LAYOUT_FILE = 'bundles/layout.csv'
 
const REMOTE_TYPE_GROUP_FILE = 'typegroup.csv'
 
const REMOTE_TYPE_FILE = 'type.v2.csv'
 
const REMOTE_EXTERNAL_SERVICE_FILE = 'externalservice.csv'
 
const PACK_STANDARD = 'standard'
 
const PACK_EXTENDED = 'extended'
 
const LOCAL_SETS_PATH = 'bundles/'
 
const LOCAL_LOCATION_FILE = '%s.csv'
 
const LOCAL_LAYOUT_FILE = 'layout.csv'
 
const LOCAL_TYPE_GROUP_FILE = 'typegroup.csv'
 
const LOCAL_TYPE_FILE = 'type.csv'
 
const LOCAL_EXTERNAL_SERVICE_FILE = 'externalservice.csv'
 
const USER_FILE_DIRECTORY_SESSION_KEY = 'location_import_user_file'
 
const USER_FILE_TEMP_NAME = 'userfile.csv'
 
const SOURCE_REMOTE = 'remote'
 
const SOURCE_FILE = 'file'
 
const MAX_CODE_FETCH_BLOCK_LEN = 90
 
const INSERTER_MTU = 99999
 
const INSERTER_MTU_ORACLE = 9999
 
const DB_TYPE_MYSQL = 'mysql'
 
const DB_TYPE_MSSQL = 'mssql'
 
const DB_TYPE_ORACLE = 'oracle'
 
const TREE_REBALANCE_TEMP_BLOCK_LEN = 99999
 
const TREE_REBALANCE_TEMP_BLOCK_LEN_O = 9999
 
const TREE_REBALANCE_TEMP_TABLE_NAME = 'b_sale_location_rebalance'
 
const DEBUG_MODE = false
 
- Открытые атрибуты унаследованные от Process
const JUST_SHOW_STAGES = false
 
const MIN_TIME_LIMIT = 5
 
const DEBUG_MODE = false
 
const DEBUG_FOLDER = '%BX_ROOT%/tmp/'
 
const DEBUG_FILE = '%SESSION_KEY%_process.txt'
 
const LOCK_FILE = '%SESSION_KEY%_lock'
 
const CALLBACK_TYPE_MANUAL = 'manual'
 
const CALLBACK_TYPE_QUOTA = 'quota'
 

Защищенные члены

 prepareImportProcessOptions ($options)
 
 stageDownloadFiles ()
 
 getSubpercentForStageDownloadFiles ()
 
 stageDeleteAll ()
 
 getSubpercentForstageDeleteAll ()
 
 stageDropIndexes ()
 
 getSubpercentForStageDropIndexes ()
 
 readBlockFromCurrentFile2 ()
 
 importBlock (&$block)
 
 getCurrentGid ()
 
 stageProcessFiles ()
 
 getSubpercentForStageProcessFiles ()
 
 stageIntegrityPreserve ()
 
 stageRebalanceWalkTree ()
 
 getSubpercentForStageRebalanceWalkTree ()
 
 stageRebalanceCleanupTempTable ()
 
 stageRestoreIndexes ()
 
 getSubpercentForStageRestoreIndexes ()
 
 getLanguageId ()
 
 buildTypeTable ()
 
 checkExternalServiceAllowed ($code)
 
 buildExternalSerivceTable ()
 
 buildStaticLocationIndex ()
 
 getLocationCodeToIdMapQuery ($buffer, &$result)
 
 getLocationCodeToIdMap ($codes)
 
 manageExistedLocationIndex ($memGroups)
 
 checkIndexExistsByName ($indexName, $tableName)
 
 dropIndexByName ($indexName, $tableName)
 
 dropIndexes ($certainIndex=false)
 
 checkFileCompletelyRead ()
 
 checkAllFilesRead ()
 
 checkBufferIsFull ($bufferSize)
 
 getFileNameByIndex ($i)
 
 getTemporalDirectory ()
 
 normalizeQueryArray ($value)
 
- Защищенные члены унаследованные от Process
 stageCompare ($code, $way)
 
 saveStartTime ()
 
 saveMemoryPeak ()
 
 getHitTime ()
 Diagnostics tools.
 
 getProcessTime ()
 
 getProcessTimeString ()
 
 getHitTimeString ()
 
 getElapsedTimeString ()
 
 getTimeString ($time=0)
 
 getTimeStampString ()
 
 getMemoryPeakString ()
 
 getBlock ($from)
 

Защищенные статические члены

static checkLocationCodeExists ($code)
 
static downloadFile ($fileName, $storeAs, $skip404=false, $storeTo=false)
 
static cleanWorkDirectory ()
 
static explainFileUploadError ($error)
 
static createDirectory ($path)
 
static deleteDirectory ($path)
 
static parseQueryCode ($value)
 
static getTranslatedName ($names, $languageId)
 

Защищенные данные

 $sessionKey = 'location_import'
 
 $rebalanceInserter = false
 
 $stat = array()
 
 $hitData = array()
 
 $useCache = true
 
 $dbConnection = null
 
 $dbConnType = null
 
 $dbHelper = null
 
- Защищенные данные унаследованные от Process
 $stages = array()
 
 $stagesByCode = array()
 
 $stage = 0
 
 $step = 0
 
 $data = array()
 
 $time = 0
 
 $timeLimit = 20
 
 $sessionKey = 'long_process'
 
 $useLock = false
 
 $options = array()
 

Подробное описание

См. определение в файле importprocess.php строка 19

Конструктор(ы)

◆ __construct()

__construct ( $options)

Переопределяет метод предка Process.

См. определение в файле importprocess.php строка 71

Методы

◆ buildExternalSerivceTable()

buildExternalSerivceTable ( )
protected

См. определение в файле importprocess.php строка 1662

◆ buildStaticLocationIndex()

buildStaticLocationIndex ( )
protected

См. определение в файле importprocess.php строка 1690

◆ buildTypeTable()

buildTypeTable ( )
protected

См. определение в файле importprocess.php строка 1577

◆ checkAllFilesRead()

checkAllFilesRead ( )
protected

См. определение в файле importprocess.php строка 2012

◆ checkBufferIsFull()

checkBufferIsFull ( $bufferSize)
protected

См. определение в файле importprocess.php строка 2017

◆ checkExternalServiceAllowed()

checkExternalServiceAllowed ( $code)
protected

См. определение в файле importprocess.php строка 1651

◆ checkFileCompletelyRead()

checkFileCompletelyRead ( )
protected

См. определение в файле importprocess.php строка 2007

◆ checkIndexExistsByName()

checkIndexExistsByName ( $indexName,
$tableName )
protected

См. определение в файле importprocess.php строка 1772

◆ checkLocationCodeExists()

static checkLocationCodeExists ( $code)
staticprotected

См. определение в файле importprocess.php строка 572

◆ checkSource()

checkSource ( $sType)

См. определение в файле importprocess.php строка 1389

◆ cleanWorkDirectory()

static cleanWorkDirectory ( )
staticprotected

См. определение в файле importprocess.php строка 2071

◆ convertBlock()

convertBlock ( $block)

См. определение в файле importprocess.php строка 1330

◆ createDirectory()

static createDirectory ( $path)
staticprotected

См. определение в файле importprocess.php строка 2172

◆ createService()

static createService ( $service)
static

См. определение в файле importprocess.php строка 2326

◆ createType()

static createType ( $type)
static

См. определение в файле importprocess.php строка 2304

◆ createTypes()

static createTypes ( $types,
$existed = false )
static

См. определение в файле importprocess.php строка 2246

◆ deleteDirectory()

static deleteDirectory ( $path)
staticprotected

См. определение в файле importprocess.php строка 2180

◆ determineLayoutToImport()

determineLayoutToImport ( )

См. определение в файле importprocess.php строка 1240

◆ downloadFile()

static downloadFile ( $fileName,
$storeAs,
$skip404 = false,
$storeTo = false )
staticprotected

См. определение в файле importprocess.php строка 2022

◆ dropIndexByName()

dropIndexByName ( $indexName,
$tableName )
protected

См. определение в файле importprocess.php строка 1809

◆ dropIndexes()

dropIndexes ( $certainIndex = false)
protected

См. определение в файле importprocess.php строка 1859

◆ explainFileUploadError()

static explainFileUploadError ( $error)
staticprotected

См. определение в файле importprocess.php строка 2114

◆ getCurrentGid()

getCurrentGid ( )
protected

См. определение в файле importprocess.php строка 796

◆ getExistedServices()

static getExistedServices ( )
static

См. определение в файле importprocess.php строка 2236

◆ getExistedTypes()

static getExistedTypes ( )
static

См. определение в файле importprocess.php строка 2226

◆ getFileNameByIndex()

getFileNameByIndex ( $i)
protected

См. определение в файле importprocess.php строка 2075

◆ getIndexMap()

static getIndexMap ( )
static

См. определение в файле importprocess.php строка 1830

◆ getLanguageId()

getLanguageId ( )
protected

См. определение в файле importprocess.php строка 1150

◆ getLocationCodeToIdMap()

getLocationCodeToIdMap ( $codes)
protected

См. определение в файле importprocess.php строка 1712

◆ getLocationCodeToIdMapQuery()

getLocationCodeToIdMapQuery ( $buffer,
& $result )
protected

См. определение в файле importprocess.php строка 1705

◆ getRemoteExternalServices()

getRemoteExternalServices ( )

См. определение в файле importprocess.php строка 1460

◆ getRemoteLayout()

getRemoteLayout ( $getFlat = false)

См. определение в файле importprocess.php строка 1395

◆ getRemoteTypeGroups()

getRemoteTypeGroups ( )

См. определение в файле importprocess.php строка 1487

◆ getRemoteTypes()

getRemoteTypes ( )

См. определение в файле importprocess.php строка 1432

◆ getRequiredLanguages()

getRequiredLanguages ( )

См. определение в файле importprocess.php строка 1565

◆ getServiceMap()

static getServiceMap ( $file)
static

См. определение в файле importprocess.php строка 2358

◆ getSiteLanguages()

static getSiteLanguages ( )
static

См. определение в файле importprocess.php строка 1545

◆ getStatistics()

getStatistics ( $type = 'TOTAL')

См. определение в файле importprocess.php строка 1186

◆ getStatisticsAll()

getStatisticsAll ( )

См. определение в файле importprocess.php строка 1179

◆ getSubpercentForstageDeleteAll()

getSubpercentForstageDeleteAll ( )
protected

См. определение в файле importprocess.php строка 455

◆ getSubpercentForStageDownloadFiles()

getSubpercentForStageDownloadFiles ( )
protected

См. определение в файле importprocess.php строка 411

◆ getSubpercentForStageDropIndexes()

getSubpercentForStageDropIndexes ( )
protected

См. определение в файле importprocess.php строка 504

◆ getSubpercentForStageProcessFiles()

getSubpercentForStageProcessFiles ( )
protected

См. определение в файле importprocess.php строка 892

◆ getSubpercentForStageRebalanceWalkTree()

getSubpercentForStageRebalanceWalkTree ( )
protected

См. определение в файле importprocess.php строка 1074

◆ getSubpercentForStageRestoreIndexes()

getSubpercentForStageRestoreIndexes ( )
protected

См. определение в файле importprocess.php строка 1130

◆ getTemporalDirectory()

getTemporalDirectory ( )
protected

См. определение в файле importprocess.php строка 2148

◆ getTranslatedName()

static getTranslatedName ( $names,
$languageId )
staticprotected

См. определение в файле importprocess.php строка 2290

◆ getTypeLevels()

getTypeLevels ( $langId = LANGUAGE_ID)

См. определение в файле importprocess.php строка 1515

◆ getTypeMap()

static getTypeMap ( $file)
static

См. определение в файле importprocess.php строка 2335

◆ getTypes()

getTypes ( )

См. определение в файле importprocess.php строка 1158

◆ importBlock()

importBlock ( & $block)
protected

См. определение в файле importprocess.php строка 585

◆ importFile()

static importFile ( & $descriptior)
static

См. определение в файле importprocess.php строка 2371

◆ manageExistedLocationIndex()

manageExistedLocationIndex ( $memGroups)
protected

См. определение в файле importprocess.php строка 1744

◆ normalizeQueryArray()

normalizeQueryArray ( $value)
protected

См. определение в файле importprocess.php строка 2188

◆ onBeforePerformIteration()

onBeforePerformIteration ( )

Переопределяет метод предка Process.

См. определение в файле importprocess.php строка 210

◆ parseQueryCode()

static parseQueryCode ( $value)
staticprotected

См. определение в файле importprocess.php строка 2208

◆ prepareImportProcessOptions()

prepareImportProcessOptions ( $options)
protected

См. определение в файле importprocess.php строка 159

◆ provideEnFromRu()

provideEnFromRu ( & $data)

См. определение в файле importprocess.php строка 2510

◆ readBlockFromCurrentFile2()

readBlockFromCurrentFile2 ( )
protected

См. определение в файле importprocess.php строка 522

◆ restoreIndexes()

restoreIndexes ( $certainIndex = false)

См. определение в файле importprocess.php строка 1872

◆ saveUserFile()

saveUserFile ( $inputName)

См. определение в файле importprocess.php строка 2080

◆ stageDeleteAll()

stageDeleteAll ( )
protected

См. определение в файле importprocess.php строка 428

◆ stageDownloadFiles()

stageDownloadFiles ( )
protected

См. определение в файле importprocess.php строка 295

◆ stageDropIndexes()

stageDropIndexes ( )
protected

См. определение в файле importprocess.php строка 473

◆ stageIntegrityPreserve()

stageIntegrityPreserve ( )
protected

См. определение в файле importprocess.php строка 924

◆ stageProcessFiles()

stageProcessFiles ( )
protected

См. определение в файле importprocess.php строка 801

◆ stageRebalanceCleanupTempTable()

stageRebalanceCleanupTempTable ( )
protected

См. определение в файле importprocess.php строка 1090

◆ stageRebalanceWalkTree()

stageRebalanceWalkTree ( )
protected

См. определение в файле importprocess.php строка 976

◆ stageRestoreIndexes()

stageRestoreIndexes ( )
protected

См. определение в файле importprocess.php строка 1099

◆ turnOffCache()

turnOffCache ( )

См. определение в файле importprocess.php строка 2218

Данные класса

◆ $dbConnection

$dbConnection = null
protected

См. определение в файле importprocess.php строка 67

◆ $dbConnType

$dbConnType = null
protected

См. определение в файле importprocess.php строка 68

◆ $dbHelper

$dbHelper = null
protected

См. определение в файле importprocess.php строка 69

◆ $hitData

$hitData = array()
protected

См. определение в файле importprocess.php строка 64

◆ $rebalanceInserter

$rebalanceInserter = false
protected

См. определение в файле importprocess.php строка 62

◆ $sessionKey

$sessionKey = 'location_import'
protected

См. определение в файле importprocess.php строка 61

◆ $stat

$stat = array()
protected

См. определение в файле importprocess.php строка 63

◆ $useCache

$useCache = true
protected

См. определение в файле importprocess.php строка 65

◆ DB_TYPE_MSSQL

const DB_TYPE_MSSQL = 'mssql'

См. определение в файле importprocess.php строка 52

◆ DB_TYPE_MYSQL

const DB_TYPE_MYSQL = 'mysql'

См. определение в файле importprocess.php строка 51

◆ DB_TYPE_ORACLE

const DB_TYPE_ORACLE = 'oracle'

См. определение в файле importprocess.php строка 53

◆ DEBUG_MODE

const DEBUG_MODE = false

См. определение в файле importprocess.php строка 59

◆ DISTRIBUTOR_HOST

const DISTRIBUTOR_HOST = 'www.1c-bitrix.ru'

См. определение в файле importprocess.php строка 21

◆ DISTRIBUTOR_PORT

const DISTRIBUTOR_PORT = 80

См. определение в файле importprocess.php строка 22

◆ INSERTER_MTU

const INSERTER_MTU = 99999

См. определение в файле importprocess.php строка 48

◆ INSERTER_MTU_ORACLE

const INSERTER_MTU_ORACLE = 9999

См. определение в файле importprocess.php строка 49

◆ LOCAL_EXTERNAL_SERVICE_FILE

const LOCAL_EXTERNAL_SERVICE_FILE = 'externalservice.csv'

См. определение в файле importprocess.php строка 39

◆ LOCAL_LAYOUT_FILE

const LOCAL_LAYOUT_FILE = 'layout.csv'

См. определение в файле importprocess.php строка 36

◆ LOCAL_LOCATION_FILE

const LOCAL_LOCATION_FILE = '%s.csv'

См. определение в файле importprocess.php строка 35

◆ LOCAL_SETS_PATH

const LOCAL_SETS_PATH = 'bundles/'

См. определение в файле importprocess.php строка 34

◆ LOCAL_TYPE_FILE

const LOCAL_TYPE_FILE = 'type.csv'

См. определение в файле importprocess.php строка 38

◆ LOCAL_TYPE_GROUP_FILE

const LOCAL_TYPE_GROUP_FILE = 'typegroup.csv'

См. определение в файле importprocess.php строка 37

◆ MAX_CODE_FETCH_BLOCK_LEN

const MAX_CODE_FETCH_BLOCK_LEN = 90

См. определение в файле importprocess.php строка 47

◆ PACK_EXTENDED

const PACK_EXTENDED = 'extended'

См. определение в файле importprocess.php строка 32

◆ PACK_STANDARD

const PACK_STANDARD = 'standard'

См. определение в файле importprocess.php строка 31

◆ REMOTE_EXTERNAL_SERVICE_FILE

const REMOTE_EXTERNAL_SERVICE_FILE = 'externalservice.csv'

См. определение в файле importprocess.php строка 29

◆ REMOTE_LAYOUT_FILE

const REMOTE_LAYOUT_FILE = 'bundles/layout.csv'

См. определение в файле importprocess.php строка 26

◆ REMOTE_PATH

const REMOTE_PATH = '/download/files/locations/pro/'

См. определение в файле importprocess.php строка 24

◆ REMOTE_SETS_PATH

const REMOTE_SETS_PATH = 'bundles/'

См. определение в файле importprocess.php строка 25

◆ REMOTE_TYPE_FILE

const REMOTE_TYPE_FILE = 'type.v2.csv'

См. определение в файле importprocess.php строка 28

◆ REMOTE_TYPE_GROUP_FILE

const REMOTE_TYPE_GROUP_FILE = 'typegroup.csv'

См. определение в файле importprocess.php строка 27

◆ SOURCE_FILE

const SOURCE_FILE = 'file'

См. определение в файле importprocess.php строка 45

◆ SOURCE_REMOTE

const SOURCE_REMOTE = 'remote'

См. определение в файле importprocess.php строка 44

◆ TREE_REBALANCE_TEMP_BLOCK_LEN

const TREE_REBALANCE_TEMP_BLOCK_LEN = 99999

См. определение в файле importprocess.php строка 55

◆ TREE_REBALANCE_TEMP_BLOCK_LEN_O

const TREE_REBALANCE_TEMP_BLOCK_LEN_O = 9999

См. определение в файле importprocess.php строка 56

◆ TREE_REBALANCE_TEMP_TABLE_NAME

const TREE_REBALANCE_TEMP_TABLE_NAME = 'b_sale_location_rebalance'

См. определение в файле importprocess.php строка 57

◆ USER_FILE_DIRECTORY_SESSION_KEY

const USER_FILE_DIRECTORY_SESSION_KEY = 'location_import_user_file'

См. определение в файле importprocess.php строка 41

◆ USER_FILE_TEMP_NAME

const USER_FILE_TEMP_NAME = 'userfile.csv'

См. определение в файле importprocess.php строка 42