Lines Matching refs:this

33         $this->domElement = $domElement;
34 $this->document = $document;
45 return $this->domElement->getAttribute($qualifiedName);
50 return $this->domElement->getAttribute("class");
58 $firstChild = $this->domElement->firstChild;
65 return new XmlElement($firstChild, $this->document);
74 foreach ($this->domElement->childNodes as $childNode) {
76 $childNodes[] = new XmlElement($childNode, $this->document);
88 foreach ($this->domElement->childNodes as $childNode) {
92 $childNodes[] = implode('', XmlElement::create($childNode, $this->document)->getChildrenNodeTextValues());
104 $xpath = $this->document->cssSelectorToXpath($selector);
106 foreach ($this->document->xpath($xpath, $this->domElement) as $child) {
108 $nodes[] = new XmlElement($child, $this->document);
117 return $this->document->toXmlNormalized($this->domElement);
123 $attr = $this->domElement->getAttributeNode($attributeName);
125 return $this;
127 $result = $this->domElement->removeAttributeNode($attr);
129 throw new ExceptionRuntime("Not able to delete the attribute $attributeName of the node element {$this->domElement->tagName} in the Xml document");
131 return $this;
136 $this->domElement->parentNode->removeChild($this->domElement);
137 return $this;
142 return $this->domElement->getAttribute("style");
147 return $this->domElement->nodeValue;
156 $domNodeList = $this->querySelectorAll($selector);
165 return $this->domElement->localName;
170 $classes = Html::mergeClassNames($class, $this->getClass());
171 $this->domElement->setAttribute("class", $classes);
172 return $this;
177 $this->domElement->setAttribute($name, $value);
178 return $this;
183 return $this->domElement->hasAttribute($name);
188 return $this->domElement;
195 * @return $this
200 $textNode = $this->domElement->ownerDocument->createTextNode($string);
201 $this->insertAdjacentDomElement($position, $textNode);
202 return $this;
207 return $this->domElement->ownerDocument->saveHTML($this->domElement);
212 return $this->domElement->ownerDocument->saveXML($this->domElement);
217 return XmlSystems::extractTextWithoutCdata($this->getNodeValue());
228 $internalElement = $this->importIfExternal($externalElement);
229 $this->insertAdjacentDomElement($position, $internalElement);
230 return $this;
236 return $this->getAttribute("id");
241 return sizeof($this->getChildrenElement()) !== 0;
246 if (!$this->hasAttribute($string)) {
249 return $this->getAttribute($string);
255 $element = $this->importIfExternal($xmlElement->domElement);
256 $this->domElement->appendChild($element);
257 return $this;
262 return $this->document;
267 $this->domElement->nodeValue = $nodeValue;
272 ArrayUtility::addIfNotSet($this->styleDeclaration, $name, $value);
273 $this->setAttribute("style", Html::array2InlineStyle($this->styleDeclaration));
274 return $this;
290 if ($domElement->ownerDocument !== $this->getDocument()->getDomDocument()) {
291 return $this->getDocument()->getDomDocument()->importNode($domElement, true);
303 $this->domElement,
315 $class = $this->getClass();
317 $this->setAttribute("class", $newClass);
318 return $this;
326 $parentNode = $this->domElement->parentNode;
338 return new XmlElement($parentNode, $this->document);
351 $this->domElement->appendChild($domNode);
352 return $this;
354 $firstChild = $this->domElement->firstChild;
356 $this->domElement->appendChild($domNode);
364 return $this;
366 $this->domElement->parentNode->insertBefore($domNode, $this->domElement);
367 return $this;
375 if ($this->hasChildrenElement()) {
376 return implode('', $this->getChildrenNodeTextValues());
378 return $this->domElement->nodeValue;
384 return XmlSystems::extractTextWithoutCdata($this->getInnerText());
389 $source = StyleAttribute::HtmlStyleValueToArray($this->getStyle());
395 return $this->getStyleProperties()[$property];
404 $value = $this->getAttribute($attributeName);
413 $toString = $this->getLocalName();
414 $class = $this->getClass();
419 if ($this->getId() !== "") {
420 $toString .= "#" . $this->getId();
427 $classes = preg_split("/\s/", $this->getClass());