PHP Class SelectById, simpletest

Searches dy id attribute.
Inheritance: implements SelectorInterface
Show file Open project: simpletest/simpletest

Public Methods

Method Description
__construct ( string $id ) Stashes the name for later comparison.
isMatch ( SimpleWidget $widget ) Comparison. Compares id attribute of widget.

Method Details

__construct() public method

Stashes the name for later comparison.
public __construct ( string $id )
$id string ID atribute to match.

isMatch() public method

Comparison. Compares id attribute of widget.
public isMatch ( SimpleWidget $widget )
$widget SimpleWidget Control to compare.