PHP static method
Importer::import
Description
Each passed import subject is first looked up in the database. Either the subject identifier is known or a matcher finds the subject based on properties. An unkown subject is created. A subject for which a topic already exists is by default ignored, but through options it can be updated.
Comments
Perform a dry run for an import by using [1547, %Tobject::auto_commit_off%]. This way changes will not be persisted, but all the validation checks will be performed and results and errors will be reported in the passed arrays.
|
Parameters4
Coding name |
import_subjects
|
Description |
The extraction result.
|
Position |
1
|
Type |
Array(Primitive type)
|
Coding name |
results
|
Description |
An array to put result in natural langue.
|
Position |
2
|
Type |
Array(Primitive type)
|
Coding name |
errors
|
Description |
An array to store error messages.
|
Position |
3
|
Type |
Array(Primitive type)
|
Coding name |
options
|
Description |
An array of options.
|
Position |
4
|
Type |
Array(Primitive type)
|
Default value |
["duplicates" => "ignore", "machters" => []]
|
Comments |
The option %duplicates% determines how duplicates are treated:
* %ignore% means none of the attached statements will be imported.
* %error% means an error message is added to the errors array.
* %update% means the information in the store will be updated.
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.