PHP Class Habari\HTMLSelector

ファイルを表示 Open project: habari/system

Public Properties

Property Type Description
$selector string the CSS selector

Public Methods

Method Description
__construct ( string $selector ) Constructor for setting the CSS selector in this class
toXPath ( ) : string Convert the CSS selector to an XPath selector

Private Methods

Method Description
get_part_xpath ( string $part, array $stack ) : string Interal method for parsing the CSS parts into XPath parts

Method Details

__construct() public method

Constructor for setting the CSS selector in this class
public __construct ( string $selector )
$selector string A CSS selector

toXPath() public method

Convert the CSS selector to an XPath selector
public toXPath ( ) : string
return string

Property Details

$selector public_oe property

the CSS selector
public string $selector
return string