CoolCMS API

ImportExecutionContext
in package

FinalYes

State of one live run: wraps the validation context (job settings, code lists as id maps, log of the `execute` phase, matching registries) and adds the write summary.

It exists so that ImportExecutor and ImportProductWriter do not pass six parameters around; it is working state of the run, not a file DTO (same pattern as ImportValidationContext).

Table of Contents

Properties

$jobId  : int|null
Job id for the note of the stock document ("Product import #12"), so the movement can be traced.
$summary  : ImportExecutionSummary
$userId  : int|null
User who started the import; goes to the stock document as `userId` (as in the admin receipt).
$validation  : ImportValidationContext

Methods

__construct()  : mixed
getCodebooks()  : ImportCodebooks
getLog()  : ImportLogWriter
getSettings()  : ImportSettingsDto

Properties

$jobId read-only

Job id for the note of the stock document ("Product import #12"), so the movement can be traced.

public int|null $jobId = null

$userId read-only

User who started the import; goes to the stock document as `userId` (as in the admin receipt).

public int|null $userId = null

Methods

On this page

Search results