[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Renderers/ -> PHP.php (summary)

(no description)

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

Defines 14 functions

  __sleep()
  at()
  canQuickRender()
  checkTagPairContent()
  getParamAsXPath()
  getQuickTextContent()
  hasNonNullValues()
  matchAttributes()
  renderQuick()
  renderQuickCallback()
  renderQuickSelfClosingTag()
  renderQuickTemplate()
  renderRichText()
  reset()

Functions
Functions that are not part of a class:

__sleep()   X-Ref
Render given DOMNode

return: void
param: DOMNode $node

at(DOMNode $root, $query = null)   X-Ref
Render the content of given node

Matches the behaviour of an xsl:apply-templates element

return: void
param: DOMNode $root  Context node
param: string  $query XPath query used to filter which child nodes to render

canQuickRender($xml)   X-Ref
Test whether given XML can be rendered with the Quick renderer

return: bool
param: string $xml

checkTagPairContent($id, $xml)   X-Ref
Ensure that a tag pair does not contain a start tag of itself

Detects malformed matches such as <X><X></X>

return: void
param: string $id
param: string $xml

getParamAsXPath($paramName)   X-Ref
Return a parameter's value as an XPath expression

return: string
param: string $paramName

getQuickTextContent($xml)   X-Ref
Extract the text content from given XML

NOTE: numeric character entities are decoded beforehand, we don't need to decode them here

return: string      Text content, with special characters decoded
param: string $xml Original XML

hasNonNullValues(array $array)   X-Ref
Test whether given array has any non-null values

return: bool
param: array $array

matchAttributes($xml)   X-Ref
Capture and return the attributes of an XML element

NOTE: XML character entities are left as-is

return: array       Dictionary of [attrName => attrValue]
param: string $xml Element in XML form

renderQuick($xml)   X-Ref
Render an intermediate representation using the Quick renderer

return: string
param: string $xml Intermediate representation

renderQuickCallback(array $m)   X-Ref
Render a string matched by the Quick renderer

This stub should be overwritten by generated renderers

return: string
param: string[] $m

renderQuickSelfClosingTag(array $m)   X-Ref
Render a self-closing tag using the Quick renderer

return: string
param: string[] $m

renderQuickTemplate($id, $xml)   X-Ref
Render a string matched by the Quick renderer using a generated PHP template

This stub should be overwritten by generated renderers

return: string       Rendered template
param: integer $id  Tag's ID (tag name optionally preceded by a slash)
param: string  $xml Tag's XML or tag pair's XML including their content

renderRichText($xml)   X-Ref
{@inheritdoc}


reset()   X-Ref
Reset object properties that are populated during rendering

return: void



Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1