PHP Class PhpCss, PhpCss

Afficher le fichier Open project: ThomasWeinert/PhpCss

Méthodes publiques

Méthode Description
getAst ( string $cssSelector ) : PhpCss\Ast Parses a css selector and returns the AST
reformat ( string $cssSelector ) : string Parses a css selector and compiles it into an css selector again
toXpath ( string $cssSelector, integer $options ) : string Parses a css selector and transforms it into an xpath expression

Method Details

getAst() public static méthode

Parses a css selector and returns the AST
public static getAst ( string $cssSelector ) : PhpCss\Ast
$cssSelector string
Résultat PhpCss\Ast

reformat() public static méthode

Parses a css selector and compiles it into an css selector again
public static reformat ( string $cssSelector ) : string
$cssSelector string
Résultat string

toXpath() public static méthode

Parses a css selector and transforms it into an xpath expression
public static toXpath ( string $cssSelector, integer $options ) : string
$cssSelector string
$options integer
Résultat string