Todo List
Creates one zip file containing several XML files.
[line 50]
[line 36]
[line 57]
[line 64]
[line 71]
[line 43]
string addFile( string $path, [string $mimetype = null])
Returns the file name that has to be used to reference the file in the document content.
void checkReadability( string $file)
void checkWritability( string $file)
void create( string $type, [string $file = null])
The file name may be passed, but can be omitted if the final storage location is not known yet.
Storage drivers may choose to create temporary files or directories in case no file name is given here.
DOMDocument getContentDom( )
DOMDocument getMetaDom( )
string getMimeType( )
string getMimeTypeFromContent( DOMDocument $content)
DOMDocument getSettingsDom( )
DOMDocument getStylesDom( )
string getTemplateFile( string $type)
void import( OpenDocument_Storage $storage)
DOMDocument loadDomFromZip( ZipArchive $zip, string $file)
void loadFile( string $file)
Sets $this->file to $file. One needs to make sure the file is readable before calling this method.
void open( string $file)
void removeFile( string $relpath)
void save( [string $file = null])
void setContentDom( DOMDocument $content)
<office:document-content>
void setMetaDom( DOMDocument $meta)
<office:document-meta>
void setSettingsDom( DOMDocument $settings)
<office:document-settings>
void setStylesDom( DOMDocument $styles)
<office:document-styles>