FakturaPrijataPolozka_to_Cenik
extends ConvertorRule
in package
Description of FakturaPrijataPolozka_to_Cenik.
Tags
Table of Contents
- $convertor : Convertor
-
$rules
: array<string, array
|string> - Summary of rules
- $addExtId : bool
- $keepCode : bool
- $keepId : bool
- __construct() : mixed
- Conversion Rule.
- addExtId() : void
- Add ExtID by Original ID Into converted.
- assignConvertor() : void
- convertorClassTemplateGenerator() : string
- Convertor Rule Class 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
$rules
Summary of rules
public
array<string, array|string>
$rules
= [
'kod' => 'kod',
'nazev' => 'nazev',
'nazevA' => 'nazevA',
'nazevB' => 'nazevB',
'nazevC' => 'nazevC',
'poznam' => 'poznam',
// 'popis' => NULL,
// 'platiOd' => NULL,
// 'platiDo' => NULL,
'eanKod' => 'eanKod',
// 'kodPlu' => NULL,
'typCenyDphK' => 'typCenyDphK',
// 'procZakl' => 'procZakl',
// 'individCena' => NULL,
// 'limMnoz2' => NULL,
// 'limMnoz3' => NULL,
// 'limMnoz4' => NULL,
// 'limMnoz5' => NULL,
// 'procento2' => NULL,
// 'procento3' => NULL,
// 'procento4' => NULL,
// 'procento5' => NULL,
// 'cena2' => NULL,
// 'cena3' => NULL,
// 'cena4' => NULL,
// 'cena5' => NULL,
// 'zaokrJakK' => 'zaokrJakK',
// 'zaokrNaK' => 'zaokrNaK',
// 'typSzbDphK' => 'typSzbDphK',
// 'desetinMj' => NULL,
'nakupCena' => 'cenaMj',
// 'cenJednotka' => 'cenJednotka',
// 'typCenyVychoziK' => NULL,
// 'typVypCenyK' => 'typVypCenyK',
// 'typCenyVychozi25K' => NULL,
// 'typVypCeny25K' => NULL,
// 'evidVyrCis' => NULL,
// 'unikVyrCis' => NULL,
// 'zaruka' => NULL,
// 'mjZarukyK' => NULL,
// 'mjKoef2' => NULL,
// 'mjKoef3' => NULL,
// 'prodejMj' => NULL,
// 'hmotMj' => NULL,
// 'hmotObal' => NULL,
// 'objem' => 'objem',
// 'zatrid' => NULL,
// 'skladove' => NULL,
// 'typZasobyK' => NULL,
// 'baleniNazev1' => NULL,
// 'baleniNazev2' => NULL,
// 'baleniNazev3' => NULL,
// 'baleniNazev4' => NULL,
// 'baleniNazev5' => NULL,
// 'baleniMj1' => NULL,
// 'baleniMj2' => NULL,
// 'baleniMj3' => NULL,
// 'baleniMj4' => NULL,
// 'baleniMj5' => NULL,
// 'baleniEan1' => NULL,
// 'baleniEan2' => NULL,
// 'baleniEan3' => NULL,
// 'baleniEan4' => NULL,
// 'baleniEan5' => NULL,
// 'inEvid' => NULL,
// 'inKoefMj' => NULL,
// 'inKoefStat' => NULL,
// 'inKodSled' => NULL,
// 'popisA' => NULL,
// 'popisB' => NULL,
// 'popisC' => NULL,
// 'cenaBezna' => NULL,
// 'stitky' => 'stitky',
// 'exportNaEshop' => NULL,
// 'minMarzeCenik' => NULL,
// 'minMarze' => 'minMarze',
// 'evidSarze' => NULL,
// 'evidExpir' => NULL,
// 'dnyTrvanPoExpir' => NULL,
// 'neseskupovatObj' => NULL,
'kratkyPopis' => 'kod',
'klicSlova' => 'kod',
// 'techParam' => NULL,
// 'dodaciLhuta' => NULL,
// 'prodejKasa' => NULL,
// 'skupZboz' => NULL,
// 'mj1' => NULL,
// 'mj2' => NULL,
// 'mj3' => NULL,
// 'mjHmot' => NULL,
// 'mjObj' => NULL,
// 'stat' => NULL,
// 'nomen' => NULL,
'dodavatel' => 'dodavatel',
]
$addExtId
private
bool
$addExtId
= false
$keepCode
private
bool
$keepCode
= false
$keepId
private
bool
$keepId
= false
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() : void
Return values
void —assignConvertor()
public
assignConvertor(Convertor &$convertor) : void
Parameters
- $convertor : Convertor
Return values
void —convertorClassTemplateGenerator()
Convertor Rule Class 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>