Helper for working with XML files/data.
createDomCdataSection(\DOMDocument $document, $text)
createDomElement(\DOMDocument $document, string $tagName, string | \DOMNode | false $value) : \DOMElement
This automatically escapes the value (unlike createElement).
\DOMDocument
string
createDomElements(\DOMElement $rootNode, array $pairs)
fixPhpBug50670(array | object $input) : array
See http://bugs.php.net/bug.php?id=50670
arrayobject
arrayprocessSimpleXmlCdata($cdata)
readMetaDataFile(string $metaDataFile) : array
stringPath to meta data file
arrayFormat: [title] => meta-datawriteMetaDataOutput(string $metaDataFile, string $title, array | false $metaData, array $metaDataKeys)
stringPath to meta-data file
stringThe title of the key being modified
arrayfalseIf array, inserts/updates the key; if false, deletes the key
arraynullIf updating and this is specified, names the keys that will be written; if null, all keys written