createDomCdataSection()
createDomElement()
createDomElements()
fixPhpBug50670()
processSimpleXmlCdata()
readMetaDataFile()
writeMetaDataOutput()
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
array
object
array
processSimpleXmlCdata($cdata)
readMetaDataFile(string $metaDataFile) : array
string
Path to meta data file
array
Format: [title] => meta-datawriteMetaDataOutput(string $metaDataFile, string $title, array | false $metaData, array $metaDataKeys)
string
Path to meta-data file
string
The title of the key being modified
array
false
If array, inserts/updates the key; if false, deletes the key
array
null
If updating and this is specified, names the keys that will be written; if null, all keys written