Dom/Query/Css2Xpath.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Dom
\Zend_Dom_Query_Css2Xpath
Package: Zend\Dom\Query
Transform CSS selectors to XPath
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id: Css2Xpath.php 24593 2012-01-05 20:35:02Z matthew $
Methods


_createContainsExpression(array $matches) : string
static
Callback for creating a strict "contains" expression
Parameters
Returns
Name | Type | Description |
---|---|---|
$matches | array |
Type | Description |
---|---|
string |


_createEqualityExpression(array $matches) : string
static
Callback for creating equality expressions
Parameters
Returns
Name | Type | Description |
---|---|---|
$matches | array |
Type | Description |
---|---|
string |


_normalizeSpaceAttribute(array $matches) : string
static
Callback for creating expressions to match one or more attribute values
Parameters
Returns
Name | Type | Description |
---|---|---|
$matches | array |
Type | Description |
---|---|
string |


_tokenize(string $expression) : string
static
Tokenize CSS expressions to XPath
Parameters
Returns
Name | Type | Description |
---|---|---|
$expression | string |
Type | Description |
---|---|
string |