ExportBase
extends ExportBase
in package
AbstractYes
Class created by Core/Internal/PluginsDeploy
Table of Contents
Methods
- addBusinessDocPage() : bool
- Adds a new page with the document data.
- addListModelPage() : bool
- Adds a new page with a table listing the model's data.
- addModelPage() : bool
- Adds a new page with the model data.
- addTablePage() : bool
- Adds a new page with the table.
- getDoc() : mixed
- Return the full document.
- newDoc() : mixed
- Blank document.
- setOrientation() : mixed
- Sets default orientation.
- show() : mixed
- Set headers and output document content to response.
- getColumnAlignments() : array<string|int, mixed>
- getColumnTitles() : array<string|int, mixed>
- getColumnWidgets() : array<string|int, mixed>
- getCursorData() : array<string|int, mixed>
- getCursorRawData() : array<string|int, mixed>
- getDocumentFormat() : FormatoDocumento
- getFileName() : string
- getModelColumnsData() : array<string|int, mixed>
- getModelFields() : array<string|int, mixed>
- setFileName() : mixed
Methods
addBusinessDocPage()
Adds a new page with the document data.
public
abstract addBusinessDocPage(mixed $model) : bool
Parameters
- $model : mixed
Return values
booladdListModelPage()
Adds a new page with a table listing the model's data.
public
abstract addListModelPage(mixed $model, mixed $where, mixed $order, mixed $offset, mixed $columns[, mixed $title = '' ]) : bool
Parameters
- $model : mixed
- $where : mixed
- $order : mixed
- $offset : mixed
- $columns : mixed
- $title : mixed = ''
Return values
booladdModelPage()
Adds a new page with the model data.
public
abstract addModelPage(mixed $model, mixed $columns[, mixed $title = '' ]) : bool
Parameters
- $model : mixed
- $columns : mixed
- $title : mixed = ''
Return values
booladdTablePage()
Adds a new page with the table.
public
abstract addTablePage(mixed $headers, mixed $rows[, mixed $options = [] ][, mixed $title = '' ]) : bool
Parameters
- $headers : mixed
- $rows : mixed
- $options : mixed = []
- $title : mixed = ''
Return values
boolgetDoc()
Return the full document.
public
abstract getDoc() : mixed
newDoc()
Blank document.
public
abstract newDoc(string $title, int $idformat, string $langcode) : mixed
Parameters
- $title : string
- $idformat : int
- $langcode : string
setOrientation()
Sets default orientation.
public
abstract setOrientation(string $orientation) : mixed
Parameters
- $orientation : string
show()
Set headers and output document content to response.
public
abstract show(Response &$response) : mixed
Parameters
- $response : Response
getColumnAlignments()
protected
getColumnAlignments(array<string|int, mixed> $columns) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
Return values
array<string|int, mixed>getColumnTitles()
protected
getColumnTitles(array<string|int, mixed> $columns) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
Return values
array<string|int, mixed>getColumnWidgets()
protected
getColumnWidgets(array<string|int, mixed> $columns) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
Return values
array<string|int, mixed>getCursorData()
protected
getCursorData(array<string|int, ModelClass> $cursor, array<string|int, mixed> $columns) : array<string|int, mixed>
Parameters
- $cursor : array<string|int, ModelClass>
- $columns : array<string|int, mixed>
Return values
array<string|int, mixed>getCursorRawData()
protected
getCursorRawData(array<string|int, ModelClass> $cursor[, array<string|int, mixed> $fields = [] ]) : array<string|int, mixed>
Parameters
- $cursor : array<string|int, ModelClass>
- $fields : array<string|int, mixed> = []
Return values
array<string|int, mixed>getDocumentFormat()
protected
getDocumentFormat(BusinessDocument $model) : FormatoDocumento
Parameters
- $model : BusinessDocument
Return values
FormatoDocumentogetFileName()
protected
getFileName() : string
Return values
stringgetModelColumnsData()
protected
getModelColumnsData(mixed $model, array<string|int, mixed> $columns) : array<string|int, mixed>
Parameters
- $model : mixed
- $columns : array<string|int, mixed>
Return values
array<string|int, mixed>getModelFields()
protected
getModelFields(ModelClass $model) : array<string|int, mixed>
Parameters
- $model : ModelClass
Return values
array<string|int, mixed>setFileName()
protected
setFileName(string $name) : mixed
Parameters
- $name : string