XPathExpr

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()
$this addCondition($condition)
string getCondition()
$this addNameTest()
$this addStarPrefix()
$this join(string $combiner, XPathExpr $expr)

Joins another XPathExpr with a combiner.

string __toString()

Details

__construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false)

Parameters

string $path
string $element
string $condition
bool $starPrefix

string getElement()

Return Value

string

$this addCondition($condition)

Parameters

$condition

Return Value

$this

string getCondition()

Return Value

string

$this addNameTest()

Return Value

$this

$this addStarPrefix()

Return Value

$this

$this join(string $combiner, XPathExpr $expr)

Joins another XPathExpr with a combiner.

Parameters

string $combiner
XPathExpr $expr

Return Value

$this

string __toString()

Return Value

string

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/CssSelector/XPath/XPathExpr.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部