PHP Класс Box\Spout\Writer\XLSX\Helper\FileSystemHelper

Наследование: extends Box\Spout\Common\Helper\FileSystemHelper
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

createAppXmlFile() защищенный Метод

Creates the "app.xml" file under the "docProps" folder
protected createAppXmlFile ( ) : FileSystemHelper
Результат FileSystemHelper

createBaseFilesAndFolders() публичный Метод

Creates all the folders needed to create a XLSX file, as well as the files that won't change.
public createBaseFilesAndFolders ( ) : void
Результат void

createContentTypesFile() публичный Метод

Creates the "[Content_Types].xml" file under the root folder
public createContentTypesFile ( Worksheet[] $worksheets ) : FileSystemHelper
$worksheets Box\Spout\Writer\XLSX\Internal\Worksheet[]
Результат FileSystemHelper

createCoreXmlFile() защищенный Метод

Creates the "core.xml" file under the "docProps" folder
protected createCoreXmlFile ( ) : FileSystemHelper
Результат FileSystemHelper

createDocPropsFolderAndFiles() защищенный Метод

Creates the "docProps" folder under the root folder as well as the "app.xml" and "core.xml" files in it
protected createDocPropsFolderAndFiles ( ) : FileSystemHelper
Результат FileSystemHelper

createRelsFile() защищенный Метод

Creates the ".rels" file under the "_rels" folder (under root)
protected createRelsFile ( ) : FileSystemHelper
Результат FileSystemHelper

createRelsFolderAndFile() защищенный Метод

Creates the "_rels" folder under the root folder as well as the ".rels" file in it
protected createRelsFolderAndFile ( ) : FileSystemHelper
Результат FileSystemHelper

createRootFolder() защищенный Метод

Creates the folder that will be used as root
protected createRootFolder ( ) : FileSystemHelper
Результат FileSystemHelper

createStylesFile() публичный Метод

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
Результат FileSystemHelper

createWorkbookFile() публичный Метод

Creates the "workbook.xml" file under the "xl" folder
public createWorkbookFile ( Worksheet[] $worksheets ) : FileSystemHelper
$worksheets Box\Spout\Writer\XLSX\Internal\Worksheet[]
Результат FileSystemHelper

createWorkbookRelsFile() публичный Метод

Creates the "workbook.xml.res" file under the "xl/_res" folder
public createWorkbookRelsFile ( Worksheet[] $worksheets ) : FileSystemHelper
$worksheets Box\Spout\Writer\XLSX\Internal\Worksheet[]
Результат FileSystemHelper

createXlFolderAndSubFolders() защищенный Метод

Creates the "xl" folder under the root folder as well as its subfolders
protected createXlFolderAndSubFolders ( ) : FileSystemHelper
Результат FileSystemHelper

createXlRelsFolder() защищенный Метод

Creates the "_rels" folder under the "xl" folder
protected createXlRelsFolder ( ) : FileSystemHelper
Результат FileSystemHelper

createXlWorksheetsFolder() защищенный Метод

Creates the "worksheets" folder under the "xl" folder
protected createXlWorksheetsFolder ( ) : FileSystemHelper
Результат FileSystemHelper

getRootFolder() публичный Метод

public getRootFolder ( ) : string
Результат string

getXlFolder() публичный Метод

public getXlFolder ( ) : string
Результат string

getXlWorksheetsFolder() публичный Метод

public getXlWorksheetsFolder ( ) : string
Результат string

zipRootFolderAndCopyToStream() публичный Метод

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
Результат void

Описание свойств

$docPropsFolder защищенное свойство

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

$relsFolder защищенное свойство

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

$rootFolder защищенное свойство

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

$xlFolder защищенное свойство

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

$xlRelsFolder защищенное свойство

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

$xlWorksheetsFolder защищенное свойство

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