[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/sweetdom/src/ -> Element.php (summary)

(no description)

Copyright: Copyright (c) 2019-2021 The s9e authors
License: http://www.opensource.org/licenses/mit-license.php The MIT License
File Size: 359 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Element:: (15 methods):
  __call()
  evaluate()
  firstOf()
  insertAdjacentElement()
  insertAdjacentText()
  insertAdjacentXML()
  query()
  remove()
  replaceWith()
  addMissingNamespaceDeclarations()
  insertAdjacentNode()
  insertElement()
  insertText()
  insertXslElement()
  parentOrThrow()


Class: Element  - X-Ref


__call(string $name, array $arguments)   X-Ref
No description

evaluate(string $expr)   X-Ref
Evaluate and return the result of a given XPath expression using this element as context node

param: string  $expr XPath expression
return: mixed

firstOf(string $expr)   X-Ref
Evaluate and return the first element of a given XPath query using this element as context node

param: string       $expr XPath expression
return: DOMNode|null

insertAdjacentElement(string $where, DOMElement $element)   X-Ref
Insert given element relative to this element's position

param: string     $where   One of 'beforebegin', 'afterbegin', 'beforeend', 'afterend'
param: DOMElement $element
return: self

insertAdjacentText(string $where, string $text)   X-Ref
Insert given text relative to this element's position

param: string $where One of 'beforebegin', 'afterbegin', 'beforeend', 'afterend'
param: string $text
return: void

insertAdjacentXML(string $where, string $xml)   X-Ref
Insert given XML relative to this element's position

param: string $where One of 'beforebegin', 'afterbegin', 'beforeend', 'afterend'
param: string $xml
return: void

query(string $expr)   X-Ref
Evaluate and return the result of a given XPath query using this element as context node

param: string      $expr XPath expression
return: DOMNodeList

remove()   X-Ref
Remove this element from the document

return: void

replaceWith(...$nodes)   X-Ref
Replace this element with given nodes/text

param: DOMNode|string $nodes
return: void

addMissingNamespaceDeclarations(string $xml)   X-Ref
Add namespace declarations that may be missing in given XML

param: string $xml Original XML
return: string      Modified XML

insertAdjacentNode(string $where, DOMNode $node)   X-Ref
No description

insertElement(string $where, string $nodeName, string $text)   X-Ref
Create and insert an element at given position

param: string $where    One of 'beforebegin', 'afterbegin', 'beforeend', 'afterend'
param: string $nodeName Element's nodeName
param: string $text     Text content
return: self

insertText(string $where, string $text)   X-Ref
Insert given text relative to this element's position

param: string  $where One of 'beforebegin', 'afterbegin', 'beforeend', 'afterend'
param: string  $text
return: DOMText

insertXslElement(string $where, string $localName, array $arguments)   X-Ref
Create and insert an XSL element at given position

param: string $where     One of 'beforebegin', 'afterbegin', 'beforeend', 'afterend'
param: string $localName Element's localName
param: array  $arguments Arguments passed to the Document::create* function
return: self

parentOrThrow(DOMException $previous = null)   X-Ref
Return this element's parent element if available, or throw an exception

param: DOMException $previous Previous exception
return: DOMNode



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1