PHP Class Box\Spout\Writer\XLSX\Helper\FileSystemHelper

Inheritance: extends Box\Spout\Common\Helper\FileSystemHelper
Afficher le fichier Open project: box/spout

Protected Properties

Свойство 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

Méthodes publiques

Méthode Description
createBaseFilesAndFolders ( ) : void Creates all the folders needed to create a XLSX file, as well as the files that won't change.
createContentTypesFile ( Worksheet[] $worksheets ) : FileSystemHelper Creates the "[Content_Types].xml" file under the root folder
createStylesFile ( Box\Spout\Writer\XLSX\Helper\StyleHelper $styleHelper ) : FileSystemHelper Creates the "styles.xml" file under the "xl" folder
createWorkbookFile ( Worksheet[] $worksheets ) : FileSystemHelper Creates the "workbook.xml" file under the "xl" folder
createWorkbookRelsFile ( Worksheet[] $worksheets ) : FileSystemHelper 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

Méthodes protégées

Méthode Description
createAppXmlFile ( ) : FileSystemHelper Creates the "app.xml" file under the "docProps" folder
createCoreXmlFile ( ) : FileSystemHelper Creates the "core.xml" file under the "docProps" folder
createDocPropsFolderAndFiles ( ) : FileSystemHelper Creates the "docProps" folder under the root folder as well as the "app.xml" and "core.xml" files in it
createRelsFile ( ) : FileSystemHelper Creates the ".rels" file under the "_rels" folder (under root)
createRelsFolderAndFile ( ) : FileSystemHelper Creates the "_rels" folder under the root folder as well as the ".rels" file in it
createRootFolder ( ) : FileSystemHelper Creates the folder that will be used as root
createXlFolderAndSubFolders ( ) : FileSystemHelper Creates the "xl" folder under the root folder as well as its subfolders
createXlRelsFolder ( ) : FileSystemHelper Creates the "_rels" folder under the "xl" folder
createXlWorksheetsFolder ( ) : FileSystemHelper Creates the "worksheets" folder under the "xl" folder

Method Details

createAppXmlFile() protected méthode

Creates the "app.xml" file under the "docProps" folder
protected createAppXmlFile ( ) : FileSystemHelper
Résultat FileSystemHelper

createBaseFilesAndFolders() public méthode

Creates all the folders needed to create a XLSX file, as well as the files that won't change.
public createBaseFilesAndFolders ( ) : void
Résultat void

createContentTypesFile() public méthode

Creates the "[Content_Types].xml" file under the root folder
public createContentTypesFile ( Worksheet[] $worksheets ) : FileSystemHelper
$worksheets Box\Spout\Writer\XLSX\Internal\Worksheet[]
Résultat FileSystemHelper

createCoreXmlFile() protected méthode

Creates the "core.xml" file under the "docProps" folder
protected createCoreXmlFile ( ) : FileSystemHelper
Résultat FileSystemHelper

createDocPropsFolderAndFiles() protected méthode

Creates the "docProps" folder under the root folder as well as the "app.xml" and "core.xml" files in it
protected createDocPropsFolderAndFiles ( ) : FileSystemHelper
Résultat FileSystemHelper

createRelsFile() protected méthode

Creates the ".rels" file under the "_rels" folder (under root)
protected createRelsFile ( ) : FileSystemHelper
Résultat FileSystemHelper

createRelsFolderAndFile() protected méthode

Creates the "_rels" folder under the root folder as well as the ".rels" file in it
protected createRelsFolderAndFile ( ) : FileSystemHelper
Résultat FileSystemHelper

createRootFolder() protected méthode

Creates the folder that will be used as root
protected createRootFolder ( ) : FileSystemHelper
Résultat FileSystemHelper

createStylesFile() public méthode

Creates the "styles.xml" file under the "xl" folder
public createStylesFile ( Box\Spout\Writer\XLSX\Helper\StyleHelper $styleHelper ) : FileSystemHelper
$styleHelper Box\Spout\Writer\XLSX\Helper\StyleHelper
Résultat FileSystemHelper

createWorkbookFile() public méthode

Creates the "workbook.xml" file under the "xl" folder
public createWorkbookFile ( Worksheet[] $worksheets ) : FileSystemHelper
$worksheets Box\Spout\Writer\XLSX\Internal\Worksheet[]
Résultat FileSystemHelper

createWorkbookRelsFile() public méthode

Creates the "workbook.xml.res" file under the "xl/_res" folder
public createWorkbookRelsFile ( Worksheet[] $worksheets ) : FileSystemHelper
$worksheets Box\Spout\Writer\XLSX\Internal\Worksheet[]
Résultat FileSystemHelper

createXlFolderAndSubFolders() protected méthode

Creates the "xl" folder under the root folder as well as its subfolders
protected createXlFolderAndSubFolders ( ) : FileSystemHelper
Résultat FileSystemHelper

createXlRelsFolder() protected méthode

Creates the "_rels" folder under the "xl" folder
protected createXlRelsFolder ( ) : FileSystemHelper
Résultat FileSystemHelper

createXlWorksheetsFolder() protected méthode

Creates the "worksheets" folder under the "xl" folder
protected createXlWorksheetsFolder ( ) : FileSystemHelper
Résultat FileSystemHelper

getRootFolder() public méthode

public getRootFolder ( ) : string
Résultat string

getXlFolder() public méthode

public getXlFolder ( ) : string
Résultat string

getXlWorksheetsFolder() public méthode

public getXlWorksheetsFolder ( ) : string
Résultat string

zipRootFolderAndCopyToStream() public méthode

Zips the root folder and streams the contents of the zip into the given stream
public zipRootFolderAndCopyToStream ( resource $streamPointer ) : void
$streamPointer resource Pointer to the stream to copy the zip
Résultat void

Property Details

$docPropsFolder protected_oe property

Path to the "docProps" folder inside the root folder
protected $docPropsFolder

$relsFolder protected_oe property

Path to the "_rels" folder inside the root folder
protected $relsFolder

$rootFolder protected_oe property

Path to the root folder inside the temp folder where the files to create the XLSX will be stored
protected $rootFolder

$xlFolder protected_oe property

Path to the "xl" folder inside the root folder
protected $xlFolder

$xlRelsFolder protected_oe property

Path to the "_rels" folder inside the "xl" folder
protected $xlRelsFolder

$xlWorksheetsFolder protected_oe property

Path to the "worksheets" folder inside the "xl" folder
protected $xlWorksheetsFolder