4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.6 2003/04/11 00:48:03 joko |
8 |
|
## minor fix: calling parent constructor explicitely by name now, transparency seems not be automagically compatible with inheritance in php ,-) (non-orthogonal) |
9 |
|
## |
10 |
|
## Revision 1.5 2003/04/09 09:59:30 joko |
11 |
|
## fixes regarding modification of decode-function-behavior |
12 |
|
## |
13 |
## Revision 1.4 2003/04/06 01:41:33 jonen |
## Revision 1.4 2003/04/06 01:41:33 jonen |
14 |
## - removed duplicated decode functions |
## - removed duplicated decode functions |
15 |
## |
## |
68 |
// prefetch data |
// prefetch data |
69 |
$this->data_prefetch(); |
$this->data_prefetch(); |
70 |
|
|
71 |
$parent = get_parent_class($this); |
// doesn't work if EditDataItem gets inherited |
72 |
$this->$parent($title, $PHP_SELF, 600); |
//$parent = get_parent_class($this); |
73 |
|
//$this->$parent($title, $PHP_SELF, 600); |
74 |
|
|
75 |
|
$this->StandardFormContent($title, $PHP_SELF, 600); |
76 |
|
|
77 |
} |
} |
78 |
|
|
79 |
function set_data_source(&$source) { |
function set_data_source(&$source) { |
173 |
$hidden = $this->get_hidden_elements(); |
$hidden = $this->get_hidden_elements(); |
174 |
$options = $this->_options['decode_args']; |
$options = $this->_options['decode_args']; |
175 |
if($utils->decode_item_expr($value, $hidden, $options)) { |
if($utils->decode_item_expr($value, $hidden, $options)) { |
176 |
$table->add_row($key, $utils->decode_item_expr($value, $hidden, $options)); |
$table->add_row($key, $value); |
177 |
} |
} |
178 |
// if item is an Array we will replace it with an selection form object |
// if item is an Array we will replace it with an selection form object |
179 |
elseif($utils->decode_item_array($value, $hidden, $options) ) { |
elseif($utils->decode_item_array($value, $hidden, $options) ) { |
180 |
$table->add_row($key, $utils->decode_item_array($value, $hidden, $options)); |
$table->add_row($key, $value); |
181 |
} else { |
} else { |
182 |
$table->add_row($this->element_label($key), $this->element_form($key)); |
$table->add_row($this->element_label($key), $this->element_form($key)); |
183 |
} |
} |