ImportJob
MMO\core\jobs · 1 symbole · générée le 27 Oct 2026
ImportJob
ImportJob.php:36An import as a long job (aJob): the importers of a configuration (Importer::FromMultipleConfigs), each reading its rows, one after the other, with each row's entities given to row before they are committed.
- Espace de noms
MMO\core\jobs- Étend
- aJob
Index
| counts | ||
| importer | ||
| key | ||
| config($params) abstract | ||
| count($row, $invalid) | Count a row's entities by variable: created, updated, unchanged (ignored), invalid. | |
| countReport() | ||
| data($key, $importer, $params) abstract | The rows an importer reads. | |
| ignore($row, $name) | Drop an entity of the row: it is not committed, and counted ignored. | |
| importers($params) | ||
| invalidReport($invalid) | ||
| row($index, $row, $key, $importer) | A row's entities, before they are committed: check them, change them, ignore some. | |
| run($params) | ||
| Title() static | ||
| total($key, $rows, $params) | How many rows an importer reads, for its progress. |
Propriétés3
counts
- Type
- array
importer
key
Méthodes11
config($params)
abstractImportJob.php:50| $params | array | |
| retourne | array | string | the importers' configuration: a json file, a folder of them, or the configuration itself (Importer::FromMultipleConfigs) |
count($row, $invalid)
ImportJob.php:170Count a row's entities by variable: created, updated, unchanged (ignored), invalid.
countReport()
ImportJob.php:185| retourne | string | the counts, as an html table |
data($key, $importer, $params)
abstractImportJob.php:59The rows an importer reads.
ignore($row, $name)
ImportJob.php:159Drop an entity of the row: it is not committed, and counted ignored.
importers($params)
ImportJob.php:90invalidReport($invalid)
ImportJob.php:203row($index, $row, $key, $importer)
ImportJob.php:79A row's entities, before they are committed: check them, change them, ignore some.
run($params)
ImportJob.php:94Title()
staticImportJob.php:82| retourne | string | what the import is: its importers run one after the other |
total($key, $rows, $params)
ImportJob.php:68How many rows an importer reads, for its progress.
Membres hérités (56)
| Constantes | Déclaré par | Description | |
|---|---|---|---|
ALERT | iLogLevel | Alert: Action must be taken immediately. | |
ALL | iLogLevel | Mask for all | |
ALL_PLUS | iLogLevel | debug everything | |
BACKTRACE | iLogLevel | ||
CRITICAL | iLogLevel | Critical: Critical conditions. | |
DEBUG | iLogLevel | Debug: Detailed debug information. | |
DEEP | iLogLevel | debug everything with arguments | |
EMERGENCY | iLogLevel | Emergency: System is unusable. | |
ERROR | iLogLevel | Error: Runtime errors that do not require immediate action but should typically be logged and monitored. | |
ERROR_PLUS | iLogLevel | Mask for all error | |
FATAL | iLogLevel | Mask for all fatal error | |
INFO | iLogLevel | Info: Interesting events. | |
INFO_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
MEMORY | iLogLevel | include backtrace object | |
NOTICE | iLogLevel | Notice: Normal but significant events. | |
NOTICE_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
TRACE | iLogLevel | include backtrace as origins | |
WARNING | iLogLevel | Warning: Exceptional occurrences that are not errors. | |
WARNING_PLUS | iLogLevel | Mask for all errors and warnings |
| Propriétés | Déclaré par | Description | |
|---|---|---|---|
heartbeatInterval | aJob | ||
id | aJob | ||
lastHeartbeat | aJob | ||
lastProgress | aJob | ||
otherVerbosity | aJob | ||
progress | aJob | ||
progressInterval | aJob | ||
progressSent | aJob | ||
stopped | aJob | ||
store | aJob | ||
verbosity | aJob |
| Méthodes | Déclaré par | Description | |
|---|---|---|---|
alert($message, $context) | aJob | Action must be taken immediately. | |
backtraces($message, $context) | aJob | Force-log a message at INFO level together with a full stack trace/memory snapshot (iLogLevel::BACKTRACE), bypassing the verbosity mask entirely (any non-zero verbosity is enough to trigger it). | |
critical($message, $context) | aJob | Critical conditions. No-op if CRITICAL is currently filtered out by the verbosity mask. | |
debug($message, $context) | aJob | Detailed debug information. | |
debugName() | aJob | ||
emergency($message, $context) | aJob | System is unusable. No-op if EMERGENCY is currently filtered out by the verbosity mask. | |
emit($type, $data) | aJob | Add an event of any type to the job's events (JobStore::emit). | |
error($message, $context) | aJob | Runtime errors that do not require immediate action but should typically be logged and monitored. | |
Exclusive() | aJob | ||
flushProgress($record) | aJob | Send the last progress if progress skipped it (what the job ends with). | |
getId() | aJob | ||
getStore() | aJob | ||
getVerbosity() | aJob | ||
heartbeat($changes, $force) | aJob | Refresh the record's heartbeat (with $changes), at most every $heartbeatInterval seconds. | |
html($html) | aJob | Show an html fragment as is (a report, a table): the people following the job see it in its log. | |
info($message, $context) | aJob | Interesting events. No-op if INFO is currently filtered out by the verbosity mask. | |
isStopped() | aJob | ||
log($level, $message, $context) | aJob | Logs with an arbitrary level. | |
notice($message, $context) | aJob | Normal but significant events. | |
progress($done, $total, $label) | aJob | Say how far the job is. | |
requestStop() | aJob | Ask the job to stop from inside its own process (what JobRunner does on SIGTERM). | |
setVerbosity($verb) | aJob | Set the current verbosity mask, replacing whatever it was before. | |
shouldStop() | aJob | Whether the job was asked to stop (JobStore::stop, or SIGTERM): call it in loops, and return when true. | |
testVerbosity($level) | aJob | Test whether a given level (or set of levels) is currently enabled by this instance's verbosity mask. | |
warning($message, $context) | aJob | Exceptional occurrences that are not errors. | |
__construct($store, $id) | aJob |