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
/
Combobox.class.php
diff --git
a/WEB-INF/lib/form/Combobox.class.php
b/WEB-INF/lib/form/Combobox.class.php
index
78bd996
..
314f4b7
100644
(file)
--- a/
WEB-INF/lib/form/Combobox.class.php
+++ b/
WEB-INF/lib/form/Combobox.class.php
@@
-44,7
+44,7
@@
class Combobox extends FormElement {
var $mCompareOn = "key"; // or "value"
var $mDataDeep = 1;
var $mDataKeys = array();
var $mCompareOn = "key"; // or "value"
var $mDataDeep = 1;
var $mDataKeys = array();
- var $c
ClassName = "Combobox"
;
+ var $c
lass = 'Combobox'
;
function __construct($name,$value="")
{
function __construct($name,$value="")
{
@@
-65,9
+65,8
@@
class Combobox extends FormElement {
function getDataKeys() { return $this->mDataKeys; }
function getDataKeys() { return $this->mDataKeys; }
- function toStringControl() {
- if (!$this->isRenderable()) return "";
-
+ function toStringControl() {
+
if ($this->id=="") $this->id = $this->name;
$html = "\n\t<select";
if ($this->id=="") $this->id = $this->name;
$html = "\n\t<select";
@@
-82,10
+81,10
@@
class Combobox extends FormElement {
if ($this->on_change!="")
$html .= " onchange=\"$this->on_change\"";
if ($this->on_change!="")
$html .= " onchange=\"$this->on_change\"";
- if ($this->
mS
tyle!="")
- $html .= " style=\"$this->
mS
tyle\"";
+ if ($this->
s
tyle!="")
+ $html .= " style=\"$this->
s
tyle\"";
- if (!$this->isEnable())
+ if (!$this->isEnable
d
())
$html .= " disabled";
$html .= ">\n";
$html .= " disabled";
$html .= ">\n";