public function isMatch($widget)
    {
        if (method_exists($widget, 'isLabel')) {
            if ($widget->isLabel($this->label)) {
                return true;
            }
        }

        return ($widget->getName() == $this->label);
    }
public function isMatch($widget)
    {
        if (method_exists($widget, 'isLabel')) {
            if ($widget->isLabel($this->label)) {
                return true;
            }
        }

        return ($widget->getName() == $this->label);
    }
public function isMatch ( $ widget ) { if ( method_exists ( $ widget , 'isLabel' ) ) { if ( $ widget -> isLabel ( $ this -> label ) ) { return true ; } } return ( $ widget -> getName ( ) == $ this -> label ) ; }
Comparison. Compares visible text of widget or related label or name.

@param SimpleWidget $widget    Control to compare.
Comparison . Compares visible text of widget or related label or name .