/[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.6 by jonen, Sun Feb 23 23:43:55 2003 UTC revision 1.9 by jonen, Thu Apr 3 23:56:17 2003 UTC
# Line 72  class DefaultGUIDatalist extends DataLis Line 72  class DefaultGUIDatalist extends DataLis
72       *       *
73       */       */
74      var $_default_checked_items = array();      var $_default_checked_items = array();
75        
76        
77      /**      /**
78       * Do we show action bar row?       * Do we show action bar row?
79       */       */
# Line 83  class DefaultGUIDatalist extends DataLis Line 83  class DefaultGUIDatalist extends DataLis
83      * This variable tells us whether to display select all checkbox      * This variable tells us whether to display select all checkbox
84      */      */
85      var $_allow_select_all = TRUE;      var $_allow_select_all = TRUE;
86    
   
87      /**      /**
88       * This function sets a prefix for all       * This function sets a prefix for all
89       * variables that are used in the item list       * variables that are used in the item list
# Line 321  class DefaultGUIDatalist extends DataLis Line 320  class DefaultGUIDatalist extends DataLis
320          if ($obj == '') {          if ($obj == '') {
321              $obj = " ";              $obj = " ";
322          }          }
         // if item is match by expression we will replace it with an link object    
         elseif($this->_decode_column_item_expr($obj)) {    
           $obj = $this->_decode_column_item_expr($obj);    
         }    
         // if item is an Array we will replace it with an selection form object    
         elseif($this->_decode_column_item_array($obj)) {  
           $obj = $this->_decode_column_item_array($obj);    
         }    
323    
324          //make sure we don't put a right border on the last          //make sure we don't put a right border on the last
325          //column we are working on.          //column we are working on.
# Line 450  class DefaultGUIDatalist extends DataLis Line 441  class DefaultGUIDatalist extends DataLis
441              $container->push(form_hidden($this->_vars["search_fieldVar"], $field));              $container->push(form_hidden($this->_vars["search_fieldVar"], $field));
442          }          }
443    
444          $hidden_fields = $this->get_hidden_fields();          if(is_array($this->hidden_items)) {  
445          if(is_array($hidden_fields)) {              foreach($this->hidden_items as $key => $value) {  
           foreach($hidden_fields as $key => $value) {    
446              $container->push(form_hidden($key, $value));                $container->push(form_hidden($key, $value));  
447            }            }
448          }          }
# Line 780  class DefaultGUIDatalist extends DataLis Line 770  class DefaultGUIDatalist extends DataLis
770              $td->set_tag_attribute("align", "left");              $td->set_tag_attribute("align", "left");
771              if ($this->_has_action_column("FIRST") &&              if ($this->_has_action_column("FIRST") &&
772                  $this->_datasource->get_total_rows()) {                  $this->_datasource->get_total_rows()) {
773                  $td->push(html_img("/phphtmllib/images/widgets/arrow_right.gif"));                  $td->push(html_img("img/widgets/arrow_right.gif"));
774              }              }
775              else {              else {
776                  $td->push(" ");                  $td->push(" ");
# Line 790  class DefaultGUIDatalist extends DataLis Line 780  class DefaultGUIDatalist extends DataLis
780              $td->set_tag_attribute("align", "right");              $td->set_tag_attribute("align", "right");
781              if ($this->_has_action_column("LAST") &&              if ($this->_has_action_column("LAST") &&
782                  $this->_datasource->get_total_rows()) {                  $this->_datasource->get_total_rows()) {
783                  $td->push(html_img("/phphtmllib/images/widgets/arrow_left.gif"));                  $td->push(html_img("img/widgets/arrow_left.gif"));
784              }              }
785              else {              else {
786                  $td->push(" ");                  $td->push(" ");
# Line 916  class DefaultGUIDatalist extends DataLis Line 906  class DefaultGUIDatalist extends DataLis
906          return $script;          return $script;
907      }      }
908    
     function get_hidden_fields() {  
          user_error("DefaulGUIDataList::get_hidden_fields() - ".  
                            "child class must override this method ".  
                            "this function should return a hash for hidden fields, if not needed just return" );  
     }  
   
     function _decode_column_item_array($obj) {  
          user_error("DefaulGUIDataList::_decode_column_item_array() - ".  
                            "child class must override this method ".  
                            "this function should decode the column_item if it is a (sub-) array,".  
                            "array should e.g. replaced by a select form." );  
     }  
     
     function _decode_column_item_expr($obj) {  
          user_error("DefaulGUIDataList::_decode_column_item_expr() - ".  
                            "child class must override this method ".  
                            "this function should decode the column_item, if it is encoded for e.g. objects" );  
     }  
909  }  }
910    
911  /**  /**

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

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