ConvertorRule
extends Sand
in package
Description of ConvertorRule
Tags
Table of Contents
- $convertor : Convertor
- $rules : array<string|int, mixed>
- $addExtId : bool
- $keepCode : bool
- $keepId : bool
- __construct() : mixed
- Conversion Rule
- addExtId() : mixed
- Add ExtID by Original ID Into converted
- assignConvertor() : mixed
- convertorClassTemplateGenerator() : string
- Convertor Rule Clas template Generator
- finalizeConversion() : bool
- Actions performed after converting process
- getConvertor() : Convertor
- Get Convertor used
- getOposites() : mixed
- getRuleForColumn() : string
- getRules() : array<string|int, mixed>
- Complied Rules Getter
Properties
$convertor
public
Convertor
$convertor
= null
$rules
public
array<string|int, mixed>
$rules
= []
$addExtId
private
bool
$addExtId
= null
$keepCode
private
bool
$keepCode
= null
$keepId
private
bool
$keepId
= null
Methods
__construct()
Conversion Rule
public
__construct([Convertor &$convertor = null ][, bool $keepId = false ][, bool $addExtId = false ][, bool $keepCode = false ][, bool $handleAccounting = true ]) : mixed
Parameters
- $convertor : Convertor = null
-
Convertor Engine
- $keepId : bool = false
-
Keep original ID in cloned document
- $addExtId : bool = false
-
Add automatically generated ext:id based on source
- $keepCode : bool = false
-
Keep original code: in cloned document
- $handleAccounting : bool = true
-
set columns "ucetni" like target or ignore it
Return values
mixed —addExtId()
Add ExtID by Original ID Into converted
public
addExtId() : mixed
Return values
mixed —assignConvertor()
public
assignConvertor(Convertor &$convertor) : mixed
Parameters
- $convertor : Convertor
Return values
mixed —convertorClassTemplateGenerator()
Convertor Rule Clas template Generator
public
static convertorClassTemplateGenerator(Convertor $convertor, string $className) : string
Parameters
- $convertor : Convertor
- $className : string
Tags
Return values
string —Generated class filename
finalizeConversion()
Actions performed after converting process
public
finalizeConversion() : bool
Return values
bool —getConvertor()
Get Convertor used
public
getConvertor() : Convertor
Return values
Convertor —getOposites()
public
static getOposites(mixed $inProps, mixed $outProps) : mixed
Parameters
- $inProps : mixed
- $outProps : mixed
Return values
mixed —getRuleForColumn()
public
getRuleForColumn(string $columnName) : string
Parameters
- $columnName : string
Return values
string —getRules()
Complied Rules Getter
public
getRules() : array<string|int, mixed>