Export
class Export
Properties
protectedarray | $ids | IDs of the models of this export. |
Methods
Create a new instance.
Generate the export archive file and return the temporary file path.
Get the content of the export file. If a string, it is the path to the temporary file containing the content (like a CSV).
Get the name of the export file.
Get additional exports that should be included in the export archive.
Add more model IDs to this export.
Add the file of this report to a zip.
Clean up any temporary files.
Details
at line21
__construct(array$ids)
Create a new instance.
at line31
string
getArchive()
Generate the export archive file and return the temporary file path.
at line60
array|string
getContent()
Get the content of the export file. If a string, it is the path to the temporary file containing the content (like a CSV).
at line70
string
getFileName()
Get the name of the export file.
at line80
array
getAdditionalExports()
Get additional exports that should be included in the export archive.
at line90
addIds(array$ids)
Add more model IDs to this export.
at line100
protected
addToZip(ZipArchive$zip)
Add the file of this report to a zip.
at line113
protected
cleanUp()
Clean up any temporary files.