[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/Helpers/ -> NodeLocator.php (summary)

(no description)

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

Defines 8 functions

  getAttributesByRegexp()
  getCSSNodes()
  getElementsByRegexp()
  getJSNodes()
  getObjectParamsByRegexp()
  getURLNodes()
  getNodes()
  getNodesByRegexp()

Functions
Functions that are not part of a class:

getAttributesByRegexp(DOMDocument $dom, $regexp)   X-Ref
Return all attributes (literal or generated) that match given regexp

param: DOMDocument $dom    Document
param: string      $regexp Regexp
return: DOMNode[]           List of DOMNode instances

getCSSNodes(DOMDocument $dom)   X-Ref
Return all DOMNodes whose content is CSS

param: DOMDocument $dom Document
return: DOMNode[]        List of DOMNode instances

getElementsByRegexp(DOMDocument $dom, $regexp)   X-Ref
Return all elements (literal or generated) that match given regexp

param: DOMDocument $dom    Document
param: string      $regexp Regexp
return: DOMNode[]           List of DOMNode instances

getJSNodes(DOMDocument $dom)   X-Ref
Return all DOMNodes whose content is JavaScript

param: DOMDocument $dom Document
return: DOMNode[]        List of DOMNode instances

getObjectParamsByRegexp(DOMDocument $dom, $regexp)   X-Ref
Return all elements (literal or generated) that match given regexp

Will return all <param/> descendants of <object/> and all attributes of <embed/> whose name
matches given regexp. This method will NOT catch <param/> elements whose 'name' attribute is
set via an <xsl:attribute/>

param: DOMDocument $dom    Document
param: string      $regexp
return: DOMNode[]           List of DOMNode instances

getURLNodes(DOMDocument $dom)   X-Ref
Return all DOMNodes whose content is an URL

NOTE: it will also return HTML4 nodes whose content is an URI

param: DOMDocument $dom Document
return: DOMNode[]        List of DOMNode instances

getNodes(DOMDocument $dom, $type)   X-Ref
Return all nodes of given type

param: DOMDocument $dom  Owner document
param: string      $type Node type ('element' or 'attribute')
return: DOMNode[]         List of DOMNode instances

getNodesByRegexp(DOMDocument $dom, $regexp, $type)   X-Ref
Return all nodes (literal or generated) that match given regexp

param: DOMDocument $dom    Owner document
param: string      $regexp Regexp
param: string      $type   Node type ('element' or 'attribute')
return: DOMNode[]           List of DOMNode instances



Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1