Method | Description | |
---|---|---|
__construct ( $filterGroup ) | Constructor | |
createLocalizedNodes ( $doc, $parentNode, $name, $values ) | Create a set of child nodes of parentNode containing the localeKey => value data representing translated content. | |
createOptionalNode ( $doc, $parentNode, $name, $value ) : DOMElement | null | Create an optional node with a name and value. |
public __construct ( $filterGroup ) | ||
$filterGroup | FilterGroup |
public createLocalizedNodes ( $doc, $parentNode, $name, $values ) | ||
$doc | DOMDocument | |
$parentNode | DOMNode | |
$name | string Node name | |
$values | array Array of locale key => value mappings |
public createOptionalNode ( $doc, $parentNode, $name, $value ) : DOMElement | null | ||
$doc | DOMDocument | |
$parentNode | DOMElement | |
$name | string | |
$value | string|null | |
return | DOMElement | null |