PHP Class PhpCss, PhpCss

Show file Open project: ThomasWeinert/PhpCss

Public Methods

Method 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 method

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

reformat() public static method

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

toXpath() public static method

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