BusinessDocumentGenerator
extends BusinessDocumentGenerator
in package
Class created by Core/Base/PluginDeploy
Tags
Table of Contents
- $extensions : array<string|int, mixed>
- Stores class extensions.
- $lastDocs : array<string|int, mixed>
- $sameDate : bool
- __call() : mixed
- Executes the first matched extension.
- addExtension() : mixed
- copyRelatedFiles() : bool
- generate() : bool
- Generates a new document from a prototype document.
- getLastDocs() : array<string|int, BusinessDocument>
- pipe() : mixed
- pipeFalse() : bool
- setSameDate() : mixed
- cloneLines() : bool
- Clone the lines from the prototype document, to new document.
Properties
$extensions
Stores class extensions.
protected
static array<string|int, mixed>
$extensions
= []
$lastDocs
protected
array<string|int, mixed>
$lastDocs
= []
$sameDate
private
static bool
$sameDate
= false
Methods
__call()
Executes the first matched extension.
public
__call(string $name[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
- $name : string
- $arguments : array<string|int, mixed> = []
Tags
Return values
mixed —addExtension()
public
static addExtension(mixed $extension) : mixed
Parameters
- $extension : mixed
Return values
mixed —copyRelatedFiles()
public
copyRelatedFiles(TransformerDocument $newDoc) : bool
Parameters
- $newDoc : TransformerDocument
Return values
bool —generate()
Generates a new document from a prototype document.
public
generate(BusinessDocument $prototype, string $newClass[, array<string|int, mixed> $lines = [] ][, array<string|int, mixed> $quantity = [] ][, array<string|int, mixed> $properties = [] ]) : bool
Parameters
- $prototype : BusinessDocument
- $newClass : string
- $lines : array<string|int, mixed> = []
- $quantity : array<string|int, mixed> = []
- $properties : array<string|int, mixed> = []
Return values
bool —getLastDocs()
public
getLastDocs() : array<string|int, BusinessDocument>
Return values
array<string|int, BusinessDocument> —pipe()
public
pipe(string $name, array<string|int, mixed> ...$arguments) : mixed
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Return values
mixed —pipeFalse()
public
pipeFalse(string $name, array<string|int, mixed> ...$arguments) : bool
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Return values
bool —setSameDate()
public
static setSameDate(bool $value) : mixed
Parameters
- $value : bool
Return values
mixed —cloneLines()
Clone the lines from the prototype document, to new document.
protected
cloneLines(BusinessDocument $prototype, BusinessDocument $newDoc, array<string|int, BusinessDocumentLine> $lines, array<string|int, mixed> $quantity) : bool
Parameters
- $prototype : BusinessDocument
- $newDoc : BusinessDocument
- $lines : array<string|int, BusinessDocumentLine>
- $quantity : array<string|int, mixed>