/** * This adds a particular action option to the form. * * @param T_Form_Button $button action to take * @return T_Form_Container fluent interface */ function addAction(T_Form_Button $button) { $this->action[$button->getAlias()] = $button; return $this; }
/** * Render a T_Form_Button. * * @param T_Form_Button $button button object to render * @return string XHTML */ protected function renderButton(T_Form_Button $button) { $xhtml = $this->indent . '<input type="submit"' . EOL; $xhtml .= $this->indent . ' name="' . $button->getFieldname() . '"' . EOL; $xhtml .= $this->indent . ' class="submit"' . EOL; $xhtml .= $this->indent . ' value="' . $this->escape($button->getLabel()) . '" />' . EOL; return $xhtml; }