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
/
TextArea.class.php
diff --git
a/WEB-INF/lib/form/TextArea.class.php
b/WEB-INF/lib/form/TextArea.class.php
index
8a4e20a
..
9c77917
100644
(file)
--- a/
WEB-INF/lib/form/TextArea.class.php
+++ b/
WEB-INF/lib/form/TextArea.class.php
@@
-32,7
+32,7
@@
class TextArea extends FormElement {
var $mPassword = false;
var $mColumns = "";
var $mRows = "";
var $mPassword = false;
var $mColumns = "";
var $mRows = "";
- var $c
ClassName = "TextArea"
;
+ var $c
lass = 'TextArea'
;
var $mOnKeyPress = "";
function __construct($name,$value="")
var $mOnKeyPress = "";
function __construct($name,$value="")
@@
-47,9
+47,8
@@
class TextArea extends FormElement {
function setRows($value) { $this->mRows = $value; }
function getRows() { return $this->mRows; }
function setRows($value) { $this->mRows = $value; }
function getRows() { return $this->mRows; }
- function toStringControl() {
- if (!$this->isRenderable()) return "";
-
+ function toStringControl() {
+
if ($this->id=="") $this->id = $this->mName;
$js_maxlen = "";
if ($this->id=="") $this->id = $this->mName;
$js_maxlen = "";
@@
-70,8
+69,8
@@
class TextArea extends FormElement {
$html .= " maxlength=\"$this->max_length\"";
}
$html .= " maxlength=\"$this->max_length\"";
}
- if ($this->
mS
tyle!="")
- $html .= " style=\"$this->
mS
tyle\"";
+ if ($this->
s
tyle!="")
+ $html .= " style=\"$this->
s
tyle\"";
if ($this->mOnKeyPress) {
$html .= " onkeypress=\"$this->mOnKeyPress\"";
if ($this->mOnKeyPress) {
$html .= " onkeypress=\"$this->mOnKeyPress\"";