DocumentStitcher
        
        extends DocumentStitcher
    
    
            
            in package
            
        
    
    
            
            Uses
                            ExtensionsTrait                    
    
        
            Class created by Core/Base/PluginDeploy
Tags
Table of Contents
- MODEL_NAMESPACE = '\\FacturaScripts\\Dinamic\\Model\\'
 - $codes : array<string|int, mixed>
 - $documents : array<string|int, TransformerDocument>
 - $empresa : Empresa
 - Selected company.
 - $modelName : string
 - $moreDocuments : array<string|int, TransformerDocument>
 - $multiRequestProtection : MultiRequestProtection
 - $permissions : ControllerPermissions
 - User permissions on this controller.
 - $request : Request
 - Request on which we can get data.
 - $title : string
 - Title of the page.
 - $uri : string
 - Given uri, default is empty.
 - $user : User|false
 - User logged in.
 - $dataBase : DataBase
 - It provides direct access to the database.
 - $extensions : array<string|int, mixed>
 - Stores class extensions.
 - $response : Response
 - HTTP Response object.
 - $className : string
 - Name of the class of the controller (although its in inheritance from this class, the name of the final class we will have here)
 - $template : string|false
 - Name of the file for the template.
 - __call() : mixed
 - Executes the first matched extension.
 - __construct() : mixed
 - Initialize all objects and properties.
 - addExtension() : mixed
 - getAvailableStatus() : array<string|int, mixed>
 - getPageData() : array<string|int, mixed>
 - Return the basic data for this page.
 - getSeries() : array<string|int, mixed>
 - getTemplate() : string|false
 - Return the template to use for this controller.
 - pipe() : mixed
 - pipeFalse() : bool
 - privateCore() : mixed
 - Runs the controller's private logic.
 - publicCore() : mixed
 - Execute the public part of the controller.
 - redirect() : mixed
 - Redirect to an url or controller.
 - run() : void
 - setTemplate() : bool
 - Set the template to use for this controller.
 - toolBox() : ToolBox
 - url() : string
 - Return the URL of the actual controller.
 - addBlankLine() : void
 - addDocument() : bool
 - addInfoLine() : void
 - breakDownLines() : void
 - closeDocuments() : void
 - generateNewDocument() : void
 - Generates a new document with this data.
 - getClassName() : string
 - Return the name of the controller.
 - getCodes() : array<string|int, mixed>
 - Returns documents keys.
 - getDocInfoLineDescription() : string
 - getGenerateClass() : string|null
 - Returns the name of the new class to generate from this status.
 - getModelName() : string
 - Returns model name.
 - loadDocuments() : void
 - Loads selected documents.
 - loadMoreDocuments() : void
 - validateFormToken() : bool
 - Check request token. Returns an error if: - the token does not exist - the token is invalid - the token is duplicated
 - auth() : bool
 - checkPhpVersion() : void
 
Constants
MODEL_NAMESPACE
    public
        mixed
    MODEL_NAMESPACE
    = '\\FacturaScripts\\Dinamic\\Model\\'
        
        
    
Properties
$codes
    public
        array<string|int, mixed>
    $codes
     = []
    
    
    
$documents
    public
        array<string|int, TransformerDocument>
    $documents
     = []
    
    
    
$empresa
Selected company.
    public
        Empresa
    $empresa
    
    
    
    
$modelName
    public
        string
    $modelName
    
    
    
    
$moreDocuments
    public
        array<string|int, TransformerDocument>
    $moreDocuments
     = []
    
    
    
$multiRequestProtection
    public
        MultiRequestProtection
    $multiRequestProtection
    
    
    
    
$permissions
User permissions on this controller.
    public
        ControllerPermissions
    $permissions
    
    
    
    
$request
Request on which we can get data.
    public
        Request
    $request
    
    
    
    
$title
Title of the page.
    public
        string
    $title
    
    
        título de la página.
$uri
Given uri, default is empty.
    public
        string
    $uri
    
    
    
    
$user
User logged in.
    public
        User|false
    $user
     = false
    
    
    
$dataBase
It provides direct access to the database.
    protected
        DataBase
    $dataBase
    
    
    
    
$extensions
Stores class extensions.
    protected
    static    array<string|int, mixed>
    $extensions
     = []
    
    
    
$response
HTTP Response object.
    protected
        Response
    $response
    
    
    
    
$className
Name of the class of the controller (although its in inheritance from this class, the name of the final class we will have here)
    private
        string
    $className
    
    
        CLASS
$template
Name of the file for the template.
    private
        string|false
    $template
    
    
        nombre_archivo.html.twig
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 —__construct()
Initialize all objects and properties.
    public
                    __construct(string $className[, string $uri = '' ]) : mixed
    
        Parameters
- $className : string
 - $uri : string = ''
 
Return values
mixed —addExtension()
    public
            static        addExtension(mixed $extension) : mixed
    
        Parameters
- $extension : mixed
 
Return values
mixed —getAvailableStatus()
    public
                    getAvailableStatus() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —getPageData()
Return the basic data for this page.
    public
                    getPageData() : array<string|int, mixed>
    
    
    
        Return values
array<string|int, mixed> —getSeries()
    public
                    getSeries() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —getTemplate()
Return the template to use for this controller.
    public
                    getTemplate() : string|false
    
    
    
        Return values
string|false —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 —privateCore()
Runs the controller's private logic.
    public
                    privateCore(Response &$response, User $user, ControllerPermissions $permissions) : mixed
    
        Parameters
- $response : Response
 - $user : User
 - $permissions : ControllerPermissions
 
Return values
mixed —publicCore()
Execute the public part of the controller.
    public
                    publicCore(Response &$response) : mixed
    
        Parameters
- $response : Response
 
Return values
mixed —redirect()
Redirect to an url or controller.
    public
                    redirect(string $url, int $delay) : mixed
    
        Parameters
- $url : string
 - $delay : int
 
Return values
mixed —run()
    public
                    run() : void
        
    
    
        Return values
void —setTemplate()
Set the template to use for this controller.
    public
                    setTemplate(string|false $template) : bool
    
        Parameters
- $template : string|false
 
Return values
bool —toolBox()
    public
            static        toolBox() : ToolBox
    
    
    
    Tags
Return values
ToolBox —url()
Return the URL of the actual controller.
    public
                    url() : string
    
    
    
        Return values
string —addBlankLine()
    protected
                    addBlankLine(array<string|int, mixed> &$newLines, TransformerDocument $doc) : void
    
        Parameters
- $newLines : array<string|int, mixed>
 - $doc : TransformerDocument
 
Return values
void —addDocument()
    protected
                    addDocument(TransformerDocument $newDoc) : bool
    
        Parameters
- $newDoc : TransformerDocument
 
Return values
bool —addInfoLine()
    protected
                    addInfoLine(array<string|int, mixed> &$newLines, TransformerDocument $doc) : void
    
        Parameters
- $newLines : array<string|int, mixed>
 - $doc : TransformerDocument
 
Return values
void —breakDownLines()
    protected
                    breakDownLines(TransformerDocument &$doc, BusinessDocumentLine &$docLines, array<string|int, mixed> &$newLines, array<string|int, mixed> &$quantities, int $idestado) : void
    
        Parameters
- $doc : TransformerDocument
 - $docLines : BusinessDocumentLine
 - $newLines : array<string|int, mixed>
 - $quantities : array<string|int, mixed>
 - $idestado : int
 
Return values
void —closeDocuments()
    protected
                    closeDocuments(int $idestado) : void
        
        Parameters
- $idestado : int
 
Return values
void —generateNewDocument()
Generates a new document with this data.
    protected
                    generateNewDocument(int $idestado) : void
    
        Parameters
- $idestado : int
 
Return values
void —getClassName()
Return the name of the controller.
    protected
                    getClassName() : string
    
    
    
        Return values
string —getCodes()
Returns documents keys.
    protected
                    getCodes() : array<string|int, mixed>
    
    
    
        Return values
array<string|int, mixed> —getDocInfoLineDescription()
    protected
                    getDocInfoLineDescription(TransformerDocument $doc) : string
    
        Parameters
- $doc : TransformerDocument
 
Return values
string —getGenerateClass()
Returns the name of the new class to generate from this status.
    protected
                    getGenerateClass(int $idestado) : string|null
    
        Parameters
- $idestado : int
 
Return values
string|null —getModelName()
Returns model name.
    protected
                    getModelName() : string
    
    
    
        Return values
string —loadDocuments()
Loads selected documents.
    protected
                    loadDocuments() : void
    
    
    
        Return values
void —loadMoreDocuments()
    protected
                    loadMoreDocuments() : void
        
    
    
        Return values
void —validateFormToken()
Check request token. Returns an error if: - the token does not exist - the token is invalid - the token is duplicated
    protected
                    validateFormToken() : bool
    
    
    
        Return values
bool —auth()
    private
                    auth() : bool
        
    
    
        Return values
bool —checkPhpVersion()
    private
                    checkPhpVersion(float $min) : void
        
        Parameters
- $min : float