62 $this->children[] =
new Chunk($node);
74 assert(is_array($this->IPHint));
75 assert(is_array($this->DomainHint));
76 assert(is_array($this->GeolocationHint));
77 assert(is_array($this->children));
79 if (!empty($this->IPHint)
80 || !empty($this->DomainHint)
81 || !empty($this->GeolocationHint)
82 || !empty($this->children)) {
83 $doc = $parent->ownerDocument;
85 $e = $doc->createElementNS(
Common::NS,
'mdui:DiscoHints');
86 $parent->appendChild($e);
88 if (!empty($this->children)) {
89 foreach ($this->children as $child) {
static extractStrings(\DOMElement $parent, $namespaceURI, $localName)
Extract strings from a set of nodes.
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.
__construct(\DOMElement $xml=null)
Create a DiscoHints element.
toXML(\DOMElement $parent)
Convert this DiscoHints to XML.