FacturaScripts

BusinessDocumentGenerator extends BusinessDocumentGenerator
in package

Class created by Core/Base/PluginDeploy

Tags
author

FacturaScripts [email protected]

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 = []

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
throws
BadMethodCallException
Return values
mixed

addExtension()

public static addExtension(mixed $extension) : mixed
Parameters
$extension : mixed
Return values
mixed

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

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

Search results