Documentation

ConvertorRule extends Sand

Description of ConvertorRule

Tags
author

Vítězslav Dvořák info@vitexsoftware.cz

Table of Contents

$convertor  : Convertor
$rules  : array
$addExtId  : bool
$keepCode  : bool
$keepId  : bool
__construct()  : mixed
Conversion Rule
addExtId()  : mixed
assignConvertor()  : mixed
convertorClassTemplateGenerator()  : string
Convertor Rule Clas template Generator
finalizeConversion()  : bool
Actions performed after converting process
getOposites()  : mixed
getRuleForColumn()  : string
getRules()  : array
Complied Rules Getter

Properties

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()

public addExtId() : mixed
Return values
mixed

convertorClassTemplateGenerator()

Convertor Rule Clas template Generator

public static convertorClassTemplateGenerator(Convertor $convertor, string $className) : string
Parameters
$convertor : Convertor
$className : string
Tags
throws
Exception
Return values
string

Generated class filename

finalizeConversion()

Actions performed after converting process

public finalizeConversion() : bool
Return values
bool

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
Return values
array

Search results