value = $value; } } /* (non-PHPdoc) * @see Staple_Form_Element::field() */ public function field() { return ' getClassString().' id="'.$this->escape($this->id).'" name="'.$this->escape($this->name).'" value="'.$this->escape($this->value).'"'.$this->getAttribString().">\n"; } /* (non-PHPdoc) * @see Staple_Form_Element::label() */ public function label() { return " \n"; } public function build() { $buf = ''; $view = FORMS_ROOT.'/fields/FoundationSubmitElement.phtml'; if(file_exists($view)) { ob_start(); include $view; $buf = ob_get_contents(); ob_end_clean(); } else { $classes = $this->getClassString(); $buf .= "
\n"; $buf .= "
\n"; $buf .= $this->field(); $buf .= "
\n"; $buf .= "
\n"; } return $buf; } }