[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/RendererGenerators/PHP/ -> Serializer.php (summary)

(no description)

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

Defines 1 class

Serializer:: (20 methods):
  __construct()
  convertCondition()
  convertXPath()
  serialize()
  convertAttributeValueTemplate()
  convertDynamicNodeName()
  escapeLiteral()
  escapePHPOutput()
  hasMultipleCases()
  isBooleanAttribute()
  serializeApplyTemplates()
  serializeAttribute()
  serializeChildren()
  serializeCloseTag()
  serializeComment()
  serializeCopyOfAttributes()
  serializeElement()
  serializeHash()
  serializeOutput()
  serializeSwitch()


Class: Serializer  - X-Ref


__construct()   X-Ref
Constructor


convertCondition($expr)   X-Ref
Convert an XPath expression (used in a condition) into PHP code

This method is similar to convertXPath() but it selectively replaces some simple conditions
with the corresponding DOM method for performance reasons

param: string $expr XPath expression
return: string       PHP code

convertXPath($expr)   X-Ref
Convert an XPath expression (used as value) into PHP code

param: string $expr XPath expression
return: string       PHP code

serialize(DOMElement $ir)   X-Ref
Serialize the internal representation of a template into PHP

param: DOMElement $ir Internal representation
return: string

convertAttributeValueTemplate($attrValue)   X-Ref
Convert an attribute value template into PHP

NOTE: escaping must be performed by the caller

param: string $attrValue Attribute value template
return: string

convertDynamicNodeName(string $attrValue)   X-Ref
Convert a dynamic xsl:attribute/xsl:element name into PHP

param: string $attrValue Attribute value template
return: string

escapeLiteral($text, $context)   X-Ref
Escape given literal

param: string $text    Literal
param: string $context Either "raw", "text" or "attribute"
return: string          Escaped literal

escapePHPOutput($php, $context)   X-Ref
Escape the output of given PHP expression

param: string $php     PHP expression
param: string $context Either "raw", "text" or "attribute"
return: string          PHP expression, including escaping mechanism

hasMultipleCases(DOMElement $switch)   X-Ref
Test whether given switch has more than one non-default case

param: DOMElement $switch <switch/> node
return: bool

isBooleanAttribute(DOMElement $attribute, string $php)   X-Ref
Test whether given attribute declaration is a minimizable boolean attribute

param: DOMElement $attribute <attribute/> node
param: string     $php       Attribute content, in PHP
return: boolean

serializeApplyTemplates(DOMElement $applyTemplates)   X-Ref
Serialize an <applyTemplates/> node

param: DOMElement $applyTemplates <applyTemplates/> node
return: string

serializeAttribute(DOMElement $attribute)   X-Ref
Serialize an <attribute/> node

param: DOMElement $attribute <attribute/> node
return: string

serializeChildren(DOMElement $ir)   X-Ref
Serialize all the children of given node into PHP

param: DOMElement $ir Internal representation
return: string

serializeCloseTag(DOMElement $closeTag)   X-Ref
Serialize a <closeTag/> node

param: DOMElement $closeTag <closeTag/> node
return: string

serializeComment(DOMElement $comment)   X-Ref
Serialize a <comment/> node

param: DOMElement $comment <comment/> node
return: string

serializeCopyOfAttributes(DOMElement $copyOfAttributes)   X-Ref
Serialize a <copyOfAttributes/> node

param: DOMElement $copyOfAttributes <copyOfAttributes/> node
return: string

serializeElement(DOMElement $element)   X-Ref
Serialize an <element/> node

param: DOMElement $element <element/> node
return: string

serializeHash(DOMElement $switch)   X-Ref
Serialize a <switch/> node that has a branch-key attribute

param: DOMElement $switch <switch/> node
return: string

serializeOutput(DOMElement $output)   X-Ref
Serialize an <output/> node

param: DOMElement $output <output/> node
return: string

serializeSwitch(DOMElement $switch)   X-Ref
Serialize a <switch/> node

param: DOMElement $switch <switch/> node
return: string



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