abstract class AVTHelper

Methods

static array
parse(string $attrValue)

Parse an attribute value template

static void
replace(DOMAttr $attribute, callable $callback)

Replace the value of an attribute via the provided callback

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

Parameters

string $attrValue

Attribute value

Return Value

array

Array of tokens

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

Parameters

DOMAttr $attribute
callable $callback

Return Value

void

at line 70
static string serialize(array $tokens)

Serialize an array of AVT tokens back into an attribute value

Parameters

array $tokens

Return Value

string

at line 98
static string toXSL(string $attrValue)

Transform given attribute value template into an XSL fragment

Parameters

string $attrValue

Return Value

string