Bitrix API

Import extends Base

Class Import

Table of Contents

Constants

ACTION  = 'import'
CONTEXT_PREFIX  = 'configuration_action'
ERROR_MANIFEST_IS_NOT_AVAILABLE  = 'ERROR_MANIFEST_IS_NOT_AVAILABLE'
ERROR_PROCESS_DID_NOT_CREATE  = 'PROCESS_DID_NOT_CREATE'
ERROR_PROCESS_NOT_FOUND  = 'PROCESS_NOT_FOUND'
PROPERTY_FILES  = 'FILES'
PROPERTY_MANIFEST  = 'MANIFEST'
PROPERTY_STRUCTURE  = 'STRUCTURE'
STATUS_ERROR  = 'E'
STATUS_FINISH  = 'F'
STATUS_PROCESS  = 'P'
STATUS_START  = 'S'
STATUS_UNKNOWN  = 'U'
STATUSES  = [self::STATUS_START, self::STATUS_PROCESS, self::STATUS_FINISH, self::STATUS_ERROR, self::STATUS_UNKNOWN]

Methods

__construct()  : mixed
Base constructor.
doClean()  : array<string|int, mixed>
doFinish()  : array<string|int, mixed>
doInitManifest()  : array<string|int, mixed>
doLoad()  : array<string|int, mixed>
doStart()  : array<string|int, string>
get()  : array<string|int, mixed>
Returns information about current action
getContext()  : string
Returns current working user context
getContextEntity()  : string
Returns working context
getManifestCode()  : string
Return uses manifest
getNotificationInstance()  : Notification
Returns instance to work with notification
getSetting()  : Setting
Returns instance of Setting with current context
getStatus()  : array<string|int, mixed>|mixed|string
Returns actions status
register()  : array<string|int, mixed>
Registers process
run()  : bool
Runs action step.
runAgent()  : string
setContext()  : bool
Set custom working user context
setContextEntity()  : bool
Sets working context
setManifestCode()  : bool
Sets uses manifest
setProcessId()  : bool
Sets process id
unregister()  : array<string|int, string>
Unregister process

Constants

ACTION

public mixed ACTION = 'import'

CONTEXT_PREFIX

public mixed CONTEXT_PREFIX = 'configuration_action'

ERROR_MANIFEST_IS_NOT_AVAILABLE

public mixed ERROR_MANIFEST_IS_NOT_AVAILABLE = 'ERROR_MANIFEST_IS_NOT_AVAILABLE'

ERROR_PROCESS_DID_NOT_CREATE

public mixed ERROR_PROCESS_DID_NOT_CREATE = 'PROCESS_DID_NOT_CREATE'

ERROR_PROCESS_NOT_FOUND

public mixed ERROR_PROCESS_NOT_FOUND = 'PROCESS_NOT_FOUND'

PROPERTY_FILES

public mixed PROPERTY_FILES = 'FILES'

PROPERTY_MANIFEST

public mixed PROPERTY_MANIFEST = 'MANIFEST'

PROPERTY_STRUCTURE

public mixed PROPERTY_STRUCTURE = 'STRUCTURE'

STATUS_ERROR

public mixed STATUS_ERROR = 'E'

STATUS_FINISH

public mixed STATUS_FINISH = 'F'

STATUS_PROCESS

public mixed STATUS_PROCESS = 'P'

STATUS_START

public mixed STATUS_START = 'S'

STATUS_UNKNOWN

public mixed STATUS_UNKNOWN = 'U'

STATUSES

public mixed STATUSES = [self::STATUS_START, self::STATUS_PROCESS, self::STATUS_FINISH, self::STATUS_ERROR, self::STATUS_UNKNOWN]

Methods

__construct()

Base constructor.

public __construct([int $processId = 0 ]) : mixed
Parameters
$processId : int = 0

doClean()

public doClean(mixed $code, mixed $step, mixed $next[, bool $clearFull = false ]) : array<string|int, mixed>
Parameters
$code : mixed
$step : mixed
$next : mixed
$clearFull : bool = false
Return values
array<string|int, mixed>

doFinish()

public doFinish([string $mode = Helper::MODE_IMPORT ]) : array<string|int, mixed>
Parameters
$mode : string = Helper::MODE_IMPORT
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

doInitManifest()

public doInitManifest(string|null $next, int $step, string $type) : array<string|int, mixed>
Parameters
$next : string|null
$step : int
$type : string
Return values
array<string|int, mixed>

doLoad()

public doLoad(mixed $step, mixed $code, mixed $content) : array<string|int, mixed>
Parameters
$step : mixed
$code : mixed
$content : mixed
Return values
array<string|int, mixed>

doStart()

public doStart([mixed|null $app = null ][, string $mode = Helper::MODE_IMPORT ][, array<string|int, mixed> $option = [] ]) : array<string|int, string>
Parameters
$app : mixed|null = null
$mode : string = Helper::MODE_IMPORT
$option : array<string|int, mixed> = []
Return values
array<string|int, string>

get()

Returns information about current action

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

getContext()

Returns current working user context

public getContext() : string
Return values
string

getContextEntity()

Returns working context

public getContextEntity() : string
Return values
string

getManifestCode()

Return uses manifest

public getManifestCode() : string
Return values
string

getNotificationInstance()

Returns instance to work with notification

public getNotificationInstance() : Notification
Return values
Notification

getSetting()

Returns instance of Setting with current context

public getSetting() : Setting
Return values
Setting

getStatus()

Returns actions status

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

register()

Registers process

public register(array<string|int, mixed> $data[, array<string|int, mixed> $additionalOptions = [] ][, int $userId = 0 ][, string $appCode = '' ][, bool $byAgent = true ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
$additionalOptions : array<string|int, mixed> = []
$userId : int = 0
$appCode : string = ''
$byAgent : bool = true
Tags
throws
ArgumentException
Return values
array<string|int, mixed>

run()

Runs action step.

public run() : bool
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
bool

runAgent()

public static runAgent(int $processId) : string
Parameters
$processId : int
Return values
string

setContext()

Set custom working user context

public setContext([string $context = '' ]) : bool
Parameters
$context : string = ''
Return values
bool

setContextEntity()

Sets working context

public setContextEntity([int $appId = 0 ]) : bool
Parameters
$appId : int = 0
Return values
bool

setManifestCode()

Sets uses manifest

public setManifestCode(mixed $code) : bool
Parameters
$code : mixed
Return values
bool

setProcessId()

Sets process id

public setProcessId(int $processId) : bool
Parameters
$processId : int
Return values
bool

unregister()

Unregister process

public unregister() : array<string|int, string>
Return values
array<string|int, string>

        
On this page

Search results