Property | Type | Description | |
---|---|---|---|
$compiled | array |
Method | Description | |
---|---|---|
buildXpath ( array $segments, string $prefix = '//' ) : string | ||
compile ( string $expression, string $type = self::TYPE_CSS ) : string | Converts a CSS selector into an XPath expression. | |
cssToXpath ( string $selector, string $prefix = '//' ) : string | Converts a CSS selector into an XPath expression. | |
getCompiled ( ) : array | ||
getSegments ( string $selector ) : array | Splits the CSS selector into parts (tag name, ID, classes, attributes, pseudo-class). | |
setCompiled ( array $compiled ) |
Method | Description | |
---|---|---|
convertAttribute ( string $name, string $value ) : string | ||
convertContains ( string $string, boolean $caseSensetive = false ) : string | ||
convertNthExpression ( string $expression ) : string | Converts nth-expression into an XPath expression. | |
convertProperty ( string $name, array $args = [] ) : string | ||
convertPseudo ( string $pseudo, string $parameters = [], string &$tagName ) : string | Converts a CSS pseudo-class into an XPath expression. | |
parseProperty ( string $property ) : array |
protected static convertNthExpression ( string $expression ) : string | ||
$expression | string | nth-expression |
return | string |
public static getSegments ( string $selector ) : array | ||
$selector | string | CSS selector |
return | array |
protected static parseProperty ( string $property ) : array | ||
$property | string | |
return | array |