X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2Fform%2FSubmit.class.php;h=91123c5519a34c4a8708f664069f2e0be5b6a8e1;hb=cd5e077ecb497431decde4835138b877d63b261c;hp=236fdb4bd9f2dc7a0c4eb8489ca8543768b28d6c;hpb=5532fe6cfc2125063ff8040cfa80e20089ac64b0;p=timetracker.git diff --git a/WEB-INF/lib/form/Submit.class.php b/WEB-INF/lib/form/Submit.class.php index 236fdb4b..91123c55 100644 --- a/WEB-INF/lib/form/Submit.class.php +++ b/WEB-INF/lib/form/Submit.class.php @@ -29,22 +29,22 @@ import('form.FormElement'); class Submit extends FormElement { - var $cClassName = "Submit"; - function __construct($name,$value="") - { - $this->name = $name; - $this->value = $value; - } + function __construct($name, $value = '') + { + $this->class = 'Submit'; + $this->name = $name; + $this->value = $value; + } - function toStringControl() { + function getHtml() { if ($this->id=="") $this->id = $this->name; $html = "\n\tname\" id=\"$this->id\""; - if (!$this->isEnable()) { + if (!$this->isEnabled()) { $html .= " disabled=\"true\""; }