/[cvs]/nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/EditDataItem.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/EditDataItem.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jonen, Sun Apr 6 01:41:33 2003 UTC revision 1.6 by joko, Fri Apr 11 00:48:03 2003 UTC
# Line 4  Line 4 
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  ##  ##
# Line 62  class EditDataItem extends StandardFormC Line 68  class EditDataItem extends StandardFormC
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) {
# Line 163  class EditDataItem extends StandardFormC Line 173  class EditDataItem extends StandardFormC
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           }           }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed