Symfony2 API
Class

Symfony\Component\CssSelector\Node\AttribNode

class AttribNode implements NodeInterface

AttribNode represents a "selector[namespace|attrib operator value]" node.

This component is a port of the Python lxml library,
which is copyright Infrae and distributed under the BSD license.

Methods

__construct(NodeInterface $selector, string $namespace, string $attrib, string $operator, string $value)

Constructor.

string __toString()

Returns a string representation of the object.

XPathExpr toXpath()

Details

at line 42
public __construct(NodeInterface $selector, string $namespace, string $attrib, string $operator, string $value)

Constructor.

Parameters

NodeInterface $selector The XPath selector
string $namespace The namespace
string $attrib The attribute
string $operator The operator
string $value The value

at line 54
public string __toString()

Returns a string representation of the object.

Return Value

string The string representation

at line 66
public XPathExpr toXpath()

Return Value

XPathExpr The XPath expression

Exceptions

ParseException When unknown operator is found