/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/DefaultGUIDataList.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/DefaultGUIDataList.inc

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

revision 1.5 by jonen, Sat Feb 22 21:08:37 2003 UTC revision 1.6 by jonen, Sun Feb 23 23:43:55 2003 UTC
# Line 321  class DefaultGUIDatalist extends DataLis Line 321  class DefaultGUIDatalist extends DataLis
321          if ($obj == '') {          if ($obj == '') {
322              $obj = " ";              $obj = " ";
323          }          }
324            // if item is match by expression we will replace it with an link object  
325            elseif($this->_decode_column_item_expr($obj)) {  
326              $obj = $this->_decode_column_item_expr($obj);  
327            }  
328            // if item is an Array we will replace it with an selection form object  
329            elseif($this->_decode_column_item_array($obj)) {
330              $obj = $this->_decode_column_item_array($obj);  
331            }  
332    
333          //make sure we don't put a right border on the last          //make sure we don't put a right border on the last
334          //column we are working on.          //column we are working on.
335          //$style = "padding-left: 3px;padding-right:3px;border-top: 1px solid #dddddd;";          //$style = "padding-left: 3px;padding-right:3px;border-top: 1px solid #dddddd;";
# Line 442  class DefaultGUIDatalist extends DataLis Line 450  class DefaultGUIDatalist extends DataLis
450              $container->push(form_hidden($this->_vars["search_fieldVar"], $field));              $container->push(form_hidden($this->_vars["search_fieldVar"], $field));
451          }          }
452    
453            $hidden_fields = $this->get_hidden_fields();
454            if(is_array($hidden_fields)) {  
455              foreach($hidden_fields as $key => $value) {  
456                $container->push(form_hidden($key, $value));  
457              }
458            }
459            $container->push(form_close() );
460          return $container;          return $container;
461      }      }
462    
# Line 901  class DefaultGUIDatalist extends DataLis Line 916  class DefaultGUIDatalist extends DataLis
916          return $script;          return $script;
917      }      }
918    
919        function get_hidden_fields() {
920             user_error("DefaulGUIDataList::get_hidden_fields() - ".
921                               "child class must override this method ".
922                               "this function should return a hash for hidden fields, if not needed just return" );
923        }
924    
925        function _decode_column_item_array($obj) {
926             user_error("DefaulGUIDataList::_decode_column_item_array() - ".
927                               "child class must override this method ".
928                               "this function should decode the column_item if it is a (sub-) array,".
929                               "array should e.g. replaced by a select form." );
930        }
931      
932        function _decode_column_item_expr($obj) {
933             user_error("DefaulGUIDataList::_decode_column_item_expr() - ".
934                               "child class must override this method ".
935                               "this function should decode the column_item, if it is encoded for e.g. objects" );
936        }
937  }  }
938    
939  /**  /**

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

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