void close(
[bool
$write = true]
)
|
|
Close the current OpenDocument.
When ever you work with an OpenDocument, you should close it a the end.
//... do something ...
If you want to revert all modifications and do not write anything back to the archive you can use the first parameter of this function and set it to false.
//... do something ...
// But we do not want to write it back to the archive
Parameters:
|
bool |
$write: |
Should we write something back to the archive? - Default is true. |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Redefinition of:
- OpenDocumentArchive::close()
- Close opened or created archive and save changes. This method is automatically called at the end of the script.
Retrieve the body part of the content document as an object of the BodyFragment class.
API Tags:
| Return: | The body part of the content document as object. |
| Deprecated: | 0.5.3 - 02. Jul. 2007 |
| Access: | public |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Retrieve the content document as an object of the ContentDocument class.
API Tags:
| Return: | The meta document as object. |
| Access: | public |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Retrieve the meta document as an object of the MetaDocument class.
API Tags:
| Return: | The meta document as object. |
| Access: | public |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Retrieve the styles document as an object of the StylesDocument class.
API Tags:
| Return: | The styles document as object. |
| Access: | public |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Initialise the usual attributes of this class.
Calling this method will initialise fresh and new objects for the content, the meta, the styles and the settings document as part of this OpenDocument.
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Load content document.
API Tags:
Information Tags:
| Since: | 0.5.2 - 02. Mar. 2007 |
Load meta document.
API Tags:
Information Tags:
| Since: | 0.5.2 - 02. Mar. 2007 |
Load settings document.
API Tags:
Information Tags:
| Since: | 0.5.2 - 02. Mar. 2007 |
Load styles document.
API Tags:
Information Tags:
| Since: | 0.5.2 - 02. Mar. 2007 |
bool open(
string
$filename, [int
$flags = 0], [string
$mimetype = '']
)
|
|
Open an OpenDocument and read the meta, settings, content and styles data out of the ususal xml files and stores them into their attributes.
Parameters:
|
string |
$filename: |
Filename |
|
int |
$flags: |
File opening flags |
|
string |
$mimetype: |
Mimetype |
API Tags:
| Return: | If everything went fine, we got true as result, else we get false. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 22. Feb. 2007 |
Redefinition of:
- OpenDocumentArchive::open()
- Opens a new zip archive for reading, writing or modifying.