Exemple #1
0
 /**
  *    Compares with name attribute of widget.
  *    @param SimpleWidget $widget    Control to compare.
  *    @access public
  */
 function isMatch($widget)
 {
     return $widget->getName() == $this->_name;
 }
Exemple #2
0
 /**
  *    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);
     }
 }
Exemple #3
0
 /**
  *    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);
         }
     }
 }