Property | Type | Description | |
---|---|---|---|
$docPropsFolder | Path to the "docProps" folder inside the root folder | ||
$relsFolder | Path to the "_rels" folder inside the root folder | ||
$rootFolder | Path to the root folder inside the temp folder where the files to create the XLSX will be stored | ||
$xlFolder | Path to the "xl" folder inside the root folder | ||
$xlRelsFolder | Path to the "_rels" folder inside the "xl" folder | ||
$xlWorksheetsFolder | Path to the "worksheets" folder inside the "xl" folder |
Method | Description | |
---|---|---|
createBaseFilesAndFolders ( ) : void | Creates all the folders needed to create a XLSX file, as well as the files that won't change. | |
createContentTypesFile ( |
Creates the "[Content_Types].xml" file under the root folder | |
createStylesFile ( Box\Spout\Writer\XLSX\Helper\StyleHelper $styleHelper ) : |
Creates the "styles.xml" file under the "xl" folder | |
createWorkbookFile ( |
Creates the "workbook.xml" file under the "xl" folder | |
createWorkbookRelsFile ( |
Creates the "workbook.xml.res" file under the "xl/_res" folder | |
getRootFolder ( ) : string | ||
getXlFolder ( ) : string | ||
getXlWorksheetsFolder ( ) : string | ||
zipRootFolderAndCopyToStream ( resource $streamPointer ) : void | Zips the root folder and streams the contents of the zip into the given stream |
Method | Description | |
---|---|---|
createAppXmlFile ( ) : |
Creates the "app.xml" file under the "docProps" folder | |
createCoreXmlFile ( ) : |
Creates the "core.xml" file under the "docProps" folder | |
createDocPropsFolderAndFiles ( ) : |
Creates the "docProps" folder under the root folder as well as the "app.xml" and "core.xml" files in it | |
createRelsFile ( ) : |
Creates the ".rels" file under the "_rels" folder (under root) | |
createRelsFolderAndFile ( ) : |
Creates the "_rels" folder under the root folder as well as the ".rels" file in it | |
createRootFolder ( ) : |
Creates the folder that will be used as root | |
createXlFolderAndSubFolders ( ) : |
Creates the "xl" folder under the root folder as well as its subfolders | |
createXlRelsFolder ( ) : |
Creates the "_rels" folder under the "xl" folder | |
createXlWorksheetsFolder ( ) : |
Creates the "worksheets" folder under the "xl" folder |
protected createAppXmlFile ( ) : |
||
return |
public createBaseFilesAndFolders ( ) : void | ||
return | void |
public createContentTypesFile ( |
||
$worksheets | ||
return |
protected createCoreXmlFile ( ) : |
||
return |
protected createDocPropsFolderAndFiles ( ) : |
||
return |
protected createRelsFile ( ) : |
||
return |
protected createRelsFolderAndFile ( ) : |
||
return |
protected createRootFolder ( ) : |
||
return |
public createStylesFile ( Box\Spout\Writer\XLSX\Helper\StyleHelper $styleHelper ) : |
||
$styleHelper | Box\Spout\Writer\XLSX\Helper\StyleHelper | |
return |
public createWorkbookFile ( |
||
$worksheets | ||
return |
public createWorkbookRelsFile ( |
||
$worksheets | ||
return |
protected createXlFolderAndSubFolders ( ) : |
||
return |
protected createXlRelsFolder ( ) : |
||
return |
protected createXlWorksheetsFolder ( ) : |
||
return |
public zipRootFolderAndCopyToStream ( resource $streamPointer ) : void | ||
$streamPointer | resource | Pointer to the stream to copy the zip |
return | void |
protected $docPropsFolder |
protected $relsFolder |
protected $rootFolder |
protected $xlRelsFolder |