[ Index ]

PHP Cross Reference of phpBB-3.3.12-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

return: mixed
param: string  $expr XPath expression

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

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

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

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

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

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

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

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

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

return: DOMNodeList
param: string      $expr XPath expression

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

return: void

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

return: void
param: DOMNode|string $nodes

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

return: string      Modified XML
param: string $xml Original 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

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

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

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

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

return: self
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

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

return: DOMNode
param: DOMException $previous Previous exception



Generated: Sun Jun 23 12:25:44 2024 Cross-referenced by PHPXref 0.7.1