FacturaScripts

DocFilesTrait

Description of DocFilesTrait

Table of Contents

Methods

addHtmlView()  : mixed
createViewDocFiles()  : void
updateNumDocs()  : void
Actualiza el número de adjuntos del documento.
addFileAction()  : bool
deleteFileAction()  : bool
editFileAction()  : bool
loadDataDocFiles()  : void
sortFilesAction()  : bool
unlinkFileAction()  : bool
validateFileActionToken()  : bool

Methods

addHtmlView()

protected abstract addHtmlView(string $viewName, string $fileName, string $modelName, string $viewTitle[, string $viewIcon = 'fa-brands fa-html5' ]) : mixed
Parameters
$viewName : string
$fileName : string
$modelName : string
$viewTitle : string
$viewIcon : string = 'fa-brands fa-html5'

createViewDocFiles()

protected createViewDocFiles([string $viewName = 'docfiles' ][, string $template = 'Tab/DocFiles' ]) : void
Parameters
$viewName : string = 'docfiles'
$template : string = 'Tab/DocFiles'

updateNumDocs()

Actualiza el número de adjuntos del documento.

protected updateNumDocs() : void

addFileAction()

private addFileAction() : bool
Return values
bool

deleteFileAction()

private deleteFileAction() : bool
Return values
bool

editFileAction()

private editFileAction() : bool
Return values
bool

loadDataDocFiles()

private loadDataDocFiles(BaseView $view, string $model, string $modelid) : void
Parameters
$view : BaseView
$model : string
$modelid : string

sortFilesAction()

private sortFilesAction() : bool
Return values
bool

unlinkFileAction()

private unlinkFileAction() : bool
Return values
bool

validateFileActionToken()

private validateFileActionToken() : bool
Return values
bool

        
On this page

Search results