[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/Helpers/ -> TemplateLoader.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: 203 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  innerXML()
  load()
  save()
  fixEntities()
  loadAsHTML()
  loadAsXML()
  removeInvalidAttributes()
  replaceCDATA()
  replaceEntities()

Functions
Functions that are not part of a class:

innerXML(DOMElement $element)   X-Ref
Get the XML content of an element

param: DOMElement $element
return: string

load($template)   X-Ref
Load a template as an xsl:template node

Will attempt to load it as XML first, then as HTML as a fallback. Either way, an xsl:template
node is returned

param: string      $template
return: DOMDocument

save(DOMDocument $dom)   X-Ref
Serialize a loaded template back into a string

NOTE: removes the root node created by load()

param: DOMDocument $dom
return: string

fixEntities($template)   X-Ref
Replace HTML entities and unescaped ampersands in given template

param: string $template
return: string

loadAsHTML($template)   X-Ref
Load given HTML template in a DOM document

param: string      $template Original template
return: DOMDocument

loadAsXML($template)   X-Ref
Load given XSL template in a DOM document

param: string           $template Original template
return: bool|DOMDocument           DOMDocument on success, FALSE otherwise

removeInvalidAttributes(DOMDocument $dom)   X-Ref
Remove attributes with an invalid name from given DOM document

param: DOMDocument $dom
return: void

replaceCDATA($template)   X-Ref
Replace CDATA sections in given template

param: string $template Original template
return: string           Modified template

replaceEntities(string $template)   X-Ref
No description



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