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])
Afficher le fichier Open project: pmjones/php-framework-benchmarks Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
parseAttrib ( $selector, $stream )
parseSelector ( $stream )
parseSelectorGroup ( $stream )
parseSimpleSelector ( $stream )

Method Details

cssToXpath() public static méthode

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

parse() public méthode

public parse ( $string )

parseAttrib() protected méthode

protected parseAttrib ( $selector, $stream )

parseSelector() protected méthode

protected parseSelector ( $stream )

parseSelectorGroup() protected méthode

protected parseSelectorGroup ( $stream )

parseSimpleSelector() protected méthode

protected parseSimpleSelector ( $stream )