17 if (!defined(
"PSF_ENTRY_POINT"))
18 die(
"Not a valid psf entry point");
20 require_once (dirname(__FILE__) .
"/element.php");
27 public function __construct($_name = NULL, $_value = NULL, $_parent = NULL)
30 $this->Value = $_value;
31 parent::__construct($_parent);
34 public function ToHtml()
36 $_e =
"<input type=\"submit\"";
37 if ($this->Name !== NULL)
38 $_e .=
" name=\"$this->Name\"";
39 if ($this->Value !== NULL)
40 $_e .=
" value=\"$this->Value\"";
41 if ($this->Style !== NULL)
42 $_e .=
" style=\"" . $this->Style->ToCss() .
"\"";
43 if ($this->ClassName !== NULL)
44 $_e .=
" class=\"" . $this->ClassName .
"\"";