Property | Type | Description | |
---|---|---|---|
$metaInfFolder | Path to the "META-INF" folder inside the root folder | ||
$rootFolder | Path to the root folder inside the temp folder where the files to create the ODS will be stored | ||
$sheetsContentTempFolder | Path to the temp folder, inside the root folder, where specific sheets content will be written to |
Method | Description | |
---|---|---|
createBaseFilesAndFolders ( ) : void | Creates all the folders needed to create a ODS file, as well as the files that won't change. | |
createContentFile ( |
Creates the "content.xml" file under the root folder | |
createStylesFile ( |
Creates the "styles.xml" file under the root folder | |
deleteWorksheetTempFolder ( ) : |
Deletes the temporary folder where sheets content was stored. | |
getRootFolder ( ) : string | ||
getSheetsContentTempFolder ( ) : string | ||
zipRootFolderAndCopyToStream ( resource $streamPointer ) : void | Zips the root folder and streams the contents of the zip into the given stream |
Method | Description | |
---|---|---|
copyFileContentsToTarget ( string $sourceFilePath, resource $targetResource ) : void | Streams the content of the file at the given path into the target resource. | |
createManifestFile ( ) : |
Creates the "manifest.xml" file under the "META-INF" folder (under root) | |
createMetaFile ( ) : |
Creates the "meta.xml" file under the root folder | |
createMetaInfoFolderAndFile ( ) : |
Creates the "META-INF" folder under the root folder as well as the "manifest.xml" file in it | |
createMimetypeFile ( ) : |
Creates the "mimetype" file under the root folder | |
createRootFolder ( ) : |
Creates the folder that will be used as root | |
createSheetsContentTempFolder ( ) : |
Creates the temp folder where specific sheets content will be written to. |
protected copyFileContentsToTarget ( string $sourceFilePath, resource $targetResource ) : void | ||
$sourceFilePath | string | Path of the file whose content will be copied |
$targetResource | resource | Target resource that will receive the content |
return | void |
public createBaseFilesAndFolders ( ) : void | ||
return | void |
public createContentFile ( |
||
$worksheets | ||
$styleHelper | ||
return |
protected createManifestFile ( ) : |
||
return |
protected createMetaFile ( ) : |
||
return |
protected createMetaInfoFolderAndFile ( ) : |
||
return |
protected createMimetypeFile ( ) : |
||
return |
protected createRootFolder ( ) : |
||
return |
protected createSheetsContentTempFolder ( ) : |
||
return |
public createStylesFile ( |
||
$styleHelper | ||
$numWorksheets | integer | Number of created worksheets |
return |
public deleteWorksheetTempFolder ( ) : |
||
return |
public getSheetsContentTempFolder ( ) : string | ||
return | string |
public zipRootFolderAndCopyToStream ( resource $streamPointer ) : void | ||
$streamPointer | resource | Pointer to the stream to copy the zip |
return | void |
protected $metaInfFolder |
protected $rootFolder |