Box\Spout\Writer\ODS\Helper\FileSystemHelper::createMetaFile PHP Method

createMetaFile() protected method

Creates the "meta.xml" file under the root folder
protected createMetaFile ( ) : FileSystemHelper
return FileSystemHelper
    protected function createMetaFile()
    {
        $appName = self::APP_NAME;
        $createdDate = (new \DateTime())->format(\DateTime::W3C);
        $metaXmlFileContents = <<<EOD
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<office:document-meta office:version="1.2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
    <office:meta>
        <dc:creator>{$appName}</dc:creator>
        <meta:creation-date>{$createdDate}</meta:creation-date>
        <dc:date>{$createdDate}</dc:date>
    </office:meta>
</office:document-meta>
EOD;
        $this->createFileWithContents($this->rootFolder, self::META_XML_FILE_NAME, $metaXmlFileContents);
        return $this;
    }