4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.7 2003/05/10 18:04:45 jonen |
8 |
|
## + added values needed for 'create/add new' links |
9 |
|
## |
10 |
|
## Revision 1.6 2003/04/11 00:48:03 joko |
11 |
|
## minor fix: calling parent constructor explicitely by name now, transparency seems not be automagically compatible with inheritance in php ,-) (non-orthogonal) |
12 |
|
## |
13 |
## Revision 1.5 2003/04/09 09:59:30 joko |
## Revision 1.5 2003/04/09 09:59:30 joko |
14 |
## fixes regarding modification of decode-function-behavior |
## fixes regarding modification of decode-function-behavior |
15 |
## |
## |
71 |
// prefetch data |
// prefetch data |
72 |
$this->data_prefetch(); |
$this->data_prefetch(); |
73 |
|
|
74 |
$parent = get_parent_class($this); |
// doesn't work if EditDataItem gets inherited |
75 |
$this->$parent($title, $PHP_SELF, 600); |
//$parent = get_parent_class($this); |
76 |
|
//$this->$parent($title, $PHP_SELF, 600); |
77 |
|
|
78 |
|
$this->StandardFormContent($title, $PHP_SELF, 600); |
79 |
|
|
80 |
} |
} |
81 |
|
|
82 |
function set_data_source(&$source) { |
function set_data_source(&$source) { |
175 |
$utils = php::mkComponent('WebExplorer::utils'); |
$utils = php::mkComponent('WebExplorer::utils'); |
176 |
$hidden = $this->get_hidden_elements(); |
$hidden = $this->get_hidden_elements(); |
177 |
$options = $this->_options['decode_args']; |
$options = $this->_options['decode_args']; |
178 |
|
$options[label] = $key; |
179 |
|
$options[parent_guid] = $this->_options['parent']['guid']; |
180 |
|
$options[parent_class] = $this->_options['parent']['class']; |
181 |
if($utils->decode_item_expr($value, $hidden, $options)) { |
if($utils->decode_item_expr($value, $hidden, $options)) { |
182 |
$table->add_row($key, $value); |
$table->add_row($key, $value); |
183 |
} |
} |