Bitrix API

ImportProcess extends Process

FinalYes

Table of Contents

Constants

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

Methods

__construct()  : mixed
addStage()  : mixed
calcSubPercent()  : mixed
checkProcessLocked()  : mixed
checkQuota()  : mixed
checkSource()  : mixed
clearLogFile()  : mixed
convertBlock()  : mixed
createService()  : mixed
createType()  : mixed
createTypes()  : mixed
determineLayoutToImport()  : mixed
getCurrentPercentRange()  : mixed
getCurrStageIndex()  : mixed
getCurrStageStepSize()  : mixed
getData()  : mixed
getExistedServices()  : mixed
getExistedTypes()  : mixed
getIndexMap()  : array<string|int, mixed>
getLockFilePath()  : mixed
getLogFileDir()  : mixed
getLogFilePath()  : mixed
getMemoryPeak()  : mixed
getPercent()  : mixed
getPercentBetween()  : mixed
getPercentFromToCurrent()  : mixed
getRemoteExternalServices()  : mixed
getRemoteLayout()  : mixed
getRemoteTypeGroups()  : mixed
getRemoteTypes()  : mixed
getRequiredLanguages()  : mixed
getServiceMap()  : mixed
getSiteLanguages()  : mixed
getStage()  : mixed
getStageCode()  : mixed
getStagePercent()  : mixed
getStatistics()  : mixed
getStatisticsAll()  : mixed
getStep()  : mixed
getSubPercentByTotalAndDone()  : mixed
getTypeLevels()  : array<string|int, mixed>
getTypeMap()  : mixed
getTypes()  : mixed
importFile()  : mixed
isStage()  : mixed
lockProcess()  : mixed
logFinalResult()  : mixed
logMemoryUsage()  : mixed
logMessage()  : mixed
nextStage()  : mixed
nextStep()  : mixed
onAfterPerformIteration()  : mixed
onBeforePerformIteration()  : mixed
performIteration()  : mixed
performStage()  : mixed
provideEnFromRu()  : mixed
reset()  : mixed
restore()  : mixed
restoreIndexes()  : mixed
saveUserFile()  : mixed
setStage()  : mixed
setStepSize()  : mixed
setTimeLimit()  : mixed
stageGT()  : mixed
stageLT()  : mixed
turnOffCache()  : mixed
unLockProcess()  : mixed

Constants

CALLBACK_TYPE_MANUAL

public mixed CALLBACK_TYPE_MANUAL = 'manual'

CALLBACK_TYPE_QUOTA

public mixed CALLBACK_TYPE_QUOTA = 'quota'

DEBUG_FILE

public mixed DEBUG_FILE = '%SESSION_KEY%_process.txt'

DEBUG_FOLDER

public mixed DEBUG_FOLDER = '%BX_ROOT%/tmp/'

DISTRIBUTOR_HOST

public mixed DISTRIBUTOR_HOST = 'www.1c-bitrix.ru'

JUST_SHOW_STAGES

public mixed JUST_SHOW_STAGES = false

LOCAL_EXTERNAL_SERVICE_FILE

public mixed LOCAL_EXTERNAL_SERVICE_FILE = 'externalservice.csv'

LOCAL_LAYOUT_FILE

public mixed LOCAL_LAYOUT_FILE = 'layout.csv'

LOCAL_LOCATION_FILE

public mixed LOCAL_LOCATION_FILE = '%s.csv'

LOCAL_TYPE_GROUP_FILE

public mixed LOCAL_TYPE_GROUP_FILE = 'typegroup.csv'

LOCK_FILE

public mixed LOCK_FILE = '%SESSION_KEY%_lock'

MAX_CODE_FETCH_BLOCK_LEN

public mixed MAX_CODE_FETCH_BLOCK_LEN = 90

MIN_TIME_LIMIT

public mixed MIN_TIME_LIMIT = 5

REMOTE_EXTERNAL_SERVICE_FILE

public mixed REMOTE_EXTERNAL_SERVICE_FILE = 'externalservice.csv'

REMOTE_LAYOUT_FILE

public mixed REMOTE_LAYOUT_FILE = 'bundles/layout.csv'

REMOTE_PATH

public mixed REMOTE_PATH = '/download/files/locations/pro/'

REMOTE_TYPE_FILE

public mixed REMOTE_TYPE_FILE = 'type.v2.csv'

REMOTE_TYPE_GROUP_FILE

public mixed REMOTE_TYPE_GROUP_FILE = 'typegroup.csv'

TREE_REBALANCE_TEMP_BLOCK_LEN

public mixed TREE_REBALANCE_TEMP_BLOCK_LEN = 99999

TREE_REBALANCE_TEMP_BLOCK_LEN_O

public mixed TREE_REBALANCE_TEMP_BLOCK_LEN_O = 9999

TREE_REBALANCE_TEMP_TABLE_NAME

public mixed TREE_REBALANCE_TEMP_TABLE_NAME = 'b_sale_location_rebalance'

USER_FILE_DIRECTORY_SESSION_KEY

public mixed USER_FILE_DIRECTORY_SESSION_KEY = 'location_import_user_file'

USER_FILE_TEMP_NAME

public mixed USER_FILE_TEMP_NAME = 'userfile.csv'

Methods

__construct()

public __construct(mixed $options) : mixed
Parameters
$options : mixed

addStage()

public addStage(mixed $params) : mixed
Parameters
$params : mixed

calcSubPercent()

public calcSubPercent(mixed $range) : mixed
Parameters
$range : mixed

checkProcessLocked()

public checkProcessLocked() : mixed

checkQuota()

public checkQuota() : mixed

checkSource()

public checkSource(mixed $sType) : mixed
Parameters
$sType : mixed

clearLogFile()

public clearLogFile() : mixed

convertBlock()

public convertBlock(mixed $block) : mixed
Parameters
$block : mixed

createService()

public static createService(mixed $service) : mixed
Parameters
$service : mixed

createType()

public static createType(mixed $type) : mixed
Parameters
$type : mixed

createTypes()

public static createTypes(mixed $types[, mixed $existed = false ]) : mixed
Parameters
$types : mixed
$existed : mixed = false

determineLayoutToImport()

public determineLayoutToImport() : mixed

getCurrentPercentRange()

public getCurrentPercentRange() : mixed

getCurrStageIndex()

public getCurrStageIndex() : mixed

getCurrStageStepSize()

public getCurrStageStepSize() : mixed

getExistedServices()

public static getExistedServices() : mixed

getIndexMap()

public static getIndexMap() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLockFilePath()

public getLockFilePath() : mixed

getLogFileDir()

public getLogFileDir() : mixed

getLogFilePath()

public getLogFilePath() : mixed

getMemoryPeak()

public getMemoryPeak() : mixed

getPercent()

public getPercent() : mixed

getPercentBetween()

public getPercentBetween(mixed $codeFrom, mixed $codeTo) : mixed
Parameters
$codeFrom : mixed
$codeTo : mixed

getPercentFromToCurrent()

public getPercentFromToCurrent(mixed $codeFrom) : mixed
Parameters
$codeFrom : mixed

getRemoteExternalServices()

public getRemoteExternalServices() : mixed

getRemoteLayout()

public getRemoteLayout([mixed $getFlat = false ]) : mixed
Parameters
$getFlat : mixed = false

getRemoteTypeGroups()

public getRemoteTypeGroups() : mixed

getRequiredLanguages()

public getRequiredLanguages() : mixed

getServiceMap()

public static getServiceMap(mixed $file) : mixed
Parameters
$file : mixed

getSiteLanguages()

public static getSiteLanguages() : mixed

getStage()

public getStage(mixed $code) : mixed
Parameters
$code : mixed

getStageCode()

public getStageCode() : mixed

getStagePercent()

public getStagePercent([mixed $sNum = false ]) : mixed
Parameters
$sNum : mixed = false

getStatistics()

public getStatistics([mixed $type = 'TOTAL' ]) : mixed
Parameters
$type : mixed = 'TOTAL'

getSubPercentByTotalAndDone()

public getSubPercentByTotalAndDone(mixed $total[, mixed $done = 0 ]) : mixed
Parameters
$total : mixed
$done : mixed = 0

getTypeLevels()

public getTypeLevels([mixed $langId = LANGUAGE_ID ]) : array<string|int, mixed>
Parameters
$langId : mixed = LANGUAGE_ID
Return values
array<string|int, mixed>

getTypeMap()

public static getTypeMap(mixed $file) : mixed
Parameters
$file : mixed

importFile()

public static importFile(mixed &$descriptior) : mixed
Parameters
$descriptior : mixed

isStage()

public isStage(mixed $code) : mixed
Parameters
$code : mixed

lockProcess()

public lockProcess() : mixed

logFinalResult()

public logFinalResult() : mixed

logMemoryUsage()

public logMemoryUsage() : mixed

logMessage()

public logMessage([mixed $message = '' ][, mixed $addTimeStamp = true ]) : mixed
Parameters
$message : mixed = ''
$addTimeStamp : mixed = true

nextStage()

public nextStage() : mixed

nextStep()

public nextStep() : mixed

onAfterPerformIteration()

public onAfterPerformIteration() : mixed

onBeforePerformIteration()

public onBeforePerformIteration() : mixed

performIteration()

public performIteration() : mixed

performStage()

public performStage() : mixed

provideEnFromRu()

public provideEnFromRu(mixed &$data) : mixed
Parameters
$data : mixed

restoreIndexes()

public restoreIndexes([mixed $certainIndex = false ]) : mixed
Parameters
$certainIndex : mixed = false

saveUserFile()

public saveUserFile(mixed $inputName) : mixed
Parameters
$inputName : mixed

setStage()

public setStage(mixed $stage) : mixed
Parameters
$stage : mixed

setStepSize()

public setStepSize(mixed $code, mixed $stepSize) : mixed
Parameters
$code : mixed
$stepSize : mixed

setTimeLimit()

public setTimeLimit(mixed $timeLimit) : mixed
Parameters
$timeLimit : mixed

stageGT()

public stageGT(mixed $code) : mixed
Parameters
$code : mixed

stageLT()

public stageLT(mixed $code) : mixed
Parameters
$code : mixed

unLockProcess()

public unLockProcess() : mixed

        
On this page

Search results