85 switch ($node->localName) {
94 $this->children[] =
new Chunk($node);
107 assert(is_array($this->DisplayName));
108 assert(is_array($this->InformationURL));
109 assert(is_array($this->PrivacyStatementURL));
111 assert(is_array($this->
Logo));
112 assert(is_array($this->children));
115 if (!empty($this->DisplayName)
116 || !empty($this->Description)
117 || !empty($this->InformationURL)
118 || !empty($this->PrivacyStatementURL)
120 || !empty($this->
Logo)
121 || !empty($this->children)) {
122 $doc = $parent->ownerDocument;
124 $e = $doc->createElementNS(
Common::NS,
'mdui:UIInfo');
125 $parent->appendChild($e);
133 foreach ($this->
Keywords as $child) {
138 if (!empty($this->
Logo)) {
139 foreach ($this->
Logo as $child) {
144 if (!empty($this->children)) {
145 foreach ($this->children as $child) {
__construct(\DOMElement $xml=null)
Create a UIInfo element.
static extractLocalizedStrings(\DOMElement $parent, $namespaceURI, $localName)
Extract localized strings from a set of nodes.
toXML(\DOMElement $parent)
Convert this UIInfo to XML.
static addStrings(\DOMElement $parent, $namespace, $name, $localized, array $values)
Append string elements.
static xpQuery(\DOMNode $node, $query)
Do an XPath query on an XML node.
Create styles array
The data for the language used.