FunctionExtension::translateNthChild()

XPathExpr translateNthChild(XPathExpr $xpath, FunctionNode $function, bool $last = false, bool $addNameTest = true) Parameters XPathExpr $xpath FunctionNode $function bool $last bool $addNameTest Return Value XPathExpr Exceptions ExpressionErrorException

FunctionExtension::translateLang()

XPathExpr translateLang(XPathExpr $xpath, FunctionNode $function) Parameters XPathExpr $xpath FunctionNode $function Return Value XPathExpr Exceptions ExpressionErrorException

FunctionExtension::translateContains()

XPathExpr translateContains(XPathExpr $xpath, FunctionNode $function) Parameters XPathExpr $xpath FunctionNode $function Return Value XPathExpr Exceptions ExpressionErrorException

FunctionExtension::getName()

string getName() Returns extension name. Return Value string

FunctionExtension::getFunctionTranslators()

callable[] getFunctionTranslators() Returns function translators. Return Value callable[]

FunctionExtension

class FunctionExtension extends AbstractExtension XPath expression translator function extension. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods callable[] getNodeTranslators() Returns node translators. from AbstractExtension callable[] getCombinationTranslators() Returns combination translators. from AbstractExtension callable[] getFunctionTranslators() Returns function translators.

FullTransformer::replaceQuoteMatch()

string replaceQuoteMatch(string $quoteMatch) Replaces single quotes at the start or end of a string with two single quotes. Parameters string $quoteMatch The string to replace the quotes Return Value string A string with the single quotes replaced

FullTransformer::parse()

int parse(DateTime $dateTime, string $value) Parse a pattern based string to a timestamp value. Parameters DateTime $dateTime A configured DateTime object to use to perform the date calculation string $value String to convert to a time value Return Value int The corresponding Unix timestamp Exceptions InvalidArgumentException When the value can not be matched with pattern

FullTransformer::isQuoteMatch()

bool isQuoteMatch(string $quoteMatch) Check if the first char of a string is a single quote. Parameters string $quoteMatch The string to check Return Value bool true if matches, false otherwise

FullTransformer::getTransformers()

Transformer[] getTransformers() Return the array of Transformer objects. Return Value Transformer[] Associative array of Transformer objects (format char => Transformer)