XPath\XPathExpr (Component\CssSelector)
Symfony\Component\CssSelector\XPath\XPathExpr
class XPathExpr
XPath expression translator interface.
This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.
Methods
__construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false) | ||
string | getElement() | |
XPathExpr | addCondition($condition $condition) | |
string | getCondition() | |
XPathExpr | addNameTest() | |
XPathExpr | addStarPrefix() | |
XPathExpr | join(string $combiner, XPathExpr $expr) Joins another XPathExpr with a combiner. | |
string | __toString() |
Details
public __construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false)
public string getElement()
public XPathExpr addCondition($condition $condition)
public string getCondition()
public XPathExpr addNameTest()
public XPathExpr addStarPrefix()
public XPathExpr join(string $combiner, XPathExpr $expr)
Joins another XPathExpr with a combiner.
public string __toString()
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/CssSelector/XPath/XPathExpr.html