/** * Compares with name attribute of widget. * @param SimpleWidget $widget Control to compare. * @access public */ function isMatch($widget) { return $widget->getName() == $this->_name; }
/** * Adds a tag contents to the form. * @param SimpleWidget $tag Input tag to add. */ function addWidget($tag) { if (strtolower($tag->getAttribute('type')) == 'submit') { $this->buttons[] = $tag; } elseif (strtolower($tag->getAttribute('type')) == 'image') { $this->images[] = $tag; } elseif ($tag->getName()) { $this->setWidget($tag); } }
/** * Adds a tag contents to the form. * @param SimpleWidget $tag Input tag to add. * @access public */ function addWidget($tag) { if (strtolower($tag->getAttribute("type")) == "submit") { $this->_buttons[$tag->getName()] =& $tag; } else { if ($tag->getName()) { $this->_setWidget($tag); } } }