PHP Class Symfony\Component\CssSelector\Parser

$xpath = Parser::cssToXpath('h1.foo'); This component is a port of the Python lxml library, which is copyright Infrae and distributed under the BSD license.
Author: Fabien Potencier ([email protected])
Datei anzeigen Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
cssToXpath ( $cssExpr, $prefix = 'descendant-or-self::' )
parse ( $string )

Protected Methods

Method Description
parseAttrib ( $selector, $stream )
parseSelector ( $stream )
parseSelectorGroup ( $stream )
parseSimpleSelector ( $stream )

Method Details

cssToXpath() public static method

public static cssToXpath ( $cssExpr, $prefix = 'descendant-or-self::' )

parse() public method

public parse ( $string )

parseAttrib() protected method

protected parseAttrib ( $selector, $stream )

parseSelector() protected method

protected parseSelector ( $stream )

parseSelectorGroup() protected method

protected parseSelectorGroup ( $stream )

parseSimpleSelector() protected method

protected parseSimpleSelector ( $stream )