4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.4 2003/04/09 09:53:13 joko |
8 |
|
## fixes regarding modification of decode-function-behavior |
9 |
|
## |
10 |
## Revision 1.3 2003/04/06 01:40:35 jonen |
## Revision 1.3 2003/04/06 01:40:35 jonen |
11 |
## + removed duplicated decode functions |
## + removed duplicated decode functions |
12 |
## |
## |
121 |
$utils = php::mkComponent('WebExplorer::utils'); |
$utils = php::mkComponent('WebExplorer::utils'); |
122 |
$hidden = $this->_hidden_elements; |
$hidden = $this->_hidden_elements; |
123 |
$options = $this->_options['decode_args']; |
$options = $this->_options['decode_args']; |
124 |
|
|
125 |
|
/* |
126 |
if($utils->decode_item_expr($value, $hidden, $options)) { |
if($utils->decode_item_expr($value, $hidden, $options)) { |
127 |
$this->add_element($key, $utils->decode_item_expr($value, $hidden, $options)); |
$this->add_element($key, $utils->decode_item_expr($value, $hidden, $options)); |
128 |
} |
} |
|
// if item is an Array we will replace it with an selection form object |
|
129 |
elseif($utils->decode_item_array($value, $hidden, $options) ) { |
elseif($utils->decode_item_array($value, $hidden, $options) ) { |
130 |
$this->add_element($key, $utils->decode_item_array($value, $hidden, $options)); |
$this->add_element($key, $utils->decode_item_array($value, $hidden, $options)); |
131 |
} else { |
} else { |
132 |
$this->add_element($key, $value); |
$this->add_element($key, $value); |
133 |
} |
} |
134 |
|
*/ |
135 |
|
|
136 |
|
$utils->decode_item_expr($value, $hidden, $options); |
137 |
|
// if item is an Array we will replace it with an selection form object |
138 |
|
$utils->decode_item_array($value, $hidden, $options); |
139 |
|
$this->add_element($key, $value); |
140 |
|
|
141 |
} else { |
} else { |
142 |
$this->add_element($key, $value); |
$this->add_element($key, $value); |
143 |
} |
} |
144 |
|
|
145 |
|
|
146 |
} |
} |
147 |
} |
} |
148 |
} |
} |