ImportValue
in package
FinalYes
One scalar value from the source file, carrying the **line number** of its tag (the line log needs it).
Tri-state encoding:
- tag missing: the key is absent from the field map (
ImportVariantDto::$fields['weight'] === null), - tag with a value:
ImportValuewith a non-empty$raw, - empty tag (
<publishTime/>):ImportValuewith an empty$raw, isNullOut() is true.
$raw is the text 1:1 from the file (cdata descriptions are not sanitized here; that is the
executor's job). getTrimmed() is for scalar fields where surrounding whitespace is meaningless.
Table of Contents
Properties
Methods
- __construct() : mixed
- getTrimmed() : string
- isNullOut() : bool
- Explicit nulling of the field: the tag is present but empty.
Properties
$lang read-only
public
string|null
$lang
= null
$line read-only
public
int
$line
$raw read-only
public
string
$raw
Methods
__construct()
public
__construct(string $raw, int $line[, string|null $lang = null ]) : mixed
Parameters
- $raw : string
- $line : int
- $lang : string|null = null
getTrimmed()
public
getTrimmed() : string
Return values
stringisNullOut()
Explicit nulling of the field: the tag is present but empty.
public
isNullOut() : bool