[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

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

(no description)

File Size: 404 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ElementInspector:: (18 methods):
  closesParent()
  disallowsText()
  getAllowChildBitfield()
  getCategoryBitfield()
  getDenyDescendantBitfield()
  isBlock()
  isEmpty()
  isFormattingElement()
  isTextOnly()
  isTransparent()
  isVoid()
  preservesWhitespace()
  evaluate()
  getBitfield()
  getProperties()
  hasProperty()
  toBin()
  toRaw()


Class: ElementInspector  - X-Ref


closesParent(DOMElement $child, DOMElement $parent)   X-Ref
Test whether given child element closes given parent element

param: DOMElement $child
param: DOMElement $parent
return: bool

disallowsText(DOMElement $element)   X-Ref
Test whether given element disallows text nodes

param: DOMElement $element
return: bool

getAllowChildBitfield(DOMElement $element)   X-Ref
Return the "allowChild" bitfield for given element

param: DOMElement $element
return: string

getCategoryBitfield(DOMElement $element)   X-Ref
Return the "category" bitfield for given element

param: DOMElement $element
return: string

getDenyDescendantBitfield(DOMElement $element)   X-Ref
Return the "denyDescendant" bitfield for given element

param: DOMElement $element
return: string

isBlock(DOMElement $element)   X-Ref
Test whether given element is a block element

param: DOMElement $element
return: bool

isEmpty(DOMElement $element)   X-Ref
Test whether given element uses the empty content model

param: DOMElement $element
return: bool

isFormattingElement(DOMElement $element)   X-Ref
Test whether given element is a formatting element

param: DOMElement $element
return: bool

isTextOnly(DOMElement $element)   X-Ref
Test whether given element only accepts text nodes

param: DOMElement $element
return: bool

isTransparent(DOMElement $element)   X-Ref
Test whether given element uses the transparent content model

param: DOMElement $element
return: bool

isVoid(DOMElement $element)   X-Ref
Test whether given element uses the void content model

param: DOMElement $element
return: bool

preservesWhitespace(DOMElement $element)   X-Ref
Test whether given element preserves whitespace in its content

param: DOMElement $element
return: bool

evaluate($query, DOMElement $element)   X-Ref
Evaluate an XPath query using given element as context node

param: string     $query   XPath query
param: DOMElement $element Context node
return: bool

getBitfield(DOMElement $element, $name)   X-Ref
Get the bitfield value for a given element

param: DOMElement $element Context node
param: string     $name    Bitfield name: either 'c', 'ac' or 'dd'
return: string

getProperties(DOMElement $element)   X-Ref
Return the properties associated with given element

Returns span's properties if the element is not defined

param: DOMElement $element
return: array

hasProperty(DOMElement $element, $propName)   X-Ref
Test whether given element has given property in context

param: DOMElement $element  Context node
param: string     $propName Property name, see self::$htmlElements
return: bool

toBin($raw)   X-Ref
Convert a raw string to a series of 0 and 1 in LSB order

param: string $raw
return: string

toRaw($bin)   X-Ref
Convert a series of 0 and 1 in LSB order to a raw string

param: string $bin
return: string



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