4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.9 2004/05/13 19:19:44 jonen |
8 |
|
## + bugfix: stripslashes of all posted vars was off |
9 |
|
## |
10 |
|
## Revision 1.8 2003/12/15 21:05:19 udo |
11 |
|
## bugfix: $PHP_SELF -> $_SERVER['PHP_SELF'] |
12 |
|
## |
13 |
|
## Revision 1.7 2003/05/10 18:04:45 jonen |
14 |
|
## + added values needed for 'create/add new' links |
15 |
|
## |
16 |
|
## Revision 1.6 2003/04/11 00:48:03 joko |
17 |
|
## minor fix: calling parent constructor explicitely by name now, transparency seems not be automagically compatible with inheritance in php ,-) (non-orthogonal) |
18 |
|
## |
19 |
|
## Revision 1.5 2003/04/09 09:59:30 joko |
20 |
|
## fixes regarding modification of decode-function-behavior |
21 |
|
## |
22 |
## Revision 1.4 2003/04/06 01:41:33 jonen |
## Revision 1.4 2003/04/06 01:41:33 jonen |
23 |
## - removed duplicated decode functions |
## - removed duplicated decode functions |
24 |
## |
## |
77 |
// prefetch data |
// prefetch data |
78 |
$this->data_prefetch(); |
$this->data_prefetch(); |
79 |
|
|
80 |
$parent = get_parent_class($this); |
// doesn't work if EditDataItem gets inherited |
81 |
$this->$parent($title, $PHP_SELF, 600); |
//$parent = get_parent_class($this); |
82 |
|
//$this->$parent($title, $PHP_SELF, 600); |
83 |
|
|
84 |
|
// $this->StandardFormContent($title, $PHP_SELF, 600); |
85 |
|
$this->StandardFormContent($title, $_SERVER['PHP_SELF'], 600); |
86 |
|
|
87 |
|
// enable stripslashes of all inputs |
88 |
|
$this->set_stripslashes(); |
89 |
|
|
90 |
} |
} |
91 |
|
|
92 |
function set_data_source(&$source) { |
function set_data_source(&$source) { |
185 |
$utils = php::mkComponent('WebExplorer::utils'); |
$utils = php::mkComponent('WebExplorer::utils'); |
186 |
$hidden = $this->get_hidden_elements(); |
$hidden = $this->get_hidden_elements(); |
187 |
$options = $this->_options['decode_args']; |
$options = $this->_options['decode_args']; |
188 |
|
$options[label] = $key; |
189 |
|
$options[parent_guid] = $this->_options['parent']['guid']; |
190 |
|
$options[parent_class] = $this->_options['parent']['class']; |
191 |
if($utils->decode_item_expr($value, $hidden, $options)) { |
if($utils->decode_item_expr($value, $hidden, $options)) { |
192 |
$table->add_row($key, $utils->decode_item_expr($value, $hidden, $options)); |
$table->add_row($key, $value); |
193 |
} |
} |
194 |
// 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 |
195 |
elseif($utils->decode_item_array($value, $hidden, $options) ) { |
elseif($utils->decode_item_array($value, $hidden, $options) ) { |
196 |
$table->add_row($key, $utils->decode_item_array($value, $hidden, $options)); |
$table->add_row($key, $value); |
197 |
} else { |
} else { |
198 |
$table->add_row($this->element_label($key), $this->element_form($key)); |
$table->add_row($this->element_label($key), $this->element_form($key)); |
199 |
} |
} |
339 |
} |
} |
340 |
|
|
341 |
|
|
|
?> |
|
342 |
|
?> |