AbstractExport
- Full name: \Zemit\Mvc\Controller\Traits\Abstracts\AbstractExport
Methods
getContentType
public getContentType(?array $params = null): string
- This method is abstract.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $params | ?array | 
getFilename
public getFilename(): string
- This method is abstract.
getExportColumns
public getExportColumns(array $list): array
- This method is abstract.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $list | array | 
export
public export(array $list, ?string $filename = null, string $contentType = null, array $params = null): \Phalcon\Http\ResponseInterface
- This method is abstract.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $list | array | |
| $filename | ?string | |
| $contentType | string | |
| $params | array | 
exportXml
public exportXml(array $list, ?string $filename = null, ?array $params = null): \Phalcon\Http\ResponseInterface
- This method is abstract.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $list | array | |
| $filename | ?string | |
| $params | ?array | 
exportJson
public exportJson(mixed $list, ?string $filename = null, int $flags = JSON_PRETTY_PRINT, int $depth = 2048): \Phalcon\Http\ResponseInterface
- This method is abstract.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $list | mixed | |
| $filename | ?string | |
| $flags | int | |
| $depth | int | 
exportExcel
public exportExcel(array $list, ?string $filename = null): \Phalcon\Http\ResponseInterface
- This method is abstract.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $list | array | |
| $filename | ?string | 
exportCsv
public exportCsv(array $list, ?string $filename = null, ?array $params = null): \Phalcon\Http\ResponseInterface
- This method is abstract.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $list | array | |
| $filename | ?string | |
| $params | ?array |