PHP Class SelectByName, simpletest

Searches by name attribute.
Inheritance: implements SelectorInterface
Show file Open project: simpletest/simpletest

Public Methods

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

Method Details

__construct() public method

Stashes the name for later comparison.
public __construct ( string $name )
$name string Name attribute to match.

getName() public method

Accessor for name.
public getName ( )

isMatch() public method

Compares with name attribute of widget.
public isMatch ( SimpleWidget $widget )
$widget SimpleWidget Control to compare.