|
|
const | APP_NAME = 'Spout' |
| |
|
const | APP_XML_FILE_NAME = 'app.xml' |
| |
|
const | CONTENT_TYPES_XML_FILE_NAME = '[Content_Types].xml' |
| |
|
const | CORE_XML_FILE_NAME = 'core.xml' |
| |
|
const | DOC_PROPS_FOLDER_NAME = 'docProps' |
| |
|
const | RELS_FILE_NAME = '.rels' |
| |
|
const | RELS_FOLDER_NAME = '_rels' |
| |
|
const | STYLES_XML_FILE_NAME = 'styles.xml' |
| |
|
const | WORKBOOK_RELS_XML_FILE_NAME = 'workbook.xml.rels' |
| |
|
const | WORKBOOK_XML_FILE_NAME = 'workbook.xml' |
| |
|
const | WORKSHEETS_FOLDER_NAME = 'worksheets' |
| |
|
const | XL_FOLDER_NAME = 'xl' |
| |
|
|
string | $baseFolderRealPath |
| | Real path of the base folder where all the I/O can occur.
|
| |
◆ __construct()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::__construct |
( |
| $baseFolderPath, |
|
|
| $zipHelper, |
|
|
| $escaper ) |
- Parameters
-
| string | $baseFolderPath | The path of the base folder where all the I/O can occur |
| ZipHelper | $zipHelper | Helper to perform tasks with Zip archive |
| Box\Spout\Common\Helper\Escaper\XLSX | $escaper | Used to escape XML data |
◆ createBaseFilesAndFolders()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::createBaseFilesAndFolders |
( |
| ) |
|
◆ createContentTypesFile()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::createContentTypesFile |
( |
| $worksheets | ) |
|
Creates the "[Content_Types].xml" file under the root folder.
- Parameters
-
- Return values
-
◆ createFileWithContents()
| Box\Spout\Common\Helper\FileSystemHelper::createFileWithContents |
( |
| $parentFolderPath, |
|
|
| $fileName, |
|
|
| $fileContents ) |
|
inherited |
Creates a file with the given name and content in the given folder.
The parent folder must exist.
- Parameters
-
| string | $parentFolderPath | The parent folder path where the file is going to be created |
| string | $fileName | The name of the file to create |
| string | $fileContents | The contents of the file to create |
- Exceptions
-
- Return values
-
| string | Path of the created file |
Implements Box\Spout\Common\Helper\FileSystemHelperInterface.
◆ createFolder()
| Box\Spout\Common\Helper\FileSystemHelper::createFolder |
( |
| $parentFolderPath, |
|
|
| $folderName ) |
|
inherited |
Creates an empty folder with the given name under the given parent folder.
- Parameters
-
| string | $parentFolderPath | The parent folder path under which the folder is going to be created |
| string | $folderName | The name of the folder to create |
- Exceptions
-
- Return values
-
| string | Path of the created folder |
Implements Box\Spout\Common\Helper\FileSystemHelperInterface.
◆ createStylesFile()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::createStylesFile |
( |
| $styleManager | ) |
|
Creates the "styles.xml" file under the "xl" folder.
- Parameters
-
| StyleManager | $styleManager | |
- Return values
-
◆ createWorkbookFile()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::createWorkbookFile |
( |
| $worksheets | ) |
|
Creates the "workbook.xml" file under the "xl" folder.
- Parameters
-
- Return values
-
◆ createWorkbookRelsFile()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::createWorkbookRelsFile |
( |
| $worksheets | ) |
|
Creates the "workbook.xml.res" file under the "xl/_res" folder.
- Parameters
-
- Return values
-
◆ deleteFile()
| Box\Spout\Common\Helper\FileSystemHelper::deleteFile |
( |
| $filePath | ) |
|
|
inherited |
◆ deleteFolderRecursively()
| Box\Spout\Common\Helper\FileSystemHelper::deleteFolderRecursively |
( |
| $folderPath | ) |
|
|
inherited |
◆ getRootFolder()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::getRootFolder |
( |
| ) |
|
◆ getXlFolder()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::getXlFolder |
( |
| ) |
|
◆ getXlWorksheetsFolder()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::getXlWorksheetsFolder |
( |
| ) |
|
◆ throwIfOperationNotInBaseFolder()
| Box\Spout\Common\Helper\FileSystemHelper::throwIfOperationNotInBaseFolder |
( |
string | $operationFolderPath | ) |
|
|
protectedinherited |
All I/O operations must occur inside the base folder, for security reasons.
This function will throw an exception if the folder where the I/O operation should occur is not inside the base folder.
- Parameters
-
| string | $operationFolderPath | The path of the folder where the I/O operation should occur |
- Exceptions
-
- Return values
-
◆ zipRootFolderAndCopyToStream()
| Box\Spout\Writer\XLSX\Helper\FileSystemHelper::zipRootFolderAndCopyToStream |
( |
| $streamPointer | ) |
|
Zips the root folder and streams the contents of the zip into the given stream.
- Parameters
-
| resource | $streamPointer | Pointer to the stream to copy the zip |
- Return values
-
The documentation for this class was generated from the following file:
- lib/spout/src/Spout/Writer/XLSX/Helper/FileSystemHelper.php