projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a comment explaining the purpose of safe functions.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
TextField.class.php
diff --git
a/WEB-INF/lib/form/TextField.class.php
b/WEB-INF/lib/form/TextField.class.php
index
4766d91
..
d7e38ae
100644
(file)
--- a/
WEB-INF/lib/form/TextField.class.php
+++ b/
WEB-INF/lib/form/TextField.class.php
@@
-30,7
+30,7
@@
import('form.FormElement');
class TextField extends FormElement {
var $mPassword = false;
class TextField extends FormElement {
var $mPassword = false;
- var $c
ClassName = "TextField"
;
+ var $c
lass = 'TextField'
;
function __construct($name,$value="")
{
function __construct($name,$value="")
{
@@
-41,10
+41,8
@@
class TextField extends FormElement {
function setAsPassword($name) { $this->mPassword = $name; }
function getAsPassword() { return $this->mPassword; }
function setAsPassword($name) { $this->mPassword = $name; }
function getAsPassword() { return $this->mPassword; }
- function toStringControl() {
- if (!$this->isRenderable()) return "";
-
- if (!$this->isEnable()) {
+ function toStringControl() {
+ if (!$this->isEnabled()) {
$html = "<input name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
} else {
$html = "<input name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
} else {
@@
-54,17
+52,17
@@
class TextField extends FormElement {
$html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
$html .= " name=\"$this->name\" id=\"$this->id\"";
$html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
$html .= " name=\"$this->name\" id=\"$this->id\"";
- if ($this->
mS
ize!="")
- $html .= " size=\"$this->
mS
ize\"";
+ if ($this->
s
ize!="")
+ $html .= " size=\"$this->
s
ize\"";
- if ($this->
mS
tyle!="")
- $html .= " style=\"$this->
mS
tyle\"";
+ if ($this->
s
tyle!="")
+ $html .= " style=\"$this->
s
tyle\"";
- if ($this->m
MaxL
ength!="")
- $html .= " maxlength=\"$this->m
MaxL
ength\"";
+ if ($this->m
ax_l
ength!="")
+ $html .= " maxlength=\"$this->m
ax_l
ength\"";
- if ($this->
mOnC
hange!="")
- $html .= " onchange=\"$this->
mOnC
hange\"";
+ if ($this->
on_c
hange!="")
+ $html .= " onchange=\"$this->
on_c
hange\"";
$html .= " value=\"".htmlspecialchars($this->getValue())."\"";
$html .= ">";
$html .= " value=\"".htmlspecialchars($this->getValue())."\"";
$html .= ">";