projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started to work on button labels in translation files.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
UploadFile.class.php
diff --git
a/WEB-INF/lib/form/UploadFile.class.php
b/WEB-INF/lib/form/UploadFile.class.php
index
c3a3276
..
e46f29d
100644
(file)
--- a/
WEB-INF/lib/form/UploadFile.class.php
+++ b/
WEB-INF/lib/form/UploadFile.class.php
@@
-29,19
+29,19
@@
import('form.FormElement');
class UploadFile extends FormElement {
import('form.FormElement');
class UploadFile extends FormElement {
- var $cClassName = "UploadFile";
- var $mMaxSize = 100000; // 100kb
+ var $mMaxSize = 100000; // 100kb // TODO: refactor this.
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
-
+ function __construct($name)
+ {
+ $this->class = 'UploadFile';
+ $this->name = $name;
+ }
+
+// TODO: refactoring ongoing down from here.
function setMaxSize($value) { $this->mMaxSize = $value; }
function getMaxSize() { return $this->mMaxSize; }
function setMaxSize($value) { $this->mMaxSize = $value; }
function getMaxSize() { return $this->mMaxSize; }
- function
toStringContro
l() {
+ function
getHtm
l() {
if ($this->id=="") $this->id = $this->name;
if ($this->id=="") $this->id = $this->name;