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
88fb434
..
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 {
@@
-57,14
+55,14
@@
class TextField extends FormElement {
if ($this->size!="")
$html .= " size=\"$this->size\"";
if ($this->size!="")
$html .= " size=\"$this->size\"";
- if ($this->
mS
tyle!="")
- $html .= " style=\"$this->
mS
tyle\"";
+ if ($this->
s
tyle!="")
+ $html .= " style=\"$this->
s
tyle\"";
if ($this->max_length!="")
$html .= " maxlength=\"$this->max_length\"";
if ($this->max_length!="")
$html .= " maxlength=\"$this->max_length\"";
- 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 .= ">";