AVTHelper
abstract class AVTHelper
Methods
static array
parse(string $attrValue)
Parse an attribute value template
static void
static string
serialize(array $tokens)
Serialize an array of AVT tokens back into an attribute value
static string
toXSL(string $attrValue)
Transform given attribute value template into an XSL fragment
Details
at line 23
static array
parse(string $attrValue)
Parse an attribute value template
at line 53
static void
replace(DOMAttr $attribute, callable $callback)
Replace the value of an attribute via the provided callback
The callback will receive an array containing the type and value of each token in the AVT. Its return value should use the same format
at line 70
static string
serialize(array $tokens)
Serialize an array of AVT tokens back into an attribute value
at line 98
static string
toXSL(string $attrValue)
Transform given attribute value template into an XSL fragment