20 $objWriter =
new XMLWriter(XMLWriter::STORAGE_MEMORY);
24 $objWriter->startDocument(
'1.0',
'UTF-8');
27 $objWriter->startElement(
'manifest:manifest');
28 $objWriter->writeAttribute(
'xmlns:manifest',
'urn:oasis:names:tc:opendocument:xmlns:manifest:1.0');
29 $objWriter->writeAttribute(
'manifest:version',
'1.2');
31 $objWriter->startElement(
'manifest:file-entry');
32 $objWriter->writeAttribute(
'manifest:full-path',
'/');
33 $objWriter->writeAttribute(
'manifest:version',
'1.2');
34 $objWriter->writeAttribute(
'manifest:media-type',
'application/vnd.oasis.opendocument.spreadsheet');
35 $objWriter->endElement();
36 $objWriter->startElement(
'manifest:file-entry');
37 $objWriter->writeAttribute(
'manifest:full-path',
'meta.xml');
38 $objWriter->writeAttribute(
'manifest:media-type',
'text/xml');
39 $objWriter->endElement();
40 $objWriter->startElement(
'manifest:file-entry');
41 $objWriter->writeAttribute(
'manifest:full-path',
'settings.xml');
42 $objWriter->writeAttribute(
'manifest:media-type',
'text/xml');
43 $objWriter->endElement();
44 $objWriter->startElement(
'manifest:file-entry');
45 $objWriter->writeAttribute(
'manifest:full-path',
'content.xml');
46 $objWriter->writeAttribute(
'manifest:media-type',
'text/xml');
47 $objWriter->endElement();
48 $objWriter->startElement(
'manifest:file-entry');
49 $objWriter->writeAttribute(
'manifest:full-path',
'Thumbnails/thumbnail.png');
50 $objWriter->writeAttribute(
'manifest:media-type',
'image/png');
51 $objWriter->endElement();
52 $objWriter->startElement(
'manifest:file-entry');
53 $objWriter->writeAttribute(
'manifest:full-path',
'styles.xml');
54 $objWriter->writeAttribute(
'manifest:media-type',
'text/xml');
55 $objWriter->endElement();
56 $objWriter->endElement();
58 return $objWriter->getData();
getDiskCachingDirectory()
Get disk caching directory.
getParentWriter()
Get Ods writer.
getUseDiskCaching()
Get use disk caching where possible?