/[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.1 by jonen, Thu Jan 30 03:29:46 2003 UTC revision 1.4 by jonen, Sat Feb 22 18:02:18 2003 UTC
# Line 162  class DefaultGUIDatalist extends DataLis Line 162  class DefaultGUIDatalist extends DataLis
162          //make sure its set to something.          //make sure its set to something.
163          if ($obj == '') {          if ($obj == '') {
164              $obj = " ";              $obj = " ";
165            }        
166            // if item is match by expression we will replace it with an link object
167            elseif($this->_decode_column_item_expr($obj)) {
168              $obj = $this->_decode_column_item_expr($obj);
169            }
170            // if item is an Array we will replace it with an selection form object
171            elseif($this->_decode_column_item_array($obj)) {
172              $obj = $this->_decode_column_item_array($obj);
173          }          }
174            
175    
176          //make sure we don't put a right border on the last          //make sure we don't put a right border on the last
177          //column we are working on.          //column we are working on.
# Line 282  class DefaultGUIDatalist extends DataLis Line 291  class DefaultGUIDatalist extends DataLis
291          if ($cnt == 1) {          if ($cnt == 1) {
292              $container->push(form_hidden($this->_search_fieldVar, $field));              $container->push(form_hidden($this->_search_fieldVar, $field));
293          }          }
294            
295            $hidden_fields = $this->get_hidden_fields();
296            if(is_array($hidden_fields)) {
297              foreach($hidden_fields as $key => $value) {
298                $container->push(form_hidden($key, $value));
299              }
300            }
301            
302            $container->push(form_close() );
303    
304          return $container;          return $container;
305      }      }
306    
307    
308        function get_hidden_fields() {
309            user_error("DefaulGUIDataList::get_hidden_fields() - ".
310                                       "child class must override this method ".
311                                       "this function should return a hash for hidden fields, if not needed just return" );
312        }
313    
314        
315        function _decode_column_item_array($obj) {
316            user_error("DefaulGUIDataList::_decode_column_item_array() - ".
317                                       "child class must override this method ".
318                                       "this function should decode the column_item if it is a (sub-) array,".
319                                        "array should e.g. replaced by a select form." );
320        }
321    
322        function _decode_column_item_expr($obj) {
323            user_error("DefaulGUIDataList::_decode_column_item_expr() - ".
324                                       "child class must override this method ".
325                                       "this function should decode the column_item, if it is encoded for e.g. objects" );
326        }
327  }  }
328    
329  /**  /**

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

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